registryv1beta1

package
v0.0.0-...-3ad35d1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 14

Documentation

Index

Constants

View Source
const (
	RegistryAPI_GetAppProviders_FullMethodName                  = "/cs3.app.registry.v1beta1.RegistryAPI/GetAppProviders"
	RegistryAPI_AddAppProvider_FullMethodName                   = "/cs3.app.registry.v1beta1.RegistryAPI/AddAppProvider"
	RegistryAPI_ListAppProviders_FullMethodName                 = "/cs3.app.registry.v1beta1.RegistryAPI/ListAppProviders"
	RegistryAPI_ListSupportedMimeTypes_FullMethodName           = "/cs3.app.registry.v1beta1.RegistryAPI/ListSupportedMimeTypes"
	RegistryAPI_GetDefaultAppProviderForMimeType_FullMethodName = "/cs3.app.registry.v1beta1.RegistryAPI/GetDefaultAppProviderForMimeType"
	RegistryAPI_SetDefaultAppProviderForMimeType_FullMethodName = "/cs3.app.registry.v1beta1.RegistryAPI/SetDefaultAppProviderForMimeType"
)

Variables

View Source
var (
	ProviderInfo_Capability_name = map[int32]string{
		0: "CAPABILITY_INVALID",
		1: "CAPABILITY_VIEWER",
		2: "CAPABILITY_EDITOR",
	}
	ProviderInfo_Capability_value = map[string]int32{
		"CAPABILITY_INVALID": 0,
		"CAPABILITY_VIEWER":  1,
		"CAPABILITY_EDITOR":  2,
	}
)

Enum value maps for ProviderInfo_Capability.

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
View Source
var RegistryAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cs3.app.registry.v1beta1.RegistryAPI",
	HandlerType: (*RegistryAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAppProviders",
			Handler:    _RegistryAPI_GetAppProviders_Handler,
		},
		{
			MethodName: "AddAppProvider",
			Handler:    _RegistryAPI_AddAppProvider_Handler,
		},
		{
			MethodName: "ListAppProviders",
			Handler:    _RegistryAPI_ListAppProviders_Handler,
		},
		{
			MethodName: "ListSupportedMimeTypes",
			Handler:    _RegistryAPI_ListSupportedMimeTypes_Handler,
		},
		{
			MethodName: "GetDefaultAppProviderForMimeType",
			Handler:    _RegistryAPI_GetDefaultAppProviderForMimeType_Handler,
		},
		{
			MethodName: "SetDefaultAppProviderForMimeType",
			Handler:    _RegistryAPI_SetDefaultAppProviderForMimeType_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cs3/app/registry/v1beta1/registry_api.proto",
}

RegistryAPI_ServiceDesc is the grpc.ServiceDesc for RegistryAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRegistryAPIServer

func RegisterRegistryAPIServer(s grpc.ServiceRegistrar, srv RegistryAPIServer)

Types

type AddAppProviderRequest

type AddAppProviderRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The app provider to be registered.
	Provider *ProviderInfo `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	// contains filtered or unexported fields
}

func (*AddAppProviderRequest) Descriptor deprecated

func (*AddAppProviderRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddAppProviderRequest.ProtoReflect.Descriptor instead.

func (*AddAppProviderRequest) GetOpaque

func (x *AddAppProviderRequest) GetOpaque() *v1beta1.Opaque

func (*AddAppProviderRequest) GetProvider

func (x *AddAppProviderRequest) GetProvider() *ProviderInfo

func (*AddAppProviderRequest) ProtoMessage

func (*AddAppProviderRequest) ProtoMessage()

func (*AddAppProviderRequest) ProtoReflect

func (x *AddAppProviderRequest) ProtoReflect() protoreflect.Message

func (*AddAppProviderRequest) Reset

func (x *AddAppProviderRequest) Reset()

func (*AddAppProviderRequest) String

func (x *AddAppProviderRequest) String() string

type AddAppProviderResponse

type AddAppProviderResponse 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"`
	// contains filtered or unexported fields
}

