provider

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_pb_terrarium_provider_provider_proto protoreflect.FileDescriptor
View Source
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 (*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) Enum

func (EndProviderRequest_Action) EnumDescriptor deprecated

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

Deprecated: Use EndProviderRequest_Action.Descriptor instead.

func (EndProviderRequest_Action) Number

func (EndProviderRequest_Action) String

func (x EndProviderRequest_Action) String() string

func (EndProviderRequest_Action) Type

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
const (
	Maturity_IDEA        Maturity = 0
	Maturity_PLANNING    Maturity = 1
	Maturity_DEVELOPING  Maturity = 2
	Maturity_ALPHA       Maturity = 3
	Maturity_BETA        Maturity = 4
	Maturity_STABLE      Maturity = 5
	Maturity_DEPRECATED  Maturity = 6
	Maturity_END_OF_LIFE Maturity = 7
)

func (Maturity) Descriptor

func (Maturity) Descriptor() protoreflect.EnumDescriptor

func (Maturity) Enum

func (x Maturity) Enum() *Maturity

func (Maturity) EnumDescriptor deprecated

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

Deprecated: Use Maturity.Descriptor instead.

func (Maturity) Number

func (x Maturity) Number() protoreflect.EnumNumber

func (Maturity) String

func (x Maturity) String() string

func (Maturity) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Provider.ProtoReflect.Descriptor instead.

func (*Provider) GetName

func (x *Provider) GetName() string

func (*Provider) GetVersion

func (x *Provider) GetVersion() string

func (*Provider) ProtoMessage

func (*Provider) ProtoMessage()

func (*Provider) ProtoReflect

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

func (*Provider) Reset

func (x *Provider) Reset()

func (*Provider) String

func (x *Provider) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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

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.

Jump to

Keyboard shortcuts

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