registryv1beta1

package
v0.0.0-...-6b5d9df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_cs3_app_registry_v1beta1_registry_api_proto protoreflect.FileDescriptor
View Source
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.

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) ListAppProviders

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL