Documentation ¶
Index ¶
- Variables
- func RegisterStagePluginServer(s *grpc.Server, srv StagePluginServer)
- type Box
- func (*Box) Descriptor() ([]byte, []int)deprecated
- func (x *Box) GetAccessToken() string
- func (x *Box) GetName() string
- func (x *Box) GetUser() string
- func (x *Box) GetVersion() string
- func (*Box) ProtoMessage()
- func (x *Box) ProtoReflect() protoreflect.Message
- func (x *Box) Reset()
- func (x *Box) String() string
- type CreateStageRequest
- func (*CreateStageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateStageRequest) GetConfig() *Stage
- func (*CreateStageRequest) ProtoMessage()
- func (x *CreateStageRequest) ProtoReflect() protoreflect.Message
- func (x *CreateStageRequest) Reset()
- func (x *CreateStageRequest) String() string
- type DeleteStageRequest
- func (*DeleteStageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteStageRequest) GetForce() bool
- func (x *DeleteStageRequest) GetName() string
- func (x *DeleteStageRequest) GetVolumes() bool
- func (*DeleteStageRequest) ProtoMessage()
- func (x *DeleteStageRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteStageRequest) Reset()
- func (x *DeleteStageRequest) String() string
- type GetStageRequest
- type GetStageResponse
- func (*GetStageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStageResponse) GetAvailable() bool
- func (x *GetStageResponse) GetExist() bool
- func (x *GetStageResponse) GetName() string
- func (x *GetStageResponse) GetSshOptions() *SSHOptions
- func (*GetStageResponse) ProtoMessage()
- func (x *GetStageResponse) ProtoReflect() protoreflect.Message
- func (x *GetStageResponse) Reset()
- func (x *GetStageResponse) String() string
- type InitPluginResponse
- func (*InitPluginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InitPluginResponse) GetConfig() map[string]string
- func (*InitPluginResponse) ProtoMessage()
- func (x *InitPluginResponse) ProtoReflect() protoreflect.Message
- func (x *InitPluginResponse) Reset()
- func (x *InitPluginResponse) String() string
- type PersistentVolume
- type PluginInfo
- func (*PluginInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PluginInfo) GetDependencies() []*PluginName
- func (x *PluginInfo) GetFields() map[string]string
- func (x *PluginInfo) GetName() *PluginName
- func (*PluginInfo) ProtoMessage()
- func (x *PluginInfo) ProtoReflect() protoreflect.Message
- func (x *PluginInfo) Reset()
- func (x *PluginInfo) String() string
- type PluginName
- type Resources
- func (*Resources) Descriptor() ([]byte, []int)deprecated
- func (x *Resources) GetCpu() int64
- func (x *Resources) GetMemory() int64
- func (x *Resources) GetUsbFilters() []*UsbFilter
- func (x *Resources) GetVolumes() []*PersistentVolume
- func (*Resources) ProtoMessage()
- func (x *Resources) ProtoReflect() protoreflect.Message
- func (x *Resources) Reset()
- func (x *Resources) String() string
- type SSHOptions
- func (*SSHOptions) Descriptor() ([]byte, []int)deprecated
- func (x *SSHOptions) GetHostname() string
- func (x *SSHOptions) GetPort() int32
- func (x *SSHOptions) GetPrivateKeyFile() string
- func (x *SSHOptions) GetUsername() string
- func (*SSHOptions) ProtoMessage()
- func (x *SSHOptions) ProtoReflect() protoreflect.Message
- func (x *SSHOptions) Reset()
- func (x *SSHOptions) String() string
- type Stage
- func (*Stage) Descriptor() ([]byte, []int)deprecated
- func (x *Stage) GetBox() *Box
- func (x *Stage) GetName() string
- func (x *Stage) GetResources() *Resources
- func (x *Stage) GetType() string
- func (*Stage) ProtoMessage()
- func (x *Stage) ProtoReflect() protoreflect.Message
- func (x *Stage) Reset()
- func (x *Stage) String() string
- type StagePluginClient
- type StagePluginServer
- type StartStageRequest
- type StopStageRequest
- type UnimplementedStagePluginServer
- func (*UnimplementedStagePluginServer) CreateStage(context.Context, *CreateStageRequest) (*empty.Empty, error)
- func (*UnimplementedStagePluginServer) DeleteStage(context.Context, *DeleteStageRequest) (*empty.Empty, error)
- func (*UnimplementedStagePluginServer) GetPluginInfo(context.Context, *empty.Empty) (*PluginInfo, error)
- func (*UnimplementedStagePluginServer) GetStage(context.Context, *GetStageRequest) (*GetStageResponse, error)
- func (*UnimplementedStagePluginServer) InitPlugin(context.Context, *empty.Empty) (*InitPluginResponse, error)
- func (*UnimplementedStagePluginServer) StartStage(context.Context, *StartStageRequest) (*empty.Empty, error)
- func (*UnimplementedStagePluginServer) StopStage(context.Context, *StopStageRequest) (*empty.Empty, error)
- type UsbFilter
- func (*UsbFilter) Descriptor() ([]byte, []int)deprecated
- func (x *UsbFilter) GetName() string
- func (x *UsbFilter) GetProductId() string
- func (x *UsbFilter) GetVendorId() string
- func (*UsbFilter) ProtoMessage()
- func (x *UsbFilter) ProtoReflect() protoreflect.Message
- func (x *UsbFilter) Reset()
- func (x *UsbFilter) String() string
Constants ¶
This section is empty.
Variables ¶
var File_api_v1alpha1_stage_plugin_proto protoreflect.FileDescriptor
var File_api_v1alpha1_stage_proto protoreflect.FileDescriptor
Functions ¶
func RegisterStagePluginServer ¶
func RegisterStagePluginServer(s *grpc.Server, srv StagePluginServer)
Types ¶
type Box ¶
type Box struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*Box) Descriptor
deprecated
func (*Box) GetAccessToken ¶
func (*Box) GetVersion ¶
func (*Box) ProtoMessage ¶
func (*Box) ProtoMessage()
func (*Box) ProtoReflect ¶
func (x *Box) ProtoReflect() protoreflect.Message
type CreateStageRequest ¶
type CreateStageRequest struct { Config *Stage `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*CreateStageRequest) Descriptor
deprecated
func (*CreateStageRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateStageRequest.ProtoReflect.Descriptor instead.
func (*CreateStageRequest) GetConfig ¶
func (x *CreateStageRequest) GetConfig() *Stage
func (*CreateStageRequest) ProtoMessage ¶
func (*CreateStageRequest) ProtoMessage()
func (*CreateStageRequest) ProtoReflect ¶
func (x *CreateStageRequest) ProtoReflect() protoreflect.Message
func (*CreateStageRequest) Reset ¶
func (x *CreateStageRequest) Reset()
func (*CreateStageRequest) String ¶
func (x *CreateStageRequest) String() string
type DeleteStageRequest ¶
type DeleteStageRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"` Volumes bool `protobuf:"varint,3,opt,name=volumes,proto3" json:"volumes,omitempty"` // contains filtered or unexported fields }
func (*DeleteStageRequest) Descriptor
deprecated
func (*DeleteStageRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteStageRequest.ProtoReflect.Descriptor instead.
func (*DeleteStageRequest) GetForce ¶
func (x *DeleteStageRequest) GetForce() bool
func (*DeleteStageRequest) GetName ¶
func (x *DeleteStageRequest) GetName() string
func (*DeleteStageRequest) GetVolumes ¶
func (x *DeleteStageRequest) GetVolumes() bool
func (*DeleteStageRequest) ProtoMessage ¶
func (*DeleteStageRequest) ProtoMessage()
func (*DeleteStageRequest) ProtoReflect ¶
func (x *DeleteStageRequest) ProtoReflect() protoreflect.Message
func (*DeleteStageRequest) Reset ¶
func (x *DeleteStageRequest) Reset()
func (*DeleteStageRequest) String ¶
func (x *DeleteStageRequest) String() string
type GetStageRequest ¶
type GetStageRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetStageRequest) Descriptor
deprecated
func (*GetStageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStageRequest.ProtoReflect.Descriptor instead.
func (*GetStageRequest) GetName ¶
func (x *GetStageRequest) GetName() string
func (*GetStageRequest) ProtoMessage ¶
func (*GetStageRequest) ProtoMessage()
func (*GetStageRequest) ProtoReflect ¶
func (x *GetStageRequest) ProtoReflect() protoreflect.Message
func (*GetStageRequest) Reset ¶
func (x *GetStageRequest) Reset()
func (*GetStageRequest) String ¶
func (x *GetStageRequest) String() string
type GetStageResponse ¶
type GetStageResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Exist bool `protobuf:"varint,2,opt,name=exist,proto3" json:"exist,omitempty"` Available bool `protobuf:"varint,3,opt,name=available,proto3" json:"available,omitempty"` SshOptions *SSHOptions `protobuf:"bytes,4,opt,name=ssh_options,json=sshOptions,proto3" json:"ssh_options,omitempty"` // contains filtered or unexported fields }
func (*GetStageResponse) Descriptor
deprecated
func (*GetStageResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStageResponse.ProtoReflect.Descriptor instead.
func (*GetStageResponse) GetAvailable ¶
func (x *GetStageResponse) GetAvailable() bool
func (*GetStageResponse) GetExist ¶
func (x *GetStageResponse) GetExist() bool
func (*GetStageResponse) GetName ¶
func (x *GetStageResponse) GetName() string
func (*GetStageResponse) GetSshOptions ¶
func (x *GetStageResponse) GetSshOptions() *SSHOptions
func (*GetStageResponse) ProtoMessage ¶
func (*GetStageResponse) ProtoMessage()
func (*GetStageResponse) ProtoReflect ¶
func (x *GetStageResponse) ProtoReflect() protoreflect.Message
func (*GetStageResponse) Reset ¶
func (x *GetStageResponse) Reset()
func (*GetStageResponse) String ¶
func (x *GetStageResponse) String() string
type InitPluginResponse ¶
type InitPluginResponse struct { Config map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*InitPluginResponse) Descriptor
deprecated
func (*InitPluginResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitPluginResponse.ProtoReflect.Descriptor instead.
func (*InitPluginResponse) GetConfig ¶
func (x *InitPluginResponse) GetConfig() map[string]string
func (*InitPluginResponse) ProtoMessage ¶
func (*InitPluginResponse) ProtoMessage()
func (*InitPluginResponse) ProtoReflect ¶
func (x *InitPluginResponse) ProtoReflect() protoreflect.Message
func (*InitPluginResponse) Reset ¶
func (x *InitPluginResponse) Reset()
func (*InitPluginResponse) String ¶
func (x *InitPluginResponse) String() string
type PersistentVolume ¶
type PersistentVolume struct { Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*PersistentVolume) Descriptor
deprecated
func (*PersistentVolume) Descriptor() ([]byte, []int)
Deprecated: Use PersistentVolume.ProtoReflect.Descriptor instead.
func (*PersistentVolume) GetSize ¶
func (x *PersistentVolume) GetSize() int64
func (*PersistentVolume) ProtoMessage ¶
func (*PersistentVolume) ProtoMessage()
func (*PersistentVolume) ProtoReflect ¶
func (x *PersistentVolume) ProtoReflect() protoreflect.Message
func (*PersistentVolume) Reset ¶
func (x *PersistentVolume) Reset()
func (*PersistentVolume) String ¶
func (x *PersistentVolume) String() string
type PluginInfo ¶
type PluginInfo struct { Name *PluginName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Dependencies []*PluginName `protobuf:"bytes,2,rep,name=dependencies,proto3" json:"dependencies,omitempty"` Fields map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PluginInfo) Descriptor
deprecated
func (*PluginInfo) Descriptor() ([]byte, []int)
Deprecated: Use PluginInfo.ProtoReflect.Descriptor instead.
func (*PluginInfo) GetDependencies ¶
func (x *PluginInfo) GetDependencies() []*PluginName
func (*PluginInfo) GetFields ¶
func (x *PluginInfo) GetFields() map[string]string
func (*PluginInfo) GetName ¶
func (x *PluginInfo) GetName() *PluginName
func (*PluginInfo) ProtoMessage ¶
func (*PluginInfo) ProtoMessage()
func (*PluginInfo) ProtoReflect ¶
func (x *PluginInfo) ProtoReflect() protoreflect.Message
func (*PluginInfo) Reset ¶
func (x *PluginInfo) Reset()
func (*PluginInfo) String ¶
func (x *PluginInfo) String() string
type PluginName ¶
type PluginName struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*PluginName) Descriptor
deprecated
func (*PluginName) Descriptor() ([]byte, []int)
Deprecated: Use PluginName.ProtoReflect.Descriptor instead.
func (*PluginName) GetName ¶
func (x *PluginName) GetName() string
func (*PluginName) GetType ¶
func (x *PluginName) GetType() string
func (*PluginName) ProtoMessage ¶
func (*PluginName) ProtoMessage()
func (*PluginName) ProtoReflect ¶
func (x *PluginName) ProtoReflect() protoreflect.Message
func (*PluginName) Reset ¶
func (x *PluginName) Reset()
func (*PluginName) String ¶
func (x *PluginName) String() string
type Resources ¶
type Resources struct { Cpu int64 `protobuf:"varint,1,opt,name=cpu,proto3" json:"cpu,omitempty"` Memory int64 `protobuf:"varint,2,opt,name=memory,proto3" json:"memory,omitempty"` Volumes []*PersistentVolume `protobuf:"bytes,3,rep,name=volumes,proto3" json:"volumes,omitempty"` UsbFilters []*UsbFilter `protobuf:"bytes,4,rep,name=usb_filters,json=usbFilters,proto3" json:"usb_filters,omitempty"` // contains filtered or unexported fields }
func (*Resources) Descriptor
deprecated
func (*Resources) GetUsbFilters ¶
func (*Resources) GetVolumes ¶
func (x *Resources) GetVolumes() []*PersistentVolume
func (*Resources) ProtoMessage ¶
func (*Resources) ProtoMessage()
func (*Resources) ProtoReflect ¶
func (x *Resources) ProtoReflect() protoreflect.Message
type SSHOptions ¶
type SSHOptions struct { Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` PrivateKeyFile string `protobuf:"bytes,4,opt,name=private_key_file,json=privateKeyFile,proto3" json:"private_key_file,omitempty"` // contains filtered or unexported fields }
func (*SSHOptions) Descriptor
deprecated
func (*SSHOptions) Descriptor() ([]byte, []int)
Deprecated: Use SSHOptions.ProtoReflect.Descriptor instead.
func (*SSHOptions) GetHostname ¶
func (x *SSHOptions) GetHostname() string
func (*SSHOptions) GetPort ¶
func (x *SSHOptions) GetPort() int32
func (*SSHOptions) GetPrivateKeyFile ¶
func (x *SSHOptions) GetPrivateKeyFile() string
func (*SSHOptions) GetUsername ¶
func (x *SSHOptions) GetUsername() string
func (*SSHOptions) ProtoMessage ¶
func (*SSHOptions) ProtoMessage()
func (*SSHOptions) ProtoReflect ¶
func (x *SSHOptions) ProtoReflect() protoreflect.Message
func (*SSHOptions) Reset ¶
func (x *SSHOptions) Reset()
func (*SSHOptions) String ¶
func (x *SSHOptions) String() string
type Stage ¶
type Stage struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Box *Box `protobuf:"bytes,3,opt,name=box,proto3" json:"box,omitempty"` Resources *Resources `protobuf:"bytes,4,opt,name=resources,proto3" json:"resources,omitempty"` // contains filtered or unexported fields }
func (*Stage) Descriptor
deprecated
func (*Stage) GetResources ¶
func (*Stage) ProtoMessage ¶
func (*Stage) ProtoMessage()
func (*Stage) ProtoReflect ¶
func (x *Stage) ProtoReflect() protoreflect.Message
type StagePluginClient ¶
type StagePluginClient interface { GetPluginInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PluginInfo, error) InitPlugin(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*InitPluginResponse, error) GetStage(ctx context.Context, in *GetStageRequest, opts ...grpc.CallOption) (*GetStageResponse, error) CreateStage(ctx context.Context, in *CreateStageRequest, opts ...grpc.CallOption) (*empty.Empty, error) DeleteStage(ctx context.Context, in *DeleteStageRequest, opts ...grpc.CallOption) (*empty.Empty, error) StartStage(ctx context.Context, in *StartStageRequest, opts ...grpc.CallOption) (*empty.Empty, error) StopStage(ctx context.Context, in *StopStageRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
StagePluginClient is the client API for StagePlugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStagePluginClient ¶
func NewStagePluginClient(cc grpc.ClientConnInterface) StagePluginClient
type StagePluginServer ¶
type StagePluginServer interface { GetPluginInfo(context.Context, *empty.Empty) (*PluginInfo, error) InitPlugin(context.Context, *empty.Empty) (*InitPluginResponse, error) GetStage(context.Context, *GetStageRequest) (*GetStageResponse, error) CreateStage(context.Context, *CreateStageRequest) (*empty.Empty, error) DeleteStage(context.Context, *DeleteStageRequest) (*empty.Empty, error) StartStage(context.Context, *StartStageRequest) (*empty.Empty, error) StopStage(context.Context, *StopStageRequest) (*empty.Empty, error) }
StagePluginServer is the server API for StagePlugin service.
type StartStageRequest ¶
type StartStageRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*StartStageRequest) Descriptor
deprecated
func (*StartStageRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartStageRequest.ProtoReflect.Descriptor instead.
func (*StartStageRequest) GetName ¶
func (x *StartStageRequest) GetName() string
func (*StartStageRequest) ProtoMessage ¶
func (*StartStageRequest) ProtoMessage()
func (*StartStageRequest) ProtoReflect ¶
func (x *StartStageRequest) ProtoReflect() protoreflect.Message
func (*StartStageRequest) Reset ¶
func (x *StartStageRequest) Reset()
func (*StartStageRequest) String ¶
func (x *StartStageRequest) String() string
type StopStageRequest ¶
type StopStageRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*StopStageRequest) Descriptor
deprecated
func (*StopStageRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopStageRequest.ProtoReflect.Descriptor instead.
func (*StopStageRequest) GetName ¶
func (x *StopStageRequest) GetName() string
func (*StopStageRequest) ProtoMessage ¶
func (*StopStageRequest) ProtoMessage()
func (*StopStageRequest) ProtoReflect ¶
func (x *StopStageRequest) ProtoReflect() protoreflect.Message
func (*StopStageRequest) Reset ¶
func (x *StopStageRequest) Reset()
func (*StopStageRequest) String ¶
func (x *StopStageRequest) String() string
type UnimplementedStagePluginServer ¶
type UnimplementedStagePluginServer struct { }
UnimplementedStagePluginServer can be embedded to have forward compatible implementations.
func (*UnimplementedStagePluginServer) CreateStage ¶
func (*UnimplementedStagePluginServer) CreateStage(context.Context, *CreateStageRequest) (*empty.Empty, error)
func (*UnimplementedStagePluginServer) DeleteStage ¶
func (*UnimplementedStagePluginServer) DeleteStage(context.Context, *DeleteStageRequest) (*empty.Empty, error)
func (*UnimplementedStagePluginServer) GetPluginInfo ¶
func (*UnimplementedStagePluginServer) GetPluginInfo(context.Context, *empty.Empty) (*PluginInfo, error)
func (*UnimplementedStagePluginServer) GetStage ¶
func (*UnimplementedStagePluginServer) GetStage(context.Context, *GetStageRequest) (*GetStageResponse, error)
func (*UnimplementedStagePluginServer) InitPlugin ¶
func (*UnimplementedStagePluginServer) InitPlugin(context.Context, *empty.Empty) (*InitPluginResponse, error)
func (*UnimplementedStagePluginServer) StartStage ¶
func (*UnimplementedStagePluginServer) StartStage(context.Context, *StartStageRequest) (*empty.Empty, error)
func (*UnimplementedStagePluginServer) StopStage ¶
func (*UnimplementedStagePluginServer) StopStage(context.Context, *StopStageRequest) (*empty.Empty, error)
type UsbFilter ¶
type UsbFilter struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` VendorId string `protobuf:"bytes,2,opt,name=vendor_id,json=vendorId,proto3" json:"vendor_id,omitempty"` ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // contains filtered or unexported fields }
func (*UsbFilter) Descriptor
deprecated
func (*UsbFilter) GetProductId ¶
func (*UsbFilter) GetVendorId ¶
func (*UsbFilter) ProtoMessage ¶
func (*UsbFilter) ProtoMessage()
func (*UsbFilter) ProtoReflect ¶
func (x *UsbFilter) ProtoReflect() protoreflect.Message