Documentation ¶
Index ¶
- Variables
- func RegisterRegistryAPIHandler(s server.Server, hdlr RegistryAPIHandler, opts ...server.HandlerOption) error
- func RegisterRegistryAPIServer(s *grpc.Server, srv RegistryAPIServer)
- type GetAppProvidersRequest
- func (*GetAppProvidersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAppProvidersRequest) GetOpaque() *v1beta1.Opaque
- func (x *GetAppProvidersRequest) GetResourceInfo() *v1beta11.ResourceInfo
- func (*GetAppProvidersRequest) ProtoMessage()
- func (x *GetAppProvidersRequest) ProtoReflect() protoreflect.Message
- func (x *GetAppProvidersRequest) Reset()
- func (x *GetAppProvidersRequest) String() string
- type GetAppProvidersResponse
- func (*GetAppProvidersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAppProvidersResponse) GetOpaque() *v1beta1.Opaque
- func (x *GetAppProvidersResponse) GetProviders() []*ProviderInfo
- func (x *GetAppProvidersResponse) GetStatus() *v1beta12.Status
- func (*GetAppProvidersResponse) ProtoMessage()
- func (x *GetAppProvidersResponse) ProtoReflect() protoreflect.Message
- func (x *GetAppProvidersResponse) Reset()
- func (x *GetAppProvidersResponse) String() string
- type ListAppProvidersRequest
- func (*ListAppProvidersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAppProvidersRequest) GetOpaque() *v1beta1.Opaque
- func (*ListAppProvidersRequest) ProtoMessage()
- func (x *ListAppProvidersRequest) ProtoReflect() protoreflect.Message
- func (x *ListAppProvidersRequest) Reset()
- func (x *ListAppProvidersRequest) String() string
- type ListAppProvidersResponse
- func (*ListAppProvidersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAppProvidersResponse) GetOpaque() *v1beta1.Opaque
- func (x *ListAppProvidersResponse) GetProviders() []*ProviderInfo
- func (x *ListAppProvidersResponse) GetStatus() *v1beta12.Status
- func (*ListAppProvidersResponse) ProtoMessage()
- func (x *ListAppProvidersResponse) ProtoReflect() protoreflect.Message
- func (x *ListAppProvidersResponse) Reset()
- func (x *ListAppProvidersResponse) String() string
- type ProviderInfo
- func (*ProviderInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ProviderInfo) GetAddress() string
- func (x *ProviderInfo) GetDescription() string
- func (x *ProviderInfo) GetMimeTypes() []string
- func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque
- func (*ProviderInfo) ProtoMessage()
- func (x *ProviderInfo) ProtoReflect() protoreflect.Message
- func (x *ProviderInfo) Reset()
- func (x *ProviderInfo) String() string
- type RegistryAPIClient
- type RegistryAPIHandler
- type RegistryAPIServer
- type RegistryAPIService
- type UnimplementedRegistryAPIServer
Constants ¶
This section is empty.
Variables ¶
var File_cs3_app_registry_v1beta1_registry_api_proto protoreflect.FileDescriptor
var File_cs3_app_registry_v1beta1_resources_proto protoreflect.FileDescriptor
Functions ¶
func RegisterRegistryAPIHandler ¶
func RegisterRegistryAPIHandler(s server.Server, hdlr RegistryAPIHandler, opts ...server.HandlerOption) error
func RegisterRegistryAPIServer ¶
func RegisterRegistryAPIServer(s *grpc.Server, srv RegistryAPIServer)
Types ¶
type GetAppProvidersRequest ¶
type GetAppProvidersRequest struct { // OPTIONAL. // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. // The resource information. ResourceInfo *v1beta11.ResourceInfo `protobuf:"bytes,2,opt,name=resource_info,json=resourceInfo,proto3" json:"resource_info,omitempty"` // contains filtered or unexported fields }
func (*GetAppProvidersRequest) Descriptor
deprecated
func (*GetAppProvidersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAppProvidersRequest.ProtoReflect.Descriptor instead.
func (*GetAppProvidersRequest) GetOpaque ¶
func (x *GetAppProvidersRequest) GetOpaque() *v1beta1.Opaque
func (*GetAppProvidersRequest) GetResourceInfo ¶
func (x *GetAppProvidersRequest) GetResourceInfo() *v1beta11.ResourceInfo
func (*GetAppProvidersRequest) ProtoMessage ¶
func (*GetAppProvidersRequest) ProtoMessage()
func (*GetAppProvidersRequest) ProtoReflect ¶
func (x *GetAppProvidersRequest) ProtoReflect() protoreflect.Message
func (*GetAppProvidersRequest) Reset ¶
func (x *GetAppProvidersRequest) Reset()
func (*GetAppProvidersRequest) String ¶
func (x *GetAppProvidersRequest) String() string
type GetAppProvidersResponse ¶
type GetAppProvidersResponse struct { // REQUIRED. // The response status. Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // OPTIONAL. // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. // The app providers available for the given resource info. Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` // contains filtered or unexported fields }
func (*GetAppProvidersResponse) Descriptor
deprecated
func (*GetAppProvidersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAppProvidersResponse.ProtoReflect.Descriptor instead.
func (*GetAppProvidersResponse) GetOpaque ¶
func (x *GetAppProvidersResponse) GetOpaque() *v1beta1.Opaque
func (*GetAppProvidersResponse) GetProviders ¶
func (x *GetAppProvidersResponse) GetProviders() []*ProviderInfo
func (*GetAppProvidersResponse) GetStatus ¶
func (x *GetAppProvidersResponse) GetStatus() *v1beta12.Status
func (*GetAppProvidersResponse) ProtoMessage ¶
func (*GetAppProvidersResponse) ProtoMessage()
func (*GetAppProvidersResponse) ProtoReflect ¶
func (x *GetAppProvidersResponse) ProtoReflect() protoreflect.Message
func (*GetAppProvidersResponse) Reset ¶
func (x *GetAppProvidersResponse) Reset()
func (*GetAppProvidersResponse) String ¶
func (x *GetAppProvidersResponse) String() string
type ListAppProvidersRequest ¶
type ListAppProvidersRequest struct { // OPTIONAL. // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // TODO(labkode): maybe add some filter? // contains filtered or unexported fields }
func (*ListAppProvidersRequest) Descriptor
deprecated
func (*ListAppProvidersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAppProvidersRequest.ProtoReflect.Descriptor instead.
func (*ListAppProvidersRequest) GetOpaque ¶
func (x *ListAppProvidersRequest) GetOpaque() *v1beta1.Opaque
func (*ListAppProvidersRequest) ProtoMessage ¶
func (*ListAppProvidersRequest) ProtoMessage()
func (*ListAppProvidersRequest) ProtoReflect ¶
func (x *ListAppProvidersRequest) ProtoReflect() protoreflect.Message
func (*ListAppProvidersRequest) Reset ¶
func (x *ListAppProvidersRequest) Reset()
func (*ListAppProvidersRequest) String ¶
func (x *ListAppProvidersRequest) String() string
type ListAppProvidersResponse ¶
type ListAppProvidersResponse struct { // REQUIRED. // The response status. Status *v1beta12.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // OPTIONAL. // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,2,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. // The list of app providers this registry knows about. Providers []*ProviderInfo `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"` // contains filtered or unexported fields }
func (*ListAppProvidersResponse) Descriptor
deprecated
func (*ListAppProvidersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAppProvidersResponse.ProtoReflect.Descriptor instead.
func (*ListAppProvidersResponse) GetOpaque ¶
func (x *ListAppProvidersResponse) GetOpaque() *v1beta1.Opaque
func (*ListAppProvidersResponse) GetProviders ¶
func (x *ListAppProvidersResponse) GetProviders() []*ProviderInfo
func (*ListAppProvidersResponse) GetStatus ¶
func (x *ListAppProvidersResponse) GetStatus() *v1beta12.Status
func (*ListAppProvidersResponse) ProtoMessage ¶
func (*ListAppProvidersResponse) ProtoMessage()
func (*ListAppProvidersResponse) ProtoReflect ¶
func (x *ListAppProvidersResponse) ProtoReflect() protoreflect.Message
func (*ListAppProvidersResponse) Reset ¶
func (x *ListAppProvidersResponse) Reset()
func (*ListAppProvidersResponse) String ¶
func (x *ListAppProvidersResponse) String() string
type ProviderInfo ¶
type ProviderInfo struct { // OPTIONAL. // Opaque information. Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"` // REQUIRED. // The mimetypes handled by this provider. MimeTypes []string `protobuf:"bytes,2,rep,name=mime_types,json=mimeTypes,proto3" json:"mime_types,omitempty"` // REQUIRED. // The address where the app provider can be reached. // For example, tcp://localhost:1099. Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // OPTIONAL. // Information to describe the functionalities // offered by the app provider. Meant to be read // by humans. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
Represents the information of the app provider.
func (*ProviderInfo) Descriptor
deprecated
func (*ProviderInfo) Descriptor() ([]byte, []int)
Deprecated: Use ProviderInfo.ProtoReflect.Descriptor instead.
func (*ProviderInfo) GetAddress ¶
func (x *ProviderInfo) GetAddress() string
func (*ProviderInfo) GetDescription ¶
func (x *ProviderInfo) GetDescription() string
func (*ProviderInfo) GetMimeTypes ¶
func (x *ProviderInfo) GetMimeTypes() []string
func (*ProviderInfo) GetOpaque ¶
func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque
func (*ProviderInfo) ProtoMessage ¶
func (*ProviderInfo) ProtoMessage()
func (*ProviderInfo) ProtoReflect ¶
func (x *ProviderInfo) ProtoReflect() protoreflect.Message
func (*ProviderInfo) Reset ¶
func (x *ProviderInfo) Reset()
func (*ProviderInfo) String ¶
func (x *ProviderInfo) String() string
type RegistryAPIClient ¶
type RegistryAPIClient interface { // Returns the app providers that are capable of handling this resource info. // MUST return CODE_NOT_FOUND if no providers are available. GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...grpc.CallOption) (*GetAppProvidersResponse, error) // Returns a list of the available app providers known by this registry. ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...grpc.CallOption) (*ListAppProvidersResponse, error) }
RegistryAPIClient is the client API for RegistryAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRegistryAPIClient ¶
func NewRegistryAPIClient(cc grpc.ClientConnInterface) RegistryAPIClient
type RegistryAPIHandler ¶
type RegistryAPIHandler interface { // Returns the app providers that are capable of handling this resource info. // MUST return CODE_NOT_FOUND if no providers are available. GetAppProviders(context.Context, *GetAppProvidersRequest, *GetAppProvidersResponse) error // Returns a list of the available app providers known by this registry. ListAppProviders(context.Context, *ListAppProvidersRequest, *ListAppProvidersResponse) error }
type RegistryAPIServer ¶
type RegistryAPIServer interface { // Returns the app providers that are capable of handling this resource info. // MUST return CODE_NOT_FOUND if no providers are available. GetAppProviders(context.Context, *GetAppProvidersRequest) (*GetAppProvidersResponse, error) // Returns a list of the available app providers known by this registry. ListAppProviders(context.Context, *ListAppProvidersRequest) (*ListAppProvidersResponse, error) }
RegistryAPIServer is the server API for RegistryAPI service.
type RegistryAPIService ¶
type RegistryAPIService interface { // Returns the app providers that are capable of handling this resource info. // MUST return CODE_NOT_FOUND if no providers are available. GetAppProviders(ctx context.Context, in *GetAppProvidersRequest, opts ...client.CallOption) (*GetAppProvidersResponse, error) // Returns a list of the available app providers known by this registry. ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...client.CallOption) (*ListAppProvidersResponse, error) }
func NewRegistryAPIService ¶
func NewRegistryAPIService(name string, c client.Client) RegistryAPIService
type UnimplementedRegistryAPIServer ¶
type UnimplementedRegistryAPIServer struct { }
UnimplementedRegistryAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedRegistryAPIServer) GetAppProviders ¶
func (*UnimplementedRegistryAPIServer) GetAppProviders(context.Context, *GetAppProvidersRequest) (*GetAppProvidersResponse, error)
func (*UnimplementedRegistryAPIServer) ListAppProviders ¶
func (*UnimplementedRegistryAPIServer) ListAppProviders(context.Context, *ListAppProvidersRequest) (*ListAppProvidersResponse, error)