v1

package
v0.0.0-...-2b6d021 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Target_name = map[int32]string{
		0:  "TARGET_AWS_UNSPECIFIED",
		1:  "TARGET_GCP",
		2:  "TARGET_CLOUDFLARE",
		3:  "TARGET_DIGITALOCEAN",
		4:  "TARGET_DIGITALOCEAN_DROPLET",
		5:  "TARGET_AWS_EC2",
		6:  "TARGET_AWS_LAMBDA",
		7:  "TARGET_AWS_FARGATE",
		8:  "TARGET_LINODE",
		9:  "TARGET_KUBERNETES",
		10: "TARGET_K8S",
		11: "TARGET_DOCKER",
		12: "TARGET_MOCK_BLANK",
		13: "TARGET_MOCK_TIMED",
		14: "TARGET_AWS_ECS",
		15: "TARGET_AWS_ROUTE53",
		16: "TARGET_AWS_SECURITY_GROUPS",
	}
	Target_value = map[string]int32{
		"TARGET_AWS_UNSPECIFIED":      0,
		"TARGET_GCP":                  1,
		"TARGET_CLOUDFLARE":           2,
		"TARGET_DIGITALOCEAN":         3,
		"TARGET_DIGITALOCEAN_DROPLET": 4,
		"TARGET_AWS_EC2":              5,
		"TARGET_AWS_LAMBDA":           6,
		"TARGET_AWS_FARGATE":          7,
		"TARGET_LINODE":               8,
		"TARGET_KUBERNETES":           9,
		"TARGET_K8S":                  10,
		"TARGET_DOCKER":               11,
		"TARGET_MOCK_BLANK":           12,
		"TARGET_MOCK_TIMED":           13,
		"TARGET_AWS_ECS":              14,
		"TARGET_AWS_ROUTE53":          15,
		"TARGET_AWS_SECURITY_GROUPS":  16,
	}
)

Enum value maps for Target.

View Source
var File_controlplane_resources_v1_context_proto protoreflect.FileDescriptor
View Source
var File_controlplane_resources_v1_namespace_proto protoreflect.FileDescriptor
View Source
var File_controlplane_resources_v1_resources_proto protoreflect.FileDescriptor
View Source
var Resources_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "controlplane.resources.v1.Resources",
	HandlerType: (*ResourcesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Resources_Create_Handler,
		},
		{
			MethodName: "Submit",
			Handler:    _Resources_Submit_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Resources_List_Handler,
		},
		{
			MethodName: "Versions",
			Handler:    _Resources_Versions_Handler,
		},
		{
			MethodName: "Status",
			Handler:    _Resources_Status_Handler,
		},
		{
			MethodName: "CurrentContext",
			Handler:    _Resources_CurrentContext_Handler,
		},
		{
			MethodName: "SetContext",
			Handler:    _Resources_SetContext_Handler,
		},
		{
			MethodName: "Liveness",
			Handler:    _Resources_Liveness_Handler,
		},
		{
			MethodName: "ProvisionCallback",
			Handler:    _Resources_ProvisionCallback_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "controlplane/resources/v1/resources.proto",
}

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

Functions

func RegisterResourcesServer

func RegisterResourcesServer(s grpc.ServiceRegistrar, srv ResourcesServer)

Types

type Context

