provider

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 19 Imported by: 13

Documentation

Index

Constants

View Source
const (
	Provider_Handshake_FullMethodName               = "/Provider/Handshake"
	Provider_Configure_FullMethodName               = "/Provider/Configure"
	Provider_ExtractResourceMetadata_FullMethodName = "/Provider/ExtractResourceMetadata"
	Provider_RetrieveData_FullMethodName            = "/Provider/RetrieveData"
	Provider_DeployResource_FullMethodName          = "/Provider/DeployResource"
	Provider_DestroyResource_FullMethodName         = "/Provider/DestroyResource"
	Provider_GetConsole_FullMethodName              = "/Provider/GetConsole"
	Provider_ResourcePower_FullMethodName           = "/Provider/ResourcePower"
)
View Source
const (
	ProviderFeature_DEPLOY  = "DEPLOY"
	ProviderFeature_DESTROY = "DESTROY"
)
View Source
const VERSION = "1.0.0"

Variables

View Source
var (
	PowerState_name = map[int32]string{
		0: "ON",
		1: "OFF",
		2: "RESET",
	}
	PowerState_value = map[string]int32{
		"ON":    0,
		"OFF":   1,
		"RESET": 2,
	}
)

Enum value maps for PowerState.

View Source
var File_provider_proto protoreflect.FileDescriptor
View Source
var Provider_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Provider",
	HandlerType: (*ProviderServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Handshake",
			Handler:    _Provider_Handshake_Handler,
		},
		{
			MethodName: "Configure",
			Handler:    _Provider_Configure_Handler,
		},
		{
			MethodName: "ExtractResourceMetadata",
			Handler:    _Provider_ExtractResourceMetadata_Handler,
		},
		{
			MethodName: "RetrieveData",
			Handler:    _Provider_RetrieveData_Handler,
		},
		{
			MethodName: "DeployResource",
			Handler:    _Provider_DeployResource_Handler,
		},
		{
			MethodName: "DestroyResource",
			Handler:    _Provider_DestroyResource_Handler,
		},
		{
			MethodName: "GetConsole",
			Handler:    _Provider_GetConsole_Handler,
		},
		{
			MethodName: "ResourcePower",
			Handler:    _Provider_ResourcePower_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "provider.proto",
}

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

Functions

func Connect

func Connect(options *ProviderClientOptions) (*grpc.ClientConn, error)

Connect returns a ProviderServer gRPC connection to the Provider gRPC server for use with the gRPC client

func RegisterProviderServer

func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)

func Serve

func Serve(provider ProviderServer, options *ProviderServerOptions) error

Serve is a blocking call which returns an error if unable to serve

Types

type ConfigureReply added in v0.2.0

type ConfigureReply struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigureReply) Descriptor deprecated added in v0.2.0

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

Deprecated: Use ConfigureReply.ProtoReflect.Descriptor instead.

func (*ConfigureReply) GetSuccess added in v0.2.0

func (x *ConfigureReply) GetSuccess() bool

func (*ConfigureReply) ProtoMessage added in v0.2.0

func (*ConfigureReply) ProtoMessage()

func (*ConfigureReply) ProtoReflect added in v0.2.0

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

func (*ConfigureReply) Reset added in v0.2.0

func (x *ConfigureReply) Reset()

func (*ConfigureReply) String added in v0.2.0

func (x *ConfigureReply) String() string

type ConfigureRequest