func (*AddAppProviderResponse) Descriptor deprecated

func (*AddAppProviderResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddAppProviderResponse.ProtoReflect.Descriptor instead.

func (*AddAppProviderResponse) GetOpaque

func (x *AddAppProviderResponse) GetOpaque() *v1beta1.Opaque

func (*AddAppProviderResponse) GetStatus

func (x *AddAppProviderResponse) GetStatus() *v1beta12.Status

func (*AddAppProviderResponse) ProtoMessage

func (*AddAppProviderResponse) ProtoMessage()

func (*AddAppProviderResponse) ProtoReflect

func (x *AddAppProviderResponse) ProtoReflect() protoreflect.Message

func (*AddAppProviderResponse) Reset

func (x *AddAppProviderResponse) Reset()

func (*AddAppProviderResponse) String

func (x *AddAppProviderResponse) String() string

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 GetDefaultAppProviderForMimeTypeRequest

type GetDefaultAppProviderForMimeTypeRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The mimetype for which the default app has to be returned.
	MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDefaultAppProviderForMimeTypeRequest) Descriptor deprecated

func (*GetDefaultAppProviderForMimeTypeRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDefaultAppProviderForMimeTypeRequest.ProtoReflect.Descriptor instead.

func (*GetDefaultAppProviderForMimeTypeRequest) GetMimeType

func (*GetDefaultAppProviderForMimeTypeRequest) GetOpaque

func (*GetDefaultAppProviderForMimeTypeRequest) ProtoMessage

func (*GetDefaultAppProviderForMimeTypeRequest) ProtoReflect

func (*GetDefaultAppProviderForMimeTypeRequest) Reset

func (*GetDefaultAppProviderForMimeTypeRequest) String

type GetDefaultAppProviderForMimeTypeResponse

type GetDefaultAppProviderForMimeTypeResponse 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 default app provider for the specified mime type.
	Provider *ProviderInfo `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDefaultAppProviderForMimeTypeResponse) Descriptor deprecated

func (*GetDefaultAppProviderForMimeTypeResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDefaultAppProviderForMimeTypeResponse.ProtoReflect.Descriptor instead.

func (*GetDefaultAppProviderForMimeTypeResponse) GetOpaque

func (*GetDefaultAppProviderForMimeTypeResponse) GetProvider

func (*GetDefaultAppProviderForMimeTypeResponse) GetStatus

func (*GetDefaultAppProviderForMimeTypeResponse) ProtoMessage

func (*GetDefaultAppProviderForMimeTypeResponse) ProtoReflect

func (*GetDefaultAppProviderForMimeTypeResponse) Reset

func (*GetDefaultAppProviderForMimeTypeResponse) String

type ListAppProvidersRequest

type ListAppProvidersRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// 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 ListSupportedMimeTypesRequest

type ListSupportedMimeTypesRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSupportedMimeTypesRequest) Descriptor deprecated

func (*ListSupportedMimeTypesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSupportedMimeTypesRequest.ProtoReflect.Descriptor instead.

func (*ListSupportedMimeTypesRequest) GetOpaque

func (*ListSupportedMimeTypesRequest) ProtoMessage

func (*ListSupportedMimeTypesRequest) ProtoMessage()

func (*ListSupportedMimeTypesRequest) ProtoReflect

func (*ListSupportedMimeTypesRequest) Reset

func (x *ListSupportedMimeTypesRequest) Reset()

func (*ListSupportedMimeTypesRequest) String

type ListSupportedMimeTypesResponse

type ListSupportedMimeTypesResponse 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 supported mime types and their properties.
	MimeTypes []*MimeTypeInfo `protobuf:"bytes,3,rep,name=mime_types,json=mimeTypes,proto3" json:"mime_types,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSupportedMimeTypesResponse) Descriptor deprecated

func (*ListSupportedMimeTypesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSupportedMimeTypesResponse.ProtoReflect.Descriptor instead.

func (*ListSupportedMimeTypesResponse) GetMimeTypes

func (x *ListSupportedMimeTypesResponse) GetMimeTypes() []*MimeTypeInfo

func (*ListSupportedMimeTypesResponse) GetOpaque

func (*ListSupportedMimeTypesResponse) GetStatus

func (*ListSupportedMimeTypesResponse) ProtoMessage

func (*ListSupportedMimeTypesResponse) ProtoMessage()

func (*ListSupportedMimeTypesResponse) ProtoReflect

func (*ListSupportedMimeTypesResponse) Reset

func (x *ListSupportedMimeTypesResponse) Reset()

func (*ListSupportedMimeTypesResponse) String

type MimeTypeInfo

type MimeTypeInfo struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The mime type.
	MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
	// REQUIRED.
	// The file extension mapped to this mime type.
	Ext string `protobuf:"bytes,3,opt,name=ext,proto3" json:"ext,omitempty"`
	// REQUIRED.
	// The list of app providers which can open this mime type
	AppProviders []*ProviderInfo `protobuf:"bytes,4,rep,name=app_providers,json=appProviders,proto3" json:"app_providers,omitempty"`
	// OPTIONAL.
	// The friendly name of this mime type.
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// OPTIONAL.
	// Human-readable information to describe the mime type.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// OPTIONAL.
	// A URI to a static asset which represents the mime type icon.
	Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
	// OPTIONAL.
	// Whether the mime type is eligible for file creation in the web UI.
	// Defaults to false, i.e. files with this mime type can be opened
	// but not directly created from the web UI.
	AllowCreation bool `protobuf:"varint,8,opt,name=allow_creation,json=allowCreation,proto3" json:"allow_creation,omitempty"`
	// OPTIONAL.
	// name of the default application to open this mime type
	DefaultApplication string `protobuf:"bytes,9,opt,name=default_application,json=defaultApplication,proto3" json:"default_application,omitempty"`
	// contains filtered or unexported fields
}

Represents a mime type and its corresponding file extension.

func (*MimeTypeInfo) Descriptor deprecated

func (*MimeTypeInfo) Descriptor() ([]byte, []int)

Deprecated: Use MimeTypeInfo.ProtoReflect.Descriptor instead.

func (*MimeTypeInfo) GetAllowCreation

func (x *MimeTypeInfo) GetAllowCreation() bool

func (*MimeTypeInfo) GetAppProviders

func (x *MimeTypeInfo) GetAppProviders() []*ProviderInfo

func (*MimeTypeInfo) GetDefaultApplication

func (x *MimeTypeInfo) GetDefaultApplication() string

func (*MimeTypeInfo) GetDescription

func (x *MimeTypeInfo) GetDescription() string

func (*MimeTypeInfo) GetExt

func (x *MimeTypeInfo) GetExt() string

func (*MimeTypeInfo) GetIcon

func (x *MimeTypeInfo) GetIcon() string

func (*MimeTypeInfo) GetMimeType

func (x *MimeTypeInfo) GetMimeType() string

func (*MimeTypeInfo) GetName

func (x *MimeTypeInfo) GetName() string

func (*MimeTypeInfo) GetOpaque

func (x *MimeTypeInfo) GetOpaque() *v1beta1.Opaque

func (*MimeTypeInfo) ProtoMessage

func (*MimeTypeInfo) ProtoMessage()

func (*MimeTypeInfo) ProtoReflect

func (x *MimeTypeInfo) ProtoReflect() protoreflect.Message

func (*MimeTypeInfo) Reset

func (x *MimeTypeInfo) Reset()

func (*MimeTypeInfo) String

func (x *MimeTypeInfo) 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, localhost:1099.
	Address    string                  `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Capability ProviderInfo_Capability `` /* 128-byte string literal not displayed */
	// OPTIONAL.
	// A human-readable name of the underlying app.
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// OPTIONAL.
	// Information to describe the functionalities
	// offered by the underlying app. Meant to be read
	// by humans.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// OPTIONAL.
	// A URI to a static asset which represents the app icon.
	Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
	// OPTIONAL.
	// Whether the app can be opened only on desktop
	DesktopOnly bool `protobuf:"varint,8,opt,name=desktop_only,json=desktopOnly,proto3" json:"desktop_only,omitempty"`
	// OPTIONAL.
	// The action to be displayed to the user on the context menu.
	// By default this is "Open with".
	Action string `protobuf:"bytes,9,opt,name=action,proto3" json:"action,omitempty"`
	// REQUIRED.
	// The product name of the underlying app, to be used to handle
	// product-specific differences.
	// For example: Collabora, OnlyOffice, Microsoft365 or MicrosoftOfficeOnline
	ProductName string `protobuf:"bytes,10,opt,name=product_name,json=productName,proto3" json:"product_name,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) GetAction

func (x *ProviderInfo) GetAction() string

func (*ProviderInfo) GetAddress

func (x *ProviderInfo) GetAddress() string

func (*ProviderInfo) GetCapability

func (x *ProviderInfo) GetCapability() ProviderInfo_Capability

func (*ProviderInfo) GetDescription

func (x *ProviderInfo) GetDescription() string

func (*ProviderInfo) GetDesktopOnly

func (x *ProviderInfo) GetDesktopOnly() bool

func (*ProviderInfo) GetIcon

func (x *ProviderInfo) GetIcon() string

func (*ProviderInfo) GetMimeTypes

func (x *ProviderInfo) GetMimeTypes() []string

func (*ProviderInfo) GetName

func (x *ProviderInfo) GetName() string

func (*ProviderInfo) GetOpaque

func (x *ProviderInfo) GetOpaque() *v1beta1.Opaque

func (*ProviderInfo) GetProductName

func (x *ProviderInfo) GetProductName() string

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 ProviderInfo_Capability

type ProviderInfo_Capability int32

REQUIRED. The capability of the underlying app.

const (
	ProviderInfo_CAPABILITY_INVALID ProviderInfo_Capability = 0
	// The app is a simple viewer.
	ProviderInfo_CAPABILITY_VIEWER ProviderInfo_Capability = 1
	// The app is a full editor.
	ProviderInfo_CAPABILITY_EDITOR ProviderInfo_Capability = 2
)

func (ProviderInfo_Capability) Descriptor

func (ProviderInfo_Capability) Enum

func (ProviderInfo_Capability) EnumDescriptor deprecated

func (ProviderInfo_Capability) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProviderInfo_Capability.Descriptor instead.

func (ProviderInfo_Capability) Number

func (ProviderInfo_Capability) String

func (x ProviderInfo_Capability) String() string

func (ProviderInfo_Capability) Type

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)
	// Registers a new app provider to the registry.
	AddAppProvider(ctx context.Context, in *AddAppProviderRequest, opts ...grpc.CallOption) (*AddAppProviderResponse, error)
	// Returns a list of the available app providers known by this registry.
	ListAppProviders(ctx context.Context, in *ListAppProvidersRequest, opts ...grpc.CallOption) (*ListAppProvidersResponse, error)
	// Returns a list of the supported mime types along with the apps which they can be opened with.
	ListSupportedMimeTypes(ctx context.Context, in *ListSupportedMimeTypesRequest, opts ...grpc.CallOption) (*ListSupportedMimeTypesResponse, error)
	// Returns the default app provider which serves a specified mime type.
	GetDefaultAppProviderForMimeType(ctx context.Context, in *GetDefaultAppProviderForMimeTypeRequest, opts ...grpc.CallOption) (*GetDefaultAppProviderForMimeTypeResponse, error)
	// Sets the default app provider for a specified mime type.
	SetDefaultAppProviderForMimeType(ctx context.Context, in *SetDefaultAppProviderForMimeTypeRequest, opts ...grpc.CallOption) (*SetDefaultAppProviderForMimeTypeResponse, error)
}