type Context struct {
	Identifier string     `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Name       string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Active     bool       `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
	Namespace  *Namespace `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*Context) Descriptor deprecated

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

Deprecated: Use Context.ProtoReflect.Descriptor instead.

func (*Context) GetActive

func (x *Context) GetActive() bool

func (*Context) GetIdentifier

func (x *Context) GetIdentifier() string

func (*Context) GetName

func (x *Context) GetName() string

func (*Context) GetNamespace

func (x *Context) GetNamespace() *Namespace

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) ProtoReflect

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

func (*Context) Reset

func (x *Context) Reset()

func (*Context) String

func (x *Context) String() string

type CreateRequest

type CreateRequest struct {
	Config        *ResourceConfiguration `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	Registrations []*Registration        `protobuf:"bytes,2,rep,name=registrations,proto3" json:"registrations,omitempty"`
	Target        Target                 `protobuf:"varint,3,opt,name=target,proto3,enum=controlplane.resources.v1.Target" json:"target,omitempty"`
	Async         bool                   `protobuf:"varint,4,opt,name=async,proto3" json:"async,omitempty"`
	Skip          bool                   `protobuf:"varint,5,opt,name=skip,proto3" json:"skip,omitempty"`
	Tags          []string               `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
	Hooks         []string               `protobuf:"bytes,7,rep,name=hooks,proto3" json:"hooks,omitempty"` // simple string version of registrations
	Context       *Context               `protobuf:"bytes,8,opt,name=context,proto3,oneof" json:"context,omitempty"`
	// contains filtered or unexported fields
}

Resource Creation

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetAsync

func (x *CreateRequest) GetAsync() bool

func (*CreateRequest) GetConfig

func (x *CreateRequest) GetConfig() *ResourceConfiguration

func (*CreateRequest) GetContext

func (x *CreateRequest) GetContext() *Context

func (*CreateRequest) GetHooks

func (x *CreateRequest) GetHooks() []string

func (*CreateRequest) GetRegistrations

func (x *CreateRequest) GetRegistrations() []*Registration

func (*CreateRequest) GetSkip

func (x *CreateRequest) GetSkip() bool

func (*CreateRequest) GetTags

func (x *CreateRequest) GetTags() []string

func (*CreateRequest) GetTarget

func (x *CreateRequest) GetTarget() Target

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
	Status *ResourceResponse `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetStatus

func (x *CreateResponse) GetStatus() *ResourceResponse

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type CurrentContextRequest

type CurrentContextRequest struct {
	// contains filtered or unexported fields
}

func (*CurrentContextRequest) Descriptor deprecated

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

Deprecated: Use CurrentContextRequest.ProtoReflect.Descriptor instead.

func (*CurrentContextRequest) ProtoMessage

func (*CurrentContextRequest) ProtoMessage()

func (*CurrentContextRequest) ProtoReflect

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

func (*CurrentContextRequest) Reset

func (x *CurrentContextRequest) Reset()

func (*CurrentContextRequest) String

func (x *CurrentContextRequest) String() string

type CurrentContextResponse

type CurrentContextResponse struct {
	Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrentContextResponse) Descriptor deprecated

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

Deprecated: Use CurrentContextResponse.ProtoReflect.Descriptor instead.

func (*CurrentContextResponse) GetContext

func (x *CurrentContextResponse) GetContext() *Context

func (*CurrentContextResponse) ProtoMessage

func (*CurrentContextResponse) ProtoMessage()

func (*CurrentContextResponse) ProtoReflect

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

func (*CurrentContextResponse) Reset

func (x *CurrentContextResponse) Reset()

func (*CurrentContextResponse) String

func (x *CurrentContextResponse) String() string

type ListRequest

type ListRequest struct {
	Filter string   `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	Tags   []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

ListResources

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetFilter

func (x *ListRequest) GetFilter() string

func (*ListRequest) GetTags

func (x *ListRequest) GetTags() []string

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {
	Resources []*ResourceResponse `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetResources

func (x *ListResponse) GetResources() []*ResourceResponse

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type LivenessRequest

type LivenessRequest struct {
	// contains filtered or unexported fields
}

func (*LivenessRequest) Descriptor deprecated

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

Deprecated: Use LivenessRequest.ProtoReflect.Descriptor instead.

func (*LivenessRequest) ProtoMessage

func (*LivenessRequest) ProtoMessage()

func (*LivenessRequest) ProtoReflect

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

func (*LivenessRequest) Reset

func (x *LivenessRequest) Reset()

func (*LivenessRequest) String

func (x *LivenessRequest) String() string

type LivenessResponse

type LivenessResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*LivenessResponse) Descriptor deprecated

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

Deprecated: Use LivenessResponse.ProtoReflect.Descriptor instead.

func (*LivenessResponse) GetMessage

func (x *LivenessResponse) GetMessage() string

func (*LivenessResponse) ProtoMessage

func (*LivenessResponse) ProtoMessage()

func (*LivenessResponse) ProtoReflect

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

func (*LivenessResponse) Reset

func (x *LivenessResponse) Reset()

func (*LivenessResponse) String

func (x *LivenessResponse) String() string

type Namespace

type Namespace struct {
	Identifier string   `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Owner      string   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Tags       []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Namespace) Descriptor deprecated

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

Deprecated: Use Namespace.ProtoReflect.Descriptor instead.

func (*Namespace) GetIdentifier

func (x *Namespace) GetIdentifier() string

func (*Namespace) GetOwner

func (x *Namespace) GetOwner() string

func (*Namespace) GetTags

func (x *Namespace) GetTags() []string

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) ProtoReflect

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

func (*Namespace) Reset

func (x *Namespace) Reset()

func (*Namespace) String

func (x *Namespace) String() string

type Notification

type Notification struct {
	Identifier string     `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Status     string     `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	Name       string     `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Ip         string     `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
	Meta       *anypb.Any `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

Provision notifications to be broadcast to the various control plane notifiers

func (*Notification) Descriptor deprecated

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

Deprecated: Use Notification.ProtoReflect.Descriptor instead.

func (*Notification) GetIdentifier

func (x *Notification) GetIdentifier() string

func (*Notification) GetIp

func (x *Notification) GetIp() string

func (*Notification) GetMeta

func (x *Notification) GetMeta() *anypb.Any

func (*Notification) GetName

func (x *Notification) GetName() string

func (*Notification) GetStatus

func (x *Notification) GetStatus() string

func (*Notification) ProtoMessage

func (*Notification) ProtoMessage()

func (*Notification) ProtoReflect

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

func (*Notification) Reset

func (x *Notification) Reset()

func (*Notification) String

func (x *Notification) String() string

type ProvisionCallbackRequest

type ProvisionCallbackRequest struct {
	Identifier  string                       `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Certificate string                       `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"`
	Ip          string                       `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	Status      []*ProvisionCallbackResponse `protobuf:"bytes,4,rep,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Callbacks

func (*ProvisionCallbackRequest) Descriptor deprecated

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

Deprecated: Use ProvisionCallbackRequest.ProtoReflect.Descriptor instead.

func (*ProvisionCallbackRequest) GetCertificate

func (x *ProvisionCallbackRequest) GetCertificate() string

func (*ProvisionCallbackRequest) GetIdentifier

func (x *ProvisionCallbackRequest) GetIdentifier() string

func (*ProvisionCallbackRequest) GetIp

func (x *ProvisionCallbackRequest) GetIp() string

func (*ProvisionCallbackRequest) GetStatus

func (*ProvisionCallbackRequest) ProtoMessage

func (*ProvisionCallbackRequest) ProtoMessage()

func (*ProvisionCallbackRequest) ProtoReflect

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

func (*ProvisionCallbackRequest) Reset

func (x *ProvisionCallbackRequest) Reset()

func (*ProvisionCallbackRequest) String

func (x *ProvisionCallbackRequest) String() string

type ProvisionCallbackResponse

type ProvisionCallbackResponse struct {
	Identifier string     `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Status     string     `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	Received   bool       `protobuf:"varint,3,opt,name=received,proto3" json:"received,omitempty"`
	Meta       *anypb.Any `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*ProvisionCallbackResponse) Descriptor deprecated

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

Deprecated: Use ProvisionCallbackResponse.ProtoReflect.Descriptor instead.

func (*ProvisionCallbackResponse) GetIdentifier

func (x *ProvisionCallbackResponse) GetIdentifier() string

func (*ProvisionCallbackResponse) GetMeta

func (x *ProvisionCallbackResponse) GetMeta() *anypb.Any

func (*ProvisionCallbackResponse) GetReceived

func (x *ProvisionCallbackResponse) GetReceived() bool

func (*ProvisionCallbackResponse) GetStatus

func (x *ProvisionCallbackResponse) GetStatus() string

func (*ProvisionCallbackResponse) ProtoMessage

func (*ProvisionCallbackResponse) ProtoMessage()

func (*ProvisionCallbackResponse) ProtoReflect

func (*ProvisionCallbackResponse) Reset

func (x *ProvisionCallbackResponse) Reset()

func (*ProvisionCallbackResponse) String

func (x *ProvisionCallbackResponse) String() string

type Registration

type Registration 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"`
	Identifier  string                 `protobuf:"bytes,3,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Certificate string                 `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"`
	Ip          string                 `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"`
	Created     *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"`
	Updated     *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated,proto3" json:"updated,omitempty"`
	Meta        *anypb.Any             `protobuf:"bytes,8,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*Registration) Descriptor deprecated

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

Deprecated: Use Registration.ProtoReflect.Descriptor instead.

func (*Registration) GetCertificate

func (x *Registration) GetCertificate() string

func (*Registration) GetCreated

func (x *Registration) GetCreated() *timestamppb.Timestamp

func (*Registration) GetIdentifier

func (x *Registration) GetIdentifier() string

func (*Registration) GetIp

func (x *Registration) GetIp() string

func (*Registration) GetMeta

func (x *Registration) GetMeta() *anypb.Any

func (*Registration) GetName

func (x *Registration) GetName() string

func (*Registration) GetUpdated

func (x *Registration) GetUpdated() *timestamppb.Timestamp

func (*Registration) GetVersion

func (x *Registration) GetVersion() string

func (*Registration) ProtoMessage

func (*Registration) ProtoMessage()

func (*Registration) ProtoReflect

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

func (*Registration) Reset

func (x *Registration) Reset()

func (*Registration) String

func (x *Registration) String() string

type ResourceConfiguration

type ResourceConfiguration struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Region      string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
	Size        string `protobuf:"bytes,3,opt,name=size,proto3" json:"size,omitempty"`
	Version     string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	Provisioner string `protobuf:"bytes,5,opt,name=provisioner,proto3" json:"provisioner,omitempty"`
	// optional label, should there be variations on a resource
	// version (ie: docker tag)
	Label string `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceConfiguration) Descriptor deprecated

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

Deprecated: Use ResourceConfiguration.ProtoReflect.Descriptor instead.

func (*ResourceConfiguration) GetLabel

func (x *ResourceConfiguration) GetLabel() string

func (*ResourceConfiguration) GetName

func (x *ResourceConfiguration) GetName() string

func (*ResourceConfiguration) GetProvisioner

func (x *ResourceConfiguration) GetProvisioner() string

func (*ResourceConfiguration) GetRegion

func (x *ResourceConfiguration) GetRegion() string

func (*ResourceConfiguration) GetSize

func (x *ResourceConfiguration) GetSize() string

func (*ResourceConfiguration) GetVersion

func (x *ResourceConfiguration) GetVersion() string

func (*ResourceConfiguration) ProtoMessage

func (*ResourceConfiguration) ProtoMessage()

func (*ResourceConfiguration) ProtoReflect

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

func (*ResourceConfiguration) Reset

func (x *ResourceConfiguration) Reset()

func (*ResourceConfiguration) String

func (x *ResourceConfiguration) String() string

type ResourceResponse

type ResourceResponse struct {
	Success     bool       `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Identifier  string     `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Name        string     `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Ip          string     `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty"`
	Tls         string     `protobuf:"bytes,6,opt,name=tls,proto3" json:"tls,omitempty"`
	Meta        *anypb.Any `protobuf:"bytes,8,opt,name=meta,proto3" json:"meta,omitempty"`
	Credentials *anypb.Any `protobuf:"bytes,9,opt,name=credentials,proto3" json:"credentials,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceResponse) Descriptor deprecated

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

Deprecated: Use ResourceResponse.ProtoReflect.Descriptor instead.

func (*ResourceResponse) GetCredentials

func (x *ResourceResponse) GetCredentials() *anypb.Any

func (*ResourceResponse) GetIdentifier

func (x *ResourceResponse) GetIdentifier() string

func (*ResourceResponse) GetIp

func (x *ResourceResponse) GetIp() string

func (*ResourceResponse) GetMeta

func (x *ResourceResponse) GetMeta() *anypb.Any

func (*ResourceResponse) GetName

func (x *ResourceResponse) GetName() string

func (*ResourceResponse) GetSuccess

func (x *ResourceResponse) GetSuccess() bool

func (*ResourceResponse) GetTls

func (x *ResourceResponse) GetTls() string

func (*ResourceResponse) ProtoMessage

func (*ResourceResponse) ProtoMessage()

func (*ResourceResponse) ProtoReflect

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

func (*ResourceResponse) Reset

func (x *ResourceResponse) Reset()

func (*ResourceResponse) String

func (x *ResourceResponse) String() string

type ResourcesClient

type ResourcesClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	Submit(ctx context.Context, in *SubmitRequest, opts ...grpc.CallOption) (*SubmitResponse, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	Versions(ctx context.Context, in *VersionsRequest, opts ...grpc.CallOption) (*VersionsResponse, error)
	Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	CurrentContext(ctx context.Context, in *CurrentContextRequest, opts ...grpc.CallOption) (*CurrentContextResponse, error)
	SetContext(ctx context.Context, in *SetContextRequest, opts ...grpc.CallOption) (*SetContextResponse, error)
	Liveness(ctx context.Context, in *LivenessRequest, opts ...grpc.CallOption) (*LivenessResponse, error)
	ProvisionCallback(ctx context.Context, in *ProvisionCallbackRequest, opts ...grpc.CallOption) (*ProvisionCallbackResponse, error)
}

ResourcesClient is the client API for Resources 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 NewResourcesClient

func NewResourcesClient(cc grpc.ClientConnInterface) ResourcesClient

type ResourcesServer

ResourcesServer is the server API for Resources service. All implementations must embed UnimplementedResourcesServer for forward compatibility

type SetContextRequest

type SetContextRequest struct {
	Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

func (*SetContextRequest) Descriptor deprecated

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

Deprecated: Use SetContextRequest.ProtoReflect.Descriptor instead.

func (*SetContextRequest) GetContext

func (x *SetContextRequest) GetContext() *Context

func (*SetContextRequest) ProtoMessage

func (*SetContextRequest) ProtoMessage()

func (*SetContextRequest) ProtoReflect

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

func (*SetContextRequest) Reset

func (x *SetContextRequest) Reset()

func (*SetContextRequest) String

func (x *SetContextRequest) String() string

type SetContextResponse

type SetContextResponse struct {
	Context *Context `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	Success bool     `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*SetContextResponse) Descriptor deprecated

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

Deprecated: Use SetContextResponse.ProtoReflect.Descriptor instead.

func (*SetContextResponse) GetContext

func (x *SetContextResponse) GetContext() *Context

func (*SetContextResponse) GetSuccess

func (x *SetContextResponse) GetSuccess() bool

func (*SetContextResponse) ProtoMessage

func (*SetContextResponse) ProtoMessage()

func (*SetContextResponse) ProtoReflect

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

func (*SetContextResponse) Reset

func (x *SetContextResponse) Reset()

func (*SetContextResponse) String

func (x *SetContextResponse) String() string

type StatusRequest

type StatusRequest struct {
	Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// contains filtered or unexported fields
}

StatusResponse

func (*StatusRequest) Descriptor deprecated

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

Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.

func (*StatusRequest) GetIdentifier

func (x *StatusRequest) GetIdentifier() string

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) ProtoReflect

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

func (*StatusRequest) Reset

func (x *StatusRequest) Reset()

func (*StatusRequest) String

func (x *StatusRequest) String() string

type StatusResponse

type StatusResponse struct {
	Resource *ResourceResponse `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusResponse) Descriptor deprecated

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

Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.

func (*StatusResponse) GetResource

func (x *StatusResponse) GetResource() *ResourceResponse

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) ProtoReflect

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

func (*StatusResponse) Reset

func (x *StatusResponse) Reset()

func (*StatusResponse) String

func (x *StatusResponse) String() string

type SubmitRequest

type SubmitRequest struct {
	Data *CreateRequest `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Resource Creation

func (*SubmitRequest) Descriptor deprecated

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

Deprecated: Use SubmitRequest.ProtoReflect.Descriptor instead.

func (*SubmitRequest) GetData

func (x *SubmitRequest) GetData() *CreateRequest

func (*SubmitRequest) ProtoMessage

func (*SubmitRequest) ProtoMessage()

func (*SubmitRequest) ProtoReflect

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

func (*SubmitRequest) Reset

func (x *SubmitRequest) Reset()

func (*SubmitRequest) String

func (x *SubmitRequest) String() string

type SubmitResponse

type SubmitResponse struct {
	Data *CreateResponse `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmitResponse) Descriptor deprecated

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

Deprecated: Use SubmitResponse.ProtoReflect.Descriptor instead.

func (*SubmitResponse) GetData

func (x *SubmitResponse) GetData() *CreateResponse

func (*SubmitResponse) ProtoMessage

func (*SubmitResponse) ProtoMessage()

func (*SubmitResponse) ProtoReflect

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

func (*SubmitResponse) Reset

func (x *SubmitResponse) Reset()

func (*SubmitResponse) String

func (x *SubmitResponse) String() string

type Target

type Target int32
const (
	Target_TARGET_AWS_UNSPECIFIED      Target = 0
	Target_TARGET_GCP                  Target = 1
	Target_TARGET_CLOUDFLARE           Target = 2
	Target_TARGET_DIGITALOCEAN         Target = 3
	Target_TARGET_DIGITALOCEAN_DROPLET Target = 4
	Target_TARGET_AWS_EC2              Target = 5
	Target_TARGET_AWS_LAMBDA           Target = 6
	Target_TARGET_AWS_FARGATE          Target = 7
	Target_TARGET_LINODE               Target = 8
	Target_TARGET_KUBERNETES           Target = 9
	Target_TARGET_K8S                  Target = 10
	Target_TARGET_DOCKER               Target = 11
	// Mock/Test helper providers
	Target_TARGET_MOCK_BLANK          Target = 12
	Target_TARGET_MOCK_TIMED          Target = 13
	Target_TARGET_AWS_ECS             Target = 14
	Target_TARGET_AWS_ROUTE53         Target = 15
	Target_TARGET_AWS_SECURITY_GROUPS Target = 16
)

func (Target) Descriptor

func (Target) Descriptor() protoreflect.EnumDescriptor

func (Target) Enum

func (x Target) Enum() *Target

func (Target) EnumDescriptor deprecated

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

Deprecated: Use Target.Descriptor instead.

func (Target) Number

func (x Target) Number() protoreflect.EnumNumber

func (Target) String

func (x Target) String() string

func (Target) Type

func (Target) Type() protoreflect.EnumType

type UnimplementedResourcesServer

type UnimplementedResourcesServer struct {
}

UnimplementedResourcesServer must be embedded to have forward compatible implementations.

func (UnimplementedResourcesServer) Create

func (UnimplementedResourcesServer) CurrentContext

func (UnimplementedResourcesServer) List

func (UnimplementedResourcesServer) Liveness

func (UnimplementedResourcesServer) ProvisionCallback

func (UnimplementedResourcesServer) SetContext

func (UnimplementedResourcesServer) Status

func (UnimplementedResourcesServer) Submit

func (UnimplementedResourcesServer) Versions

type UnsafeResourcesServer

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

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

type Version

type Version struct {
	Identifier string           `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Project    string           `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	Version    string           `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Active     bool             `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"`
	Tags       []string         `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	Metadata   *VersionMetadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetActive

func (x *Version) GetActive() bool

func (*Version) GetIdentifier

func (x *Version) GetIdentifier() string

func (*Version) GetMetadata

func (x *Version) GetMetadata() *VersionMetadata

func (*Version) GetProject

func (x *Version) GetProject() string

func (*Version) GetTags

func (x *Version) GetTags() []string

func (*Version) GetVersion

func (x *Version) GetVersion() string

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

type VersionMetadata

type VersionMetadata struct {
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*VersionMetadata) Descriptor deprecated

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

Deprecated: Use VersionMetadata.ProtoReflect.Descriptor instead.

func (*VersionMetadata) GetLabels

func (x *VersionMetadata) GetLabels() map[string]string

func (*VersionMetadata) ProtoMessage

func (*VersionMetadata) ProtoMessage()

func (*VersionMetadata) ProtoReflect

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

func (*VersionMetadata) Reset

func (x *VersionMetadata) Reset()

func (*VersionMetadata) String

func (x *VersionMetadata) String() string

type VersionsRequest

type VersionsRequest struct {
	Filter string   `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	Tags   []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

ListVersions

func (*VersionsRequest) Descriptor deprecated

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

Deprecated: Use VersionsRequest.ProtoReflect.Descriptor instead.

func (*VersionsRequest) GetFilter

func (x *VersionsRequest) GetFilter() string

func (*VersionsRequest) GetTags

func (x *VersionsRequest) GetTags() []string

func (*VersionsRequest) ProtoMessage

func (*VersionsRequest) ProtoMessage()

func (*VersionsRequest) ProtoReflect

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

func (*VersionsRequest) Reset

func (x *VersionsRequest) Reset()

func (*VersionsRequest) String

func (x *VersionsRequest) String() string

type VersionsResponse

type VersionsResponse struct {
	Filter  string     `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	Version []*Version `protobuf:"bytes,2,rep,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionsResponse) Descriptor deprecated

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

Deprecated: Use VersionsResponse.ProtoReflect.Descriptor instead.

func (*VersionsResponse) GetFilter

func (x *VersionsResponse) GetFilter() string

func (*VersionsResponse) GetVersion

func (x *VersionsResponse) GetVersion() []*Version

func (*VersionsResponse) ProtoMessage

func (*VersionsResponse) ProtoMessage()

func (*VersionsResponse) ProtoReflect

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

func (*VersionsResponse) Reset

func (x *VersionsResponse) Reset()

func (*VersionsResponse) String

func (x *VersionsResponse) String() string

Jump to

Keyboard shortcuts

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