type ConfigureRequest struct {
	Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

Configure

func (*ConfigureRequest) Descriptor deprecated

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

Deprecated: Use ConfigureRequest.ProtoReflect.Descriptor instead.

func (*ConfigureRequest) GetConfig

func (x *ConfigureRequest) GetConfig() []byte

func (*ConfigureRequest) ProtoMessage

func (*ConfigureRequest) ProtoMessage()

func (*ConfigureRequest) ProtoReflect

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

func (*ConfigureRequest) Reset

func (x *ConfigureRequest) Reset()

func (*ConfigureRequest) String

func (x *ConfigureRequest) String() string

type DefaultProviderServer

type DefaultProviderServer struct {
	UnimplementedProviderServer
}

func (DefaultProviderServer) Handshake

type DependencyVars added in v0.2.0

type DependencyVars struct {
	Vars map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DependencyVars) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DependencyVars.ProtoReflect.Descriptor instead.

func (*DependencyVars) GetVars added in v0.2.0

func (x *DependencyVars) GetVars() map[string]string

func (*DependencyVars) ProtoMessage added in v0.2.0

func (*DependencyVars) ProtoMessage()

func (*DependencyVars) ProtoReflect added in v0.2.0

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

func (*DependencyVars) Reset added in v0.2.0

func (x *DependencyVars) Reset()

func (*DependencyVars) String added in v0.2.0

func (x *DependencyVars) String() string

type DeployResourceReply added in v0.2.0

type DeployResourceReply struct {
	Success     bool              `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error       *string           `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"`
	UpdatedVars map[string]string `` // To update the *ent.DeploymentNode
	/* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeployResourceReply) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DeployResourceReply.ProtoReflect.Descriptor instead.

func (*DeployResourceReply) GetError added in v0.2.0

func (x *DeployResourceReply) GetError() string

func (*DeployResourceReply) GetSuccess added in v0.2.0

func (x *DeployResourceReply) GetSuccess() bool

func (*DeployResourceReply) GetUpdatedVars added in v0.2.0

func (x *DeployResourceReply) GetUpdatedVars() map[string]string

func (*DeployResourceReply) ProtoMessage added in v0.2.0

func (*DeployResourceReply) ProtoMessage()

func (*DeployResourceReply) ProtoReflect added in v0.2.0

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

func (*DeployResourceReply) Reset added in v0.2.0

func (x *DeployResourceReply) Reset()

func (*DeployResourceReply) String added in v0.2.0

func (x *DeployResourceReply) String() string

type DeployResourceRequest added in v0.2.0

type DeployResourceRequest struct {

	// From the *ent.Deployment
	Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	// From the *ent.Resource
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// From the *ent.DeploymentNode
	Vars map[string]string `` /* 149-byte string literal not displayed */
	// Map of maps from all dependency nodes
	DependencyVars map[string]*DependencyVars `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}

Deploy

func (*DeployResourceRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DeployResourceRequest.ProtoReflect.Descriptor instead.

func (*DeployResourceRequest) GetDependencyVars added in v0.2.0

func (x *DeployResourceRequest) GetDependencyVars() map[string]*DependencyVars

func (*DeployResourceRequest) GetDeployment added in v0.2.0

func (x *DeployResourceRequest) GetDeployment() *Deployment

func (*DeployResourceRequest) GetResource added in v0.2.0

func (x *DeployResourceRequest) GetResource() *Resource

func (*DeployResourceRequest) GetVars added in v0.2.0

func (x *DeployResourceRequest) GetVars() map[string]string

func (*DeployResourceRequest) ProtoMessage added in v0.2.0

func (*DeployResourceRequest) ProtoMessage()

func (*DeployResourceRequest) ProtoReflect added in v0.2.0

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

func (*DeployResourceRequest) Reset added in v0.2.0

func (x *DeployResourceRequest) Reset()

func (*DeployResourceRequest) String added in v0.2.0

func (x *DeployResourceRequest) String() string

type Deployment added in v0.2.0

type Deployment struct {
	Id           string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	TemplateVars map[string]string `` /* 165-byte string literal not displayed */
	// contains filtered or unexported fields
}

Models

func (*Deployment) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Deployment.ProtoReflect.Descriptor instead.

func (*Deployment) GetId added in v0.2.0

func (x *Deployment) GetId() string

func (*Deployment) GetTemplateVars added in v0.2.0

func (x *Deployment) GetTemplateVars() map[string]string

func (*Deployment) ProtoMessage added in v0.2.0

func (*Deployment) ProtoMessage()

func (*Deployment) ProtoReflect added in v0.2.0

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

func (*Deployment) Reset added in v0.2.0

func (x *Deployment) Reset()

func (*Deployment) String added in v0.2.0

func (x *Deployment) String() string

type DestroyResourceReply added in v0.2.0

type DestroyResourceReply struct {
	Success     bool              `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error       *string           `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"`
	UpdatedVars map[string]string `` // To update the *ent.DeploymentNode
	/* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DestroyResourceReply) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DestroyResourceReply.ProtoReflect.Descriptor instead.

func (*DestroyResourceReply) GetError added in v0.2.0

func (x *DestroyResourceReply) GetError() string

func (*DestroyResourceReply) GetSuccess added in v0.2.0

func (x *DestroyResourceReply) GetSuccess() bool

func (*DestroyResourceReply) GetUpdatedVars added in v0.2.0

func (x *DestroyResourceReply) GetUpdatedVars() map[string]string

func (*DestroyResourceReply) ProtoMessage added in v0.2.0

func (*DestroyResourceReply) ProtoMessage()

func (*DestroyResourceReply) ProtoReflect added in v0.2.0

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

func (*DestroyResourceReply) Reset added in v0.2.0

func (x *DestroyResourceReply) Reset()

func (*DestroyResourceReply) String added in v0.2.0

func (x *DestroyResourceReply) String() string

type DestroyResourceRequest added in v0.2.0

type DestroyResourceRequest struct {
	Deployment *Deployment       `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"` // From the *ent.Deployment
	Resource   *Resource         `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`     // From the *ent.Resource
	Vars       map[string]string ``                                                                          // From the *ent.DeploymentNode
	/* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

Destroy

func (*DestroyResourceRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DestroyResourceRequest.ProtoReflect.Descriptor instead.

func (*DestroyResourceRequest) GetDeployment added in v0.2.0

func (x *DestroyResourceRequest) GetDeployment() *Deployment

func (*DestroyResourceRequest) GetResource added in v0.2.0

func (x *DestroyResourceRequest) GetResource() *Resource

func (*DestroyResourceRequest) GetVars added in v0.2.0

func (x *DestroyResourceRequest) GetVars() map[string]string

func (*DestroyResourceRequest) ProtoMessage added in v0.2.0

func (*DestroyResourceRequest) ProtoMessage()

func (*DestroyResourceRequest) ProtoReflect added in v0.2.0

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

func (*DestroyResourceRequest) Reset added in v0.2.0

func (x *DestroyResourceRequest) Reset()

func (*DestroyResourceRequest) String added in v0.2.0

func (x *DestroyResourceRequest) String() string

type ExtractResourceMetadataReply added in v0.2.0

type ExtractResourceMetadataReply struct {
	Success bool    `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   *string `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// Map of metadata mapping resource keys to metadata objects
	Metadata map[string]*Metadata `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ExtractResourceMetadataReply) Descriptor deprecated added in v0.2.0

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

Deprecated: Use ExtractResourceMetadataReply.ProtoReflect.Descriptor instead.

func (*ExtractResourceMetadataReply) GetError added in v0.2.0

func (x *ExtractResourceMetadataReply) GetError() string

func (*ExtractResourceMetadataReply) GetMetadata added in v0.2.0

func (x *ExtractResourceMetadataReply) GetMetadata() map[string]*Metadata

func (*ExtractResourceMetadataReply) GetSuccess added in v0.2.0

func (x *ExtractResourceMetadataReply) GetSuccess() bool

func (*ExtractResourceMetadataReply) ProtoMessage added in v0.2.0

func (*ExtractResourceMetadataReply) ProtoMessage()

func (*ExtractResourceMetadataReply) ProtoReflect added in v0.2.0

func (*ExtractResourceMetadataReply) Reset added in v0.2.0

func (x *ExtractResourceMetadataReply) Reset()

func (*ExtractResourceMetadataReply) String added in v0.2.0

type ExtractResourceMetadataRequest added in v0.2.0

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

func (*ExtractResourceMetadataRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use ExtractResourceMetadataRequest.ProtoReflect.Descriptor instead.

func (*ExtractResourceMetadataRequest) GetResources added in v0.2.0

func (x *ExtractResourceMetadataRequest) GetResources() []*Resource

func (*ExtractResourceMetadataRequest) ProtoMessage added in v0.2.0

func (*ExtractResourceMetadataRequest) ProtoMessage()

func (*ExtractResourceMetadataRequest) ProtoReflect added in v0.2.0

func (*ExtractResourceMetadataRequest) Reset added in v0.2.0

func (x *ExtractResourceMetadataRequest) Reset()

func (*ExtractResourceMetadataRequest) String added in v0.2.0

type Features added in v0.2.0

type Features struct {
	Power   bool `protobuf:"varint,1,opt,name=power,proto3" json:"power,omitempty"`
	Console bool `protobuf:"varint,2,opt,name=console,proto3" json:"console,omitempty"`
	// contains filtered or unexported fields
}

ExtractResourceMetadata

func (*Features) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Features.ProtoReflect.Descriptor instead.

func (*Features) GetConsole added in v0.2.0

func (x *Features) GetConsole() bool

func (*Features) GetPower added in v0.2.0

func (x *Features) GetPower() bool

func (*Features) ProtoMessage added in v0.2.0

func (*Features) ProtoMessage()

func (*Features) ProtoReflect added in v0.2.0

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

func (*Features) Reset added in v0.2.0

func (x *Features) Reset()

func (*Features) String added in v0.2.0

func (x *Features) String() string

type GetConsoleReply added in v0.1.3

type GetConsoleReply struct {
	Success bool    `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   *string `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"`
	Console string  `protobuf:"bytes,3,opt,name=console,proto3" json:"console,omitempty"`
	// contains filtered or unexported fields
}

func (*GetConsoleReply) Descriptor deprecated added in v0.1.3

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

Deprecated: Use GetConsoleReply.ProtoReflect.Descriptor instead.

func (*GetConsoleReply) GetConsole added in v0.1.3

func (x *GetConsoleReply) GetConsole() string

func (*GetConsoleReply) GetError added in v0.2.0

func (x *GetConsoleReply) GetError() string

func (*GetConsoleReply) GetSuccess added in v0.2.0

func (x *GetConsoleReply) GetSuccess() bool

func (*GetConsoleReply) ProtoMessage added in v0.1.3

func (*GetConsoleReply) ProtoMessage()

func (*GetConsoleReply) ProtoReflect added in v0.1.3

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

func (*GetConsoleReply) Reset added in v0.1.3

func (x *GetConsoleReply) Reset()

func (*GetConsoleReply) String added in v0.1.3

func (x *GetConsoleReply) String() string

type GetConsoleRequest added in v0.1.3

type GetConsoleRequest struct {
	Resource *Resource         `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // From the *ent.Resource
	Vars     map[string]string ``                                                                      // From the *ent.DeploymentNode
	/* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

GetConsole

func (*GetConsoleRequest) Descriptor deprecated added in v0.1.3

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

Deprecated: Use GetConsoleRequest.ProtoReflect.Descriptor instead.

func (*GetConsoleRequest) GetResource added in v0.2.0

func (x *GetConsoleRequest) GetResource() *Resource

func (*GetConsoleRequest) GetVars added in v0.2.0

func (x *GetConsoleRequest) GetVars() map[string]string

func (*GetConsoleRequest) ProtoMessage added in v0.1.3

func (*GetConsoleRequest) ProtoMessage()

func (*GetConsoleRequest) ProtoReflect added in v0.1.3

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

func (*GetConsoleRequest) Reset added in v0.1.3

func (x *GetConsoleRequest) Reset()

func (*GetConsoleRequest) String added in v0.1.3

func (x *GetConsoleRequest) String() string

type Metadata added in v0.2.0

type Metadata struct {

	// Keys of all resources this resource depends on
	DependsOnKeys []string `protobuf:"bytes,1,rep,name=depends_on_keys,json=dependsOnKeys,proto3" json:"depends_on_keys,omitempty"`
	// Features supported with this resource
	Features *Features `protobuf:"bytes,2,opt,name=features,proto3" json:"features,omitempty"`
	// The quota requirements which will be used by this resource
	QuotaRequirements *QuotaRequirements `protobuf:"bytes,3,opt,name=quota_requirements,json=quotaRequirements,proto3" json:"quota_requirements,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetDependsOnKeys added in v0.2.0

func (x *Metadata) GetDependsOnKeys() []string

func (*Metadata) GetFeatures added in v0.2.0

func (x *Metadata) GetFeatures() *Features

func (*Metadata) GetQuotaRequirements added in v0.2.0

func (x *Metadata) GetQuotaRequirements() *QuotaRequirements

func (*Metadata) ProtoMessage added in v0.2.0

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect added in v0.2.0

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

func (*Metadata) Reset added in v0.2.0

func (x *Metadata) Reset()

func (*Metadata) String added in v0.2.0

func (x *Metadata) String() string

type PowerState added in v0.2.0

type PowerState int32
const (
	PowerState_ON    PowerState = 0
	PowerState_OFF   PowerState = 1
	PowerState_RESET PowerState = 2
)

func (PowerState) Descriptor added in v0.2.0

func (PowerState) Descriptor() protoreflect.EnumDescriptor

func (PowerState) Enum added in v0.2.0

func (x PowerState) Enum() *PowerState

func (PowerState) EnumDescriptor deprecated added in v0.2.0

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

Deprecated: Use PowerState.Descriptor instead.

func (PowerState) Number added in v0.2.0

func (x PowerState) Number() protoreflect.EnumNumber

func (PowerState) String added in v0.2.0

func (x PowerState) String() string

func (PowerState) Type added in v0.2.0

type ProviderClient

type ProviderClient interface {
	Handshake(ctx context.Context, in *common.HandshakeRequest, opts ...grpc.CallOption) (*common.HandshakeReply, error)
	Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*ConfigureReply, error)
	ExtractResourceMetadata(ctx context.Context, in *ExtractResourceMetadataRequest, opts ...grpc.CallOption) (*ExtractResourceMetadataReply, error)
	RetrieveData(ctx context.Context, in *RetrieveDataRequest, opts ...grpc.CallOption) (*RetrieveDataReply, error)
	DeployResource(ctx context.Context, in *DeployResourceRequest, opts ...grpc.CallOption) (*DeployResourceReply, error)
	DestroyResource(ctx context.Context, in *DestroyResourceRequest, opts ...grpc.CallOption) (*DestroyResourceReply, error)
	GetConsole(ctx context.Context, in *GetConsoleRequest, opts ...grpc.CallOption) (*GetConsoleReply, error)
	ResourcePower(ctx context.Context, in *ResourcePowerRequest, opts ...grpc.CallOption) (*ResourcePowerReply, error)
}

ProviderClient is the client API for Provider 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 NewProviderClient

func NewProviderClient(cc grpc.ClientConnInterface) ProviderClient

type ProviderClientOptions

type ProviderClientOptions struct {
	TLS      bool
	CAFile   string
	SocketID string
}

type ProviderServer

ProviderServer is the server API for Provider service. All implementations must embed UnimplementedProviderServer for forward compatibility

type ProviderServerOptions

type ProviderServerOptions struct {
	TLS      bool
	CertFile string
	KeyFile  string
	SocketID string
}

type QuotaRequirements added in v0.2.0

type QuotaRequirements struct {

	// The CPU requirements in cores
	Cpu uint64 `protobuf:"varint,1,opt,name=cpu,proto3" json:"cpu,omitempty"`
	// The RAM requirements in MiB (1024 * 1024 bytes)
	Ram uint64 `protobuf:"varint,2,opt,name=ram,proto3" json:"ram,omitempty"`
	// The disk requirements in MiB (1024 * 1024 bytes)
	Disk uint64 `protobuf:"varint,3,opt,name=disk,proto3" json:"disk,omitempty"`
	// The router requirements in count
	Router uint64 `protobuf:"varint,4,opt,name=router,proto3" json:"router,omitempty"`
	// The amount of networks in count
	Network uint64 `protobuf:"varint,5,opt,name=network,proto3" json:"network,omitempty"`
	// contains filtered or unexported fields
}

func (*QuotaRequirements) Descriptor deprecated added in v0.2.0

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

Deprecated: Use QuotaRequirements.ProtoReflect.Descriptor instead.

func (*QuotaRequirements) GetCpu added in v0.2.0

func (x *QuotaRequirements) GetCpu() uint64

func (*QuotaRequirements) GetDisk added in v0.2.0

func (x *QuotaRequirements) GetDisk() uint64

func (*QuotaRequirements) GetNetwork added in v0.2.0

func (x *QuotaRequirements) GetNetwork() uint64

func (*QuotaRequirements) GetRam added in v0.2.0

func (x *QuotaRequirements) GetRam() uint64

func (*QuotaRequirements) GetRouter added in v0.2.0

func (x *QuotaRequirements) GetRouter() uint64

func (*QuotaRequirements) ProtoMessage added in v0.2.0

func (*QuotaRequirements) ProtoMessage()

func (*QuotaRequirements) ProtoReflect added in v0.2.0

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

func (*QuotaRequirements) Reset added in v0.2.0

func (x *QuotaRequirements) Reset()

func (*QuotaRequirements) String added in v0.2.0

func (x *QuotaRequirements) String() string

type Resource added in v0.2.0

type Resource struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Key    string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Object []byte `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetId added in v0.2.0

func (x *Resource) GetId() string

func (*Resource) GetKey added in v0.2.0

func (x *Resource) GetKey() string

func (*Resource) GetObject added in v0.2.0

func (x *Resource) GetObject() []byte

func (*Resource) ProtoMessage added in v0.2.0

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect added in v0.2.0

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

func (*Resource) Reset added in v0.2.0

func (x *Resource) Reset()

func (*Resource) String added in v0.2.0

func (x *Resource) String() string

type ResourcePowerReply added in v0.2.0

type ResourcePowerReply struct {
	Success bool    `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   *string `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourcePowerReply) Descriptor deprecated added in v0.2.0

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

Deprecated: Use ResourcePowerReply.ProtoReflect.Descriptor instead.

func (*ResourcePowerReply) GetError added in v0.2.0

func (x *ResourcePowerReply) GetError() string

func (*ResourcePowerReply) GetSuccess added in v0.2.0

func (x *ResourcePowerReply) GetSuccess() bool

func (*ResourcePowerReply) ProtoMessage added in v0.2.0

func (*ResourcePowerReply) ProtoMessage()

func (*ResourcePowerReply) ProtoReflect added in v0.2.0

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

func (*ResourcePowerReply) Reset added in v0.2.0

func (x *ResourcePowerReply) Reset()

func (*ResourcePowerReply) String added in v0.2.0

func (x *ResourcePowerReply) String() string

type ResourcePowerRequest added in v0.2.0

type ResourcePowerRequest struct {
	Resource *Resource         `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // From the *ent.Resource
	Vars     map[string]string ``                                                                      // From the *ent.DeploymentNode
	/* 149-byte string literal not displayed */
	State PowerState `protobuf:"varint,3,opt,name=state,proto3,enum=PowerState" json:"state,omitempty"` // The intended power state
	// contains filtered or unexported fields
}

ResourcePower

func (*ResourcePowerRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use ResourcePowerRequest.ProtoReflect.Descriptor instead.

func (*ResourcePowerRequest) GetResource added in v0.2.0

func (x *ResourcePowerRequest) GetResource() *Resource

func (*ResourcePowerRequest) GetState added in v0.2.0

func (x *ResourcePowerRequest) GetState() PowerState

func (*ResourcePowerRequest) GetVars added in v0.2.0

func (x *ResourcePowerRequest) GetVars() map[string]string

func (*ResourcePowerRequest) ProtoMessage added in v0.2.0

func (*ResourcePowerRequest) ProtoMessage()

func (*ResourcePowerRequest) ProtoReflect added in v0.2.0

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

func (*ResourcePowerRequest) Reset added in v0.2.0

func (x *ResourcePowerRequest) Reset()

func (*ResourcePowerRequest) String added in v0.2.0

func (x *ResourcePowerRequest) String() string

type RetrieveDataReply added in v0.2.0

type RetrieveDataReply struct {
	Success     bool              `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error       *string           `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"`
	UpdatedVars map[string]string `` // To update the *ent.DeploymentNode
	/* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RetrieveDataReply) Descriptor deprecated added in v0.2.0

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

Deprecated: Use RetrieveDataReply.ProtoReflect.Descriptor instead.

func (*RetrieveDataReply) GetError added in v0.2.0

func (x *RetrieveDataReply) GetError() string

func (*RetrieveDataReply) GetSuccess added in v0.2.0

func (x *RetrieveDataReply) GetSuccess() bool

func (*RetrieveDataReply) GetUpdatedVars added in v0.2.0

func (x *RetrieveDataReply) GetUpdatedVars() map[string]string

func (*RetrieveDataReply) ProtoMessage added in v0.2.0

func (*RetrieveDataReply) ProtoMessage()

func (*RetrieveDataReply) ProtoReflect added in v0.2.0

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

func (*RetrieveDataReply) Reset added in v0.2.0

func (x *RetrieveDataReply) Reset()

func (*RetrieveDataReply) String added in v0.2.0

func (x *RetrieveDataReply) String() string

type RetrieveDataRequest added in v0.2.0

type RetrieveDataRequest struct {

	// From the *ent.Deployment
	Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	// From the *ent.Resource
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// From the *ent.DeploymentNode
	Vars map[string]string `` /* 149-byte string literal not displayed */
	// Map of maps from all dependency nodes
	DependencyVars map[string]*DependencyVars `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}

RetrieveData

func (*RetrieveDataRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use RetrieveDataRequest.ProtoReflect.Descriptor instead.

func (*RetrieveDataRequest) GetDependencyVars added in v0.2.0

func (x *RetrieveDataRequest) GetDependencyVars() map[string]*DependencyVars

func (*RetrieveDataRequest) GetDeployment added in v0.2.0

func (x *RetrieveDataRequest) GetDeployment() *Deployment

func (*RetrieveDataRequest) GetResource added in v0.2.0

func (x *RetrieveDataRequest) GetResource() *Resource

func (*RetrieveDataRequest) GetVars added in v0.2.0

func (x *RetrieveDataRequest) GetVars() map[string]string

func (*RetrieveDataRequest) ProtoMessage added in v0.2.0

func (*RetrieveDataRequest) ProtoMessage()

func (*RetrieveDataRequest) ProtoReflect added in v0.2.0

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

func (*RetrieveDataRequest) Reset added in v0.2.0

func (x *RetrieveDataRequest) Reset()

func (*RetrieveDataRequest) String added in v0.2.0

func (x *RetrieveDataRequest) String() string

type UnimplementedProviderServer

type UnimplementedProviderServer struct {
}

UnimplementedProviderServer must be embedded to have forward compatible implementations.

func (UnimplementedProviderServer) Configure

func (UnimplementedProviderServer) DeployResource added in v0.2.0

func (UnimplementedProviderServer) DestroyResource added in v0.2.0

func (UnimplementedProviderServer) ExtractResourceMetadata added in v0.2.0

func (UnimplementedProviderServer) GetConsole added in v0.1.3

func (UnimplementedProviderServer) Handshake

func (UnimplementedProviderServer) ResourcePower added in v0.2.0

func (UnimplementedProviderServer) RetrieveData added in v0.2.0

type UnsafeProviderServer

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

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

Jump to

Keyboard shortcuts

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