diff --git a/api/services/collectionmanager/v1alpha1/manager.pb.go b/api/services/collectionmanager/v1alpha1/manager.pb.go index 1a8ae4c5..39a020f3 100644 --- a/api/services/collectionmanager/v1alpha1/manager.pb.go +++ b/api/services/collectionmanager/v1alpha1/manager.pb.go @@ -342,9 +342,9 @@ type RegistryConfig struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PlainHttp bool `protobuf:"varint,2,opt,name=plain_http,json=plainHttp,proto3" json:"plain_http,omitempty"` - SkipTlsVerify bool `protobuf:"varint,3,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"` - Auth *AuthConfig `protobuf:"bytes,4,opt,name=auth,proto3" json:"auth,omitempty"` + PlainHttp bool `protobuf:"varint,1,opt,name=plain_http,json=plainHttp,proto3" json:"plain_http,omitempty"` + SkipTlsVerify bool `protobuf:"varint,2,opt,name=skip_tls_verify,json=skipTlsVerify,proto3" json:"skip_tls_verify,omitempty"` + Auth *AuthConfig `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"` } func (x *RegistryConfig) Reset() { @@ -802,11 +802,11 @@ var file_api_services_collectionmanager_v1alpha1_manager_proto_rawDesc = []byte{ 0x63, 0x74, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x48, 0x74, 0x74, 0x70, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x48, 0x74, 0x74, 0x70, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x76, 0x65, 0x72, - 0x69, 0x66, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x54, + 0x69, 0x66, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x54, 0x6c, 0x73, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x27, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x22, 0xb3, 0x01, 0x0a, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, diff --git a/api/services/collectionmanager/v1alpha1/manager.proto b/api/services/collectionmanager/v1alpha1/manager.proto index 5ef26a34..220bff3f 100644 --- a/api/services/collectionmanager/v1alpha1/manager.proto +++ b/api/services/collectionmanager/v1alpha1/manager.proto @@ -73,9 +73,9 @@ message File { // RegistryConfig configuration contains configuration information for connecting to a registry. message RegistryConfig { - bool plain_http = 2; - bool skip_tls_verify = 3; - AuthConfig auth = 4; + bool plain_http = 1; + bool skip_tls_verify = 2; + AuthConfig auth = 3; } // AuthConfig contains authorization information for connecting to a registry. @@ -86,6 +86,3 @@ message AuthConfig { string access_token = 4; string refresh_token = 5; } - - - diff --git a/registryclient/errors.go b/registryclient/errors.go deleted file mode 100644 index b28b75b5..00000000 --- a/registryclient/errors.go +++ /dev/null @@ -1,12 +0,0 @@ -package registryclient - -import "fmt" - -// ErrNoAvailableMirrors denotes that all registry mirrors are not accessible. -type ErrNoAvailableMirrors struct { - Registry string -} - -func (e *ErrNoAvailableMirrors) Error() string { - return fmt.Sprintf("registry %q: no avaialble mirrors", e.Registry) -}