Documentation ¶
Index ¶
- Variables
- func RegisterProviderPublisherServer(s grpc.ServiceRegistrar, srv ProviderPublisherServer)
- type EndProviderRequest
- func (*EndProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EndProviderRequest) GetAction() EndProviderRequest_Action
- func (x *EndProviderRequest) GetProvider() *Provider
- func (*EndProviderRequest) ProtoMessage()
- func (x *EndProviderRequest) ProtoReflect() protoreflect.Message
- func (x *EndProviderRequest) Reset()
- func (x *EndProviderRequest) String() string
- type EndProviderRequest_Action
- func (EndProviderRequest_Action) Descriptor() protoreflect.EnumDescriptor
- func (x EndProviderRequest_Action) Enum() *EndProviderRequest_Action
- func (EndProviderRequest_Action) EnumDescriptor() ([]byte, []int)deprecated
- func (x EndProviderRequest_Action) Number() protoreflect.EnumNumber
- func (x EndProviderRequest_Action) String() string
- func (EndProviderRequest_Action) Type() protoreflect.EnumType
- type GPGPublicKey
- func (*GPGPublicKey) Descriptor() ([]byte, []int)deprecated
- func (x *GPGPublicKey) GetAsciiArmor() string
- func (x *GPGPublicKey) GetKeyId() string
- func (x *GPGPublicKey) GetSource() string
- func (x *GPGPublicKey) GetSourceUrl() string
- func (x *GPGPublicKey) GetTrustSignature() string
- func (*GPGPublicKey) ProtoMessage()
- func (x *GPGPublicKey) ProtoReflect() protoreflect.Message
- func (x *GPGPublicKey) Reset()
- func (x *GPGPublicKey) String() string
- type Maturity
- type PlatformItem
- func (*PlatformItem) Descriptor() ([]byte, []int)deprecated
- func (x *PlatformItem) GetArch() string
- func (x *PlatformItem) GetDownloadUrl() string
- func (x *PlatformItem) GetFilename() string
- func (x *PlatformItem) GetOs() string
- func (x *PlatformItem) GetShasum() string
- func (x *PlatformItem) GetShasumsSignatureUrl() string
- func (x *PlatformItem) GetShasumsUrl() string
- func (x *PlatformItem) GetSigningKeys() *SigningKeys
- func (*PlatformItem) ProtoMessage()
- func (x *PlatformItem) ProtoReflect() protoreflect.Message
- func (x *PlatformItem) Reset()
- func (x *PlatformItem) String() string
- type Provider
- type ProviderPublisherClient
- type ProviderPublisherServer
- type RegisterProviderRequest
- func (*RegisterProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterProviderRequest) GetApiKey() string
- func (x *RegisterProviderRequest) GetCreatedOn() string
- func (x *RegisterProviderRequest) GetDescription() string
- func (x *RegisterProviderRequest) GetMaturity() Maturity
- func (x *RegisterProviderRequest) GetModifiedOn() string
- func (x *RegisterProviderRequest) GetName() string
- func (x *RegisterProviderRequest) GetPlatforms() []*PlatformItem
- func (x *RegisterProviderRequest) GetProtocols() []string
- func (x *RegisterProviderRequest) GetPublishedOn() string
- func (x *RegisterProviderRequest) GetSourceRepoUrl() string
- func (x *RegisterProviderRequest) GetVersion() string
- func (*RegisterProviderRequest) ProtoMessage()
- func (x *RegisterProviderRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterProviderRequest) Reset()
- func (x *RegisterProviderRequest) String() string
- type Response
- type SigningKeys
- type UnimplementedProviderPublisherServer
- type UnsafeProviderPublisherServer
Constants ¶
This section is empty.
Variables ¶
var ( Maturity_name = map[int32]string{ 0: "IDEA", 1: "PLANNING", 2: "DEVELOPING", 3: "ALPHA", 4: "BETA", 5: "STABLE", 6: "DEPRECATED", 7: "END_OF_LIFE", } Maturity_value = map[string]int32{ "IDEA": 0, "PLANNING": 1, "DEVELOPING": 2, "ALPHA": 3, "BETA": 4, "STABLE": 5, "DEPRECATED": 6, "END_OF_LIFE": 7, } )
Enum value maps for Maturity.
var ( EndProviderRequest_Action_name = map[int32]string{ 0: "DISCARD_VERSION", 1: "PUBLISH", } EndProviderRequest_Action_value = map[string]int32{ "DISCARD_VERSION": 0, "PUBLISH": 1, } )
Enum value maps for EndProviderRequest_Action.
var File_pb_terrarium_provider_provider_proto protoreflect.FileDescriptor
var ProviderPublisher_ServiceDesc = grpc.ServiceDesc{ ServiceName: "terrarium.provider.ProviderPublisher", HandlerType: (*ProviderPublisherServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterProvider", Handler: _ProviderPublisher_RegisterProvider_Handler, }, { MethodName: "EndProvider", Handler: _ProviderPublisher_EndProvider_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/terrarium/provider/provider.proto", }
ProviderPublisher_ServiceDesc is the grpc.ServiceDesc for ProviderPublisher service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProviderPublisherServer ¶
func RegisterProviderPublisherServer(s grpc.ServiceRegistrar, srv ProviderPublisherServer)
Types ¶
type EndProviderRequest ¶
type EndProviderRequest struct { Provider *Provider `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` Action EndProviderRequest_Action `protobuf:"varint,4,opt,name=action,proto3,enum=terrarium.provider.EndProviderRequest_Action" json:"action,omitempty"` // contains filtered or unexported fields }
func (*EndProviderRequest) Descriptor
deprecated
func (*EndProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use EndProviderRequest.ProtoReflect.Descriptor instead.
func (*EndProviderRequest) GetAction ¶
func (x *EndProviderRequest) GetAction() EndProviderRequest_Action
func (*EndProviderRequest) GetProvider ¶
func (x *EndProviderRequest) GetProvider() *Provider
func (*EndProviderRequest) ProtoMessage ¶
func (*EndProviderRequest) ProtoMessage()
func (*EndProviderRequest) ProtoReflect ¶
func (x *EndProviderRequest) ProtoReflect() protoreflect.Message
func (*EndProviderRequest) Reset ¶
func (x *EndProviderRequest) Reset()
func (*EndProviderRequest) String ¶
func (x *EndProviderRequest) String() string
type EndProviderRequest_Action ¶
type EndProviderRequest_Action int32
const ( EndProviderRequest_DISCARD_VERSION EndProviderRequest_Action = 0 EndProviderRequest_PUBLISH EndProviderRequest_Action = 1 )
func (EndProviderRequest_Action) Descriptor ¶
func (EndProviderRequest_Action) Descriptor() protoreflect.EnumDescriptor
func (EndProviderRequest_Action) Enum ¶
func (x EndProviderRequest_Action) Enum() *EndProviderRequest_Action
func (EndProviderRequest_Action) EnumDescriptor
deprecated
func (EndProviderRequest_Action) EnumDescriptor() ([]byte, []int)
Deprecated: Use EndProviderRequest_Action.Descriptor instead.
func (EndProviderRequest_Action) Number ¶
func (x EndProviderRequest_Action) Number() protoreflect.EnumNumber
func (EndProviderRequest_Action) String ¶
func (x EndProviderRequest_Action) String() string
func (EndProviderRequest_Action) Type ¶
func (EndProviderRequest_Action) Type() protoreflect.EnumType
type GPGPublicKey ¶
type GPGPublicKey struct { KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` AsciiArmor string `protobuf:"bytes,2,opt,name=ascii_armor,json=asciiArmor,proto3" json:"ascii_armor,omitempty"` TrustSignature string `protobuf:"bytes,3,opt,name=trust_signature,json=trustSignature,proto3" json:"trust_signature,omitempty"` Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` SourceUrl string `protobuf:"bytes,5,opt,name=source_url,json=sourceUrl,proto3" json:"source_url,omitempty"` // contains filtered or unexported fields }
func (*GPGPublicKey) Descriptor
deprecated
func (*GPGPublicKey) Descriptor() ([]byte, []int)
Deprecated: Use GPGPublicKey.ProtoReflect.Descriptor instead.
func (*GPGPublicKey) GetAsciiArmor ¶
func (x *GPGPublicKey) GetAsciiArmor() string
func (*GPGPublicKey) GetKeyId ¶
func (x *GPGPublicKey) GetKeyId() string
func (*GPGPublicKey) GetSource ¶
func (x *GPGPublicKey) GetSource() string
func (*GPGPublicKey) GetSourceUrl ¶
func (x *GPGPublicKey) GetSourceUrl() string
func (*GPGPublicKey) GetTrustSignature ¶
func (x *GPGPublicKey) GetTrustSignature() string
func (*GPGPublicKey) ProtoMessage ¶
func (*GPGPublicKey) ProtoMessage()
func (*GPGPublicKey) ProtoReflect ¶
func (x *GPGPublicKey) ProtoReflect() protoreflect.Message
func (*GPGPublicKey) Reset ¶
func (x *GPGPublicKey) Reset()
func (*GPGPublicKey) String ¶
func (x *GPGPublicKey) String() string
type Maturity ¶
type Maturity int32
func (Maturity) Descriptor ¶
func (Maturity) Descriptor() protoreflect.EnumDescriptor
func (Maturity) EnumDescriptor
deprecated
func (Maturity) Number ¶
func (x Maturity) Number() protoreflect.EnumNumber
func (Maturity) Type ¶
func (Maturity) Type() protoreflect.EnumType
type PlatformItem ¶
type PlatformItem struct { Os string `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"` Arch string `protobuf:"bytes,2,opt,name=arch,proto3" json:"arch,omitempty"` Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` DownloadUrl string `protobuf:"bytes,4,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"` ShasumsUrl string `protobuf:"bytes,5,opt,name=shasums_url,json=shasumsUrl,proto3" json:"shasums_url,omitempty"` ShasumsSignatureUrl string `protobuf:"bytes,6,opt,name=shasums_signature_url,json=shasumsSignatureUrl,proto3" json:"shasums_signature_url,omitempty"` Shasum string `protobuf:"bytes,7,opt,name=shasum,proto3" json:"shasum,omitempty"` SigningKeys *SigningKeys `protobuf:"bytes,8,opt,name=signing_keys,json=signingKeys,proto3" json:"signing_keys,omitempty"` // contains filtered or unexported fields }
func (*PlatformItem) Descriptor
deprecated
func (*PlatformItem) Descriptor() ([]byte, []int)
Deprecated: Use PlatformItem.ProtoReflect.Descriptor instead.
func (*PlatformItem) GetArch ¶
func (x *PlatformItem) GetArch() string
func (*PlatformItem) GetDownloadUrl ¶
func (x *PlatformItem) GetDownloadUrl() string
func (*PlatformItem) GetFilename ¶
func (x *PlatformItem) GetFilename() string
func (*PlatformItem) GetOs ¶
func (x *PlatformItem) GetOs() string
func (*PlatformItem) GetShasum ¶
func (x *PlatformItem) GetShasum() string
func (*PlatformItem) GetShasumsSignatureUrl ¶
func (x *PlatformItem) GetShasumsSignatureUrl() string
func (*PlatformItem) GetShasumsUrl ¶
func (x *PlatformItem) GetShasumsUrl() string
func (*PlatformItem) GetSigningKeys ¶
func (x *PlatformItem) GetSigningKeys() *SigningKeys
func (*PlatformItem) ProtoMessage ¶
func (*PlatformItem) ProtoMessage()
func (*PlatformItem) ProtoReflect ¶
func (x *PlatformItem) ProtoReflect() protoreflect.Message
func (*PlatformItem) Reset ¶
func (x *PlatformItem) Reset()
func (*PlatformItem) String ¶
func (x *PlatformItem) String() string
type Provider ¶
type Provider struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*Provider) Descriptor
deprecated
func (*Provider) GetVersion ¶
func (*Provider) ProtoMessage ¶
func (*Provider) ProtoMessage()
func (*Provider) ProtoReflect ¶
func (x *Provider) ProtoReflect() protoreflect.Message
type ProviderPublisherClient ¶
type ProviderPublisherClient interface { RegisterProvider(ctx context.Context, in *RegisterProviderRequest, opts ...grpc.CallOption) (*Response, error) EndProvider(ctx context.Context, in *EndProviderRequest, opts ...grpc.CallOption) (*Response, error) }
ProviderPublisherClient is the client API for ProviderPublisher 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.
func NewProviderPublisherClient ¶
func NewProviderPublisherClient(cc grpc.ClientConnInterface) ProviderPublisherClient
type ProviderPublisherServer ¶
type ProviderPublisherServer interface { RegisterProvider(context.Context, *RegisterProviderRequest) (*Response, error) EndProvider(context.Context, *EndProviderRequest) (*Response, error) // contains filtered or unexported methods }
ProviderPublisherServer is the server API for ProviderPublisher service. All implementations must embed UnimplementedProviderPublisherServer for forward compatibility
type RegisterProviderRequest ¶
type RegisterProviderRequest struct { ApiKey string `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Protocols []string `protobuf:"bytes,4,rep,name=protocols,proto3" json:"protocols,omitempty"` Platforms []*PlatformItem `protobuf:"bytes,5,rep,name=platforms,proto3" json:"platforms,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` SourceRepoUrl string `protobuf:"bytes,7,opt,name=source_repo_url,json=sourceRepoUrl,proto3" json:"source_repo_url,omitempty"` Maturity Maturity `protobuf:"varint,8,opt,name=maturity,proto3,enum=terrarium.provider.Maturity" json:"maturity,omitempty"` CreatedOn string `protobuf:"bytes,9,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"` ModifiedOn string `protobuf:"bytes,10,opt,name=modified_on,json=modifiedOn,proto3" json:"modified_on,omitempty"` PublishedOn string `protobuf:"bytes,11,opt,name=published_on,json=publishedOn,proto3" json:"published_on,omitempty"` // contains filtered or unexported fields }
func (*RegisterProviderRequest) Descriptor
deprecated
func (*RegisterProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterProviderRequest.ProtoReflect.Descriptor instead.
func (*RegisterProviderRequest) GetApiKey ¶
func (x *RegisterProviderRequest) GetApiKey() string
func (*RegisterProviderRequest) GetCreatedOn ¶
func (x *RegisterProviderRequest) GetCreatedOn() string
func (*RegisterProviderRequest) GetDescription ¶
func (x *RegisterProviderRequest) GetDescription() string
func (*RegisterProviderRequest) GetMaturity ¶
func (x *RegisterProviderRequest) GetMaturity() Maturity
func (*RegisterProviderRequest) GetModifiedOn ¶
func (x *RegisterProviderRequest) GetModifiedOn() string
func (*RegisterProviderRequest) GetName ¶
func (x *RegisterProviderRequest) GetName() string
func (*RegisterProviderRequest) GetPlatforms ¶
func (x *RegisterProviderRequest) GetPlatforms() []*PlatformItem
func (*RegisterProviderRequest) GetProtocols ¶
func (x *RegisterProviderRequest) GetProtocols() []string
func (*RegisterProviderRequest) GetPublishedOn ¶
func (x *RegisterProviderRequest) GetPublishedOn() string
func (*RegisterProviderRequest) GetSourceRepoUrl ¶
func (x *RegisterProviderRequest) GetSourceRepoUrl() string
func (*RegisterProviderRequest) GetVersion ¶
func (x *RegisterProviderRequest) GetVersion() string
func (*RegisterProviderRequest) ProtoMessage ¶
func (*RegisterProviderRequest) ProtoMessage()
func (*RegisterProviderRequest) ProtoReflect ¶
func (x *RegisterProviderRequest) ProtoReflect() protoreflect.Message
func (*RegisterProviderRequest) Reset ¶
func (x *RegisterProviderRequest) Reset()
func (*RegisterProviderRequest) String ¶
func (x *RegisterProviderRequest) String() string
type Response ¶
type Response struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type SigningKeys ¶
type SigningKeys struct { GpgPublicKeys []*GPGPublicKey `protobuf:"bytes,1,rep,name=gpg_public_keys,json=gpgPublicKeys,proto3" json:"gpg_public_keys,omitempty"` // contains filtered or unexported fields }
func (*SigningKeys) Descriptor
deprecated
func (*SigningKeys) Descriptor() ([]byte, []int)
Deprecated: Use SigningKeys.ProtoReflect.Descriptor instead.
func (*SigningKeys) GetGpgPublicKeys ¶
func (x *SigningKeys) GetGpgPublicKeys() []*GPGPublicKey
func (*SigningKeys) ProtoMessage ¶
func (*SigningKeys) ProtoMessage()
func (*SigningKeys) ProtoReflect ¶
func (x *SigningKeys) ProtoReflect() protoreflect.Message
func (*SigningKeys) Reset ¶
func (x *SigningKeys) Reset()
func (*SigningKeys) String ¶
func (x *SigningKeys) String() string
type UnimplementedProviderPublisherServer ¶
type UnimplementedProviderPublisherServer struct { }
UnimplementedProviderPublisherServer must be embedded to have forward compatible implementations.
func (UnimplementedProviderPublisherServer) EndProvider ¶
func (UnimplementedProviderPublisherServer) EndProvider(context.Context, *EndProviderRequest) (*Response, error)
func (UnimplementedProviderPublisherServer) RegisterProvider ¶
func (UnimplementedProviderPublisherServer) RegisterProvider(context.Context, *RegisterProviderRequest) (*Response, error)
type UnsafeProviderPublisherServer ¶
type UnsafeProviderPublisherServer interface {
// contains filtered or unexported methods
}
UnsafeProviderPublisherServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProviderPublisherServer will result in compilation errors.