RegistryAPIClient is the client API for RegistryAPI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

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)
	// Registers a new app provider to the registry.
	AddAppProvider(context.Context, *AddAppProviderRequest) (*AddAppProviderResponse, error)
	// Returns a list of the available app providers known by this registry.
	ListAppProviders(context.Context, *ListAppProvidersRequest) (*ListAppProvidersResponse, error)
	// Returns a list of the supported mime types along with the apps which they can be opened with.
	ListSupportedMimeTypes(context.Context, *ListSupportedMimeTypesRequest) (*ListSupportedMimeTypesResponse, error)
	// Returns the default app provider which serves a specified mime type.
	GetDefaultAppProviderForMimeType(context.Context, *GetDefaultAppProviderForMimeTypeRequest) (*GetDefaultAppProviderForMimeTypeResponse, error)
	// Sets the default app provider for a specified mime type.
	SetDefaultAppProviderForMimeType(context.Context, *SetDefaultAppProviderForMimeTypeRequest) (*SetDefaultAppProviderForMimeTypeResponse, error)
}

RegistryAPIServer is the server API for RegistryAPI service. All implementations should embed UnimplementedRegistryAPIServer for forward compatibility

type SetDefaultAppProviderForMimeTypeRequest

type SetDefaultAppProviderForMimeTypeRequest struct {

	// OPTIONAL.
	// Opaque information.
	Opaque *v1beta1.Opaque `protobuf:"bytes,1,opt,name=opaque,proto3" json:"opaque,omitempty"`
	// REQUIRED.
	// The mimetype for which the default app has to be returned.
	MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
	// REQUIRED.
	// The app provider to be marked as default for the specified mime type.
	Provider *ProviderInfo `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	// contains filtered or unexported fields
}

func (*SetDefaultAppProviderForMimeTypeRequest) Descriptor deprecated

func (*SetDefaultAppProviderForMimeTypeRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetDefaultAppProviderForMimeTypeRequest.ProtoReflect.Descriptor instead.

func (*SetDefaultAppProviderForMimeTypeRequest) GetMimeType

func (*SetDefaultAppProviderForMimeTypeRequest) GetOpaque

func (*SetDefaultAppProviderForMimeTypeRequest) GetProvider

func (*SetDefaultAppProviderForMimeTypeRequest) ProtoMessage

func (*SetDefaultAppProviderForMimeTypeRequest) ProtoReflect

func (*SetDefaultAppProviderForMimeTypeRequest) Reset

func (*SetDefaultAppProviderForMimeTypeRequest) String

type SetDefaultAppProviderForMimeTypeResponse

type SetDefaultAppProviderForMimeTypeResponse 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"`
	// contains filtered or unexported fields
}

func (*SetDefaultAppProviderForMimeTypeResponse) Descriptor deprecated

func (*SetDefaultAppProviderForMimeTypeResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetDefaultAppProviderForMimeTypeResponse.ProtoReflect.Descriptor instead.

func (*SetDefaultAppProviderForMimeTypeResponse) GetOpaque

func (*SetDefaultAppProviderForMimeTypeResponse) GetStatus

func (*SetDefaultAppProviderForMimeTypeResponse) ProtoMessage

func (*SetDefaultAppProviderForMimeTypeResponse) ProtoReflect

func (*SetDefaultAppProviderForMimeTypeResponse) Reset

func (*SetDefaultAppProviderForMimeTypeResponse) String

type UnimplementedRegistryAPIServer

type UnimplementedRegistryAPIServer struct {
}

UnimplementedRegistryAPIServer should be embedded to have forward compatible implementations.

func (UnimplementedRegistryAPIServer) AddAppProvider

func (UnimplementedRegistryAPIServer) GetAppProviders

func (UnimplementedRegistryAPIServer) ListAppProviders

type UnsafeRegistryAPIServer

type UnsafeRegistryAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeRegistryAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RegistryAPIServer will result in compilation errors.

Jump to

Keyboard shortcuts

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