Documentation ¶
Index ¶
- Constants
- Variables
- func Connect(options *ProviderClientOptions) (*grpc.ClientConn, error)
- func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)
- func Serve(provider ProviderServer, options *ProviderServerOptions) error
- type ConfigureReply
- type ConfigureRequest
- type DefaultProviderServer
- type DependencyVars
- type DeployResourceReply
- func (*DeployResourceReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeployResourceReply) GetError() string
- func (x *DeployResourceReply) GetSuccess() bool
- func (x *DeployResourceReply) GetUpdatedVars() map[string]string
- func (*DeployResourceReply) ProtoMessage()
- func (x *DeployResourceReply) ProtoReflect() protoreflect.Message
- func (x *DeployResourceReply) Reset()
- func (x *DeployResourceReply) String() string
- type DeployResourceRequest
- func (*DeployResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeployResourceRequest) GetDependencyVars() map[string]*DependencyVars
- func (x *DeployResourceRequest) GetDeployment() *Deployment
- func (x *DeployResourceRequest) GetResource() *Resource
- func (x *DeployResourceRequest) GetVars() map[string]string
- func (*DeployResourceRequest) ProtoMessage()
- func (x *DeployResourceRequest) ProtoReflect() protoreflect.Message
- func (x *DeployResourceRequest) Reset()
- func (x *DeployResourceRequest) String() string
- type Deployment
- func (*Deployment) Descriptor() ([]byte, []int)deprecated
- func (x *Deployment) GetId() string
- func (x *Deployment) GetTemplateVars() map[string]string
- func (*Deployment) ProtoMessage()
- func (x *Deployment) ProtoReflect() protoreflect.Message
- func (x *Deployment) Reset()
- func (x *Deployment) String() string
- type DestroyResourceReply
- func (*DestroyResourceReply) Descriptor() ([]byte, []int)deprecated
- func (x *DestroyResourceReply) GetError() string
- func (x *DestroyResourceReply) GetSuccess() bool
- func (x *DestroyResourceReply) GetUpdatedVars() map[string]string
- func (*DestroyResourceReply) ProtoMessage()
- func (x *DestroyResourceReply) ProtoReflect() protoreflect.Message
- func (x *DestroyResourceReply) Reset()
- func (x *DestroyResourceReply) String() string
- type DestroyResourceRequest
- func (*DestroyResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DestroyResourceRequest) GetDeployment() *Deployment
- func (x *DestroyResourceRequest) GetResource() *Resource
- func (x *DestroyResourceRequest) GetVars() map[string]string
- func (*DestroyResourceRequest) ProtoMessage()
- func (x *DestroyResourceRequest) ProtoReflect() protoreflect.Message
- func (x *DestroyResourceRequest) Reset()
- func (x *DestroyResourceRequest) String() string
- type ExtractResourceMetadataReply
- func (*ExtractResourceMetadataReply) Descriptor() ([]byte, []int)deprecated
- func (x *ExtractResourceMetadataReply) GetError() string
- func (x *ExtractResourceMetadataReply) GetMetadata() map[string]*Metadata
- func (x *ExtractResourceMetadataReply) GetSuccess() bool
- func (*ExtractResourceMetadataReply) ProtoMessage()
- func (x *ExtractResourceMetadataReply) ProtoReflect() protoreflect.Message
- func (x *ExtractResourceMetadataReply) Reset()
- func (x *ExtractResourceMetadataReply) String() string
- type ExtractResourceMetadataRequest
- func (*ExtractResourceMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExtractResourceMetadataRequest) GetResources() []*Resource
- func (*ExtractResourceMetadataRequest) ProtoMessage()
- func (x *ExtractResourceMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *ExtractResourceMetadataRequest) Reset()
- func (x *ExtractResourceMetadataRequest) String() string
- type Features
- type GetConsoleReply
- func (*GetConsoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetConsoleReply) GetConsole() string
- func (x *GetConsoleReply) GetError() string
- func (x *GetConsoleReply) GetSuccess() bool
- func (*GetConsoleReply) ProtoMessage()
- func (x *GetConsoleReply) ProtoReflect() protoreflect.Message
- func (x *GetConsoleReply) Reset()
- func (x *GetConsoleReply) String() string
- type GetConsoleRequest
- func (*GetConsoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetConsoleRequest) GetResource() *Resource
- func (x *GetConsoleRequest) GetVars() map[string]string
- func (*GetConsoleRequest) ProtoMessage()
- func (x *GetConsoleRequest) ProtoReflect() protoreflect.Message
- func (x *GetConsoleRequest) Reset()
- func (x *GetConsoleRequest) String() string
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetDependsOnKeys() []string
- func (x *Metadata) GetFeatures() *Features
- func (x *Metadata) GetQuotaRequirements() *QuotaRequirements
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type PowerState
- type ProviderClient
- type ProviderClientOptions
- type ProviderServer
- type ProviderServerOptions
- type QuotaRequirements
- func (*QuotaRequirements) Descriptor() ([]byte, []int)deprecated
- func (x *QuotaRequirements) GetCpu() uint64
- func (x *QuotaRequirements) GetDisk() uint64
- func (x *QuotaRequirements) GetNetwork() uint64
- func (x *QuotaRequirements) GetRam() uint64
- func (x *QuotaRequirements) GetRouter() uint64
- func (*QuotaRequirements) ProtoMessage()
- func (x *QuotaRequirements) ProtoReflect() protoreflect.Message
- func (x *QuotaRequirements) Reset()
- func (x *QuotaRequirements) String() string
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetId() string
- func (x *Resource) GetKey() string
- func (x *Resource) GetObject() []byte
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type ResourcePowerReply
- func (*ResourcePowerReply) Descriptor() ([]byte, []int)deprecated
- func (x *ResourcePowerReply) GetError() string
- func (x *ResourcePowerReply) GetSuccess() bool
- func (*ResourcePowerReply) ProtoMessage()
- func (x *ResourcePowerReply) ProtoReflect() protoreflect.Message
- func (x *ResourcePowerReply) Reset()
- func (x *ResourcePowerReply) String() string
- type ResourcePowerRequest
- func (*ResourcePowerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResourcePowerRequest) GetResource() *Resource
- func (x *ResourcePowerRequest) GetState() PowerState
- func (x *ResourcePowerRequest) GetVars() map[string]string
- func (*ResourcePowerRequest) ProtoMessage()
- func (x *ResourcePowerRequest) ProtoReflect() protoreflect.Message
- func (x *ResourcePowerRequest) Reset()
- func (x *ResourcePowerRequest) String() string
- type RetrieveDataReply
- func (*RetrieveDataReply) Descriptor() ([]byte, []int)deprecated
- func (x *RetrieveDataReply) GetError() string
- func (x *RetrieveDataReply) GetSuccess() bool
- func (x *RetrieveDataReply) GetUpdatedVars() map[string]string
- func (*RetrieveDataReply) ProtoMessage()
- func (x *RetrieveDataReply) ProtoReflect() protoreflect.Message
- func (x *RetrieveDataReply) Reset()
- func (x *RetrieveDataReply) String() string
- type RetrieveDataRequest
- func (*RetrieveDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RetrieveDataRequest) GetDependencyVars() map[string]*DependencyVars
- func (x *RetrieveDataRequest) GetDeployment() *Deployment
- func (x *RetrieveDataRequest) GetResource() *Resource
- func (x *RetrieveDataRequest) GetVars() map[string]string
- func (*RetrieveDataRequest) ProtoMessage()
- func (x *RetrieveDataRequest) ProtoReflect() protoreflect.Message
- func (x *RetrieveDataRequest) Reset()
- func (x *RetrieveDataRequest) String() string
- type UnimplementedProviderServer
- func (UnimplementedProviderServer) Configure(context.Context, *ConfigureRequest) (*ConfigureReply, error)
- func (UnimplementedProviderServer) DeployResource(context.Context, *DeployResourceRequest) (*DeployResourceReply, error)
- func (UnimplementedProviderServer) DestroyResource(context.Context, *DestroyResourceRequest) (*DestroyResourceReply, error)
- func (UnimplementedProviderServer) ExtractResourceMetadata(context.Context, *ExtractResourceMetadataRequest) (*ExtractResourceMetadataReply, error)
- func (UnimplementedProviderServer) GetConsole(context.Context, *GetConsoleRequest) (*GetConsoleReply, error)
- func (UnimplementedProviderServer) Handshake(context.Context, *common.HandshakeRequest) (*common.HandshakeReply, error)
- func (UnimplementedProviderServer) ResourcePower(context.Context, *ResourcePowerRequest) (*ResourcePowerReply, error)
- func (UnimplementedProviderServer) RetrieveData(context.Context, *RetrieveDataRequest) (*RetrieveDataReply, error)
- type UnsafeProviderServer
Constants ¶
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" )
const ( ProviderFeature_DEPLOY = "DEPLOY" ProviderFeature_DESTROY = "DESTROY" )
const VERSION = "1.0.0"
Variables ¶
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.
var File_provider_proto protoreflect.FileDescriptor
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 ¶
func (DefaultProviderServer) Handshake(ctx context.Context, request *common.HandshakeRequest) (*common.HandshakeReply, error)
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 (x *ExtractResourceMetadataReply) ProtoReflect() protoreflect.Message
func (*ExtractResourceMetadataReply) Reset ¶ added in v0.2.0
func (x *ExtractResourceMetadataReply) Reset()
func (*ExtractResourceMetadataReply) String ¶ added in v0.2.0
func (x *ExtractResourceMetadataReply) String() string
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 (x *ExtractResourceMetadataRequest) ProtoReflect() protoreflect.Message
func (*ExtractResourceMetadataRequest) Reset ¶ added in v0.2.0
func (x *ExtractResourceMetadataRequest) Reset()
func (*ExtractResourceMetadataRequest) String ¶ added in v0.2.0
func (x *ExtractResourceMetadataRequest) String() string
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) GetConsole ¶ added in v0.2.0
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
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) GetDependsOnKeys ¶ added in v0.2.0
func (*Metadata) GetFeatures ¶ added in v0.2.0
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
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
func (PowerState) Type() protoreflect.EnumType
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 NewClient ¶
func NewClient(ctx context.Context, conn grpc.ClientConnInterface) (ProviderClient, error)
func NewProviderClient ¶
func NewProviderClient(cc grpc.ClientConnInterface) ProviderClient
type ProviderClientOptions ¶
type ProviderServer ¶
type ProviderServer interface { Handshake(context.Context, *common.HandshakeRequest) (*common.HandshakeReply, error) Configure(context.Context, *ConfigureRequest) (*ConfigureReply, error) ExtractResourceMetadata(context.Context, *ExtractResourceMetadataRequest) (*ExtractResourceMetadataReply, error) RetrieveData(context.Context, *RetrieveDataRequest) (*RetrieveDataReply, error) DeployResource(context.Context, *DeployResourceRequest) (*DeployResourceReply, error) DestroyResource(context.Context, *DestroyResourceRequest) (*DestroyResourceReply, error) GetConsole(context.Context, *GetConsoleRequest) (*GetConsoleReply, error) ResourcePower(context.Context, *ResourcePowerRequest) (*ResourcePowerReply, error) // contains filtered or unexported methods }
ProviderServer is the server API for Provider service. All implementations must embed UnimplementedProviderServer for forward compatibility
type ProviderServerOptions ¶
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) ProtoMessage ¶ added in v0.2.0
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶ added in v0.2.0
func (x *Resource) ProtoReflect() protoreflect.Message
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) Configure(context.Context, *ConfigureRequest) (*ConfigureReply, error)
func (UnimplementedProviderServer) DeployResource ¶ added in v0.2.0
func (UnimplementedProviderServer) DeployResource(context.Context, *DeployResourceRequest) (*DeployResourceReply, error)
func (UnimplementedProviderServer) DestroyResource ¶ added in v0.2.0
func (UnimplementedProviderServer) DestroyResource(context.Context, *DestroyResourceRequest) (*DestroyResourceReply, error)
func (UnimplementedProviderServer) ExtractResourceMetadata ¶ added in v0.2.0
func (UnimplementedProviderServer) ExtractResourceMetadata(context.Context, *ExtractResourceMetadataRequest) (*ExtractResourceMetadataReply, error)
func (UnimplementedProviderServer) GetConsole ¶ added in v0.1.3
func (UnimplementedProviderServer) GetConsole(context.Context, *GetConsoleRequest) (*GetConsoleReply, error)
func (UnimplementedProviderServer) Handshake ¶
func (UnimplementedProviderServer) Handshake(context.Context, *common.HandshakeRequest) (*common.HandshakeReply, error)
func (UnimplementedProviderServer) ResourcePower ¶ added in v0.2.0
func (UnimplementedProviderServer) ResourcePower(context.Context, *ResourcePowerRequest) (*ResourcePowerReply, error)
func (UnimplementedProviderServer) RetrieveData ¶ added in v0.2.0
func (UnimplementedProviderServer) RetrieveData(context.Context, *RetrieveDataRequest) (*RetrieveDataReply, error)
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.