api

package
v0.0.0-...-89dc3a7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Image_OS_name = map[int32]string{
		0: "OS_UNSPECIFIEED",
		1: "DEBIAN_BUSTER",
		2: "DEBIAN_BULLSEYE",
		3: "DEBIAN_BOOKWORM",
	}
	Image_OS_value = map[string]int32{
		"OS_UNSPECIFIEED": 0,
		"DEBIAN_BUSTER":   1,
		"DEBIAN_BULLSEYE": 2,
		"DEBIAN_BOOKWORM": 3,
	}
)

Enum value maps for Image_OS.

View Source
var (
	Machine_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "CREATED",
		2: "STOPPED",
		3: "RUNNING",
		4: "CRASHED",
	}
	Machine_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATED":            1,
		"STOPPED":            2,
		"RUNNING":            3,
		"CRASHED":            4,
	}
)

Enum value maps for Machine_Status.

View Source
var (
	Activity_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "MACHINE_CREATED",
		2: "MACHINE_POWERON",
		3: "MACHINE_POWEROFF",
		4: "MACHINE_DELETED",
		5: "MACHINE_REBOOT",
		6: "IMAGE_CREATED",
		7: "IMAGE_DELETED",
		8: "SSHKEY_CREATED",
		9: "SSHKEY_DELETED",
	}
	Activity_Type_value = map[string]int32{
		"UNKNOWN":          0,
		"MACHINE_CREATED":  1,
		"MACHINE_POWERON":  2,
		"MACHINE_POWEROFF": 3,
		"MACHINE_DELETED":  4,
		"MACHINE_REBOOT":   5,
		"IMAGE_CREATED":    6,
		"IMAGE_DELETED":    7,
		"SSHKEY_CREATED":   8,
		"SSHKEY_DELETED":   9,
	}
)

Enum value maps for Activity_Type.

View Source
var (
	TriggerMachineRequest_Event_name = map[int32]string{
		0: "EVENT_UNKNOWN",
		1: "POWERON",
		2: "POWEROFF",
		3: "REBOOT",
	}
	TriggerMachineRequest_Event_value = map[string]int32{
		"EVENT_UNKNOWN": 0,
		"POWERON":       1,
		"POWEROFF":      2,
		"REBOOT":        3,
	}
)

Enum value maps for TriggerMachineRequest_Event.

View Source
var File_service_proto protoreflect.FileDescriptor
View Source
var Sox_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sox.v1.Sox",
	HandlerType: (*SoxServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateMachine",
			Handler:    _Sox_CreateMachine_Handler,
		},
		{
			MethodName: "ListMachines",
			Handler:    _Sox_ListMachines_Handler,
		},
		{
			MethodName: "GetMachineDetails",
			Handler:    _Sox_GetMachineDetails_Handler,
		},
		{
			MethodName: "DeleteMachine",
			Handler:    _Sox_DeleteMachine_Handler,
		},
		{
			MethodName: "TriggerMachine",
			Handler:    _Sox_TriggerMachine_Handler,
		},
		{
			MethodName: "CreateSSHKey",
			Handler:    _Sox_CreateSSHKey_Handler,
		},
		{
			MethodName: "ListSSHKeys",
			Handler:    _Sox_ListSSHKeys_Handler,
		},
		{
			MethodName: "DeleteSSHKey",
			Handler:    _Sox_DeleteSSHKey_Handler,
		},
		{
			MethodName: "ListImages",
			Handler:    _Sox_ListImages_Handler,
		},
		{
			MethodName: "ListNetworks",
			Handler:    _Sox_ListNetworks_Handler,
		},
		{
			MethodName: "CreateNetwork",
			Handler:    _Sox_CreateNetwork_Handler,
		},
		{
			MethodName: "ListActivities",
			Handler:    _Sox_ListActivities_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service.proto",
}

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

Functions

func RegisterSoxServer

func RegisterSoxServer(s grpc.ServiceRegistrar, srv SoxServer)

Types

type Activity

type Activity struct {
	Type      Activity_Type          `protobuf:"varint,1,opt,name=type,proto3,enum=sox.v1.Activity_Type" json:"type,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Subject   string                 `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

func (*Activity) Descriptor deprecated

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

Deprecated: Use Activity.ProtoReflect.Descriptor instead.

func (*Activity) GetSubject

func (x *Activity) GetSubject() string

func (*Activity) GetTimestamp

func (x *Activity) GetTimestamp() *timestamppb.Timestamp

func (*Activity) GetType

func (x *Activity) GetType() Activity_Type

func (*Activity) ProtoMessage

func (*Activity) ProtoMessage()

func (*Activity) ProtoReflect

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

func (*Activity) Reset

func (x *Activity) Reset()

func (*Activity) String

func (x *Activity) String() string

type Activity_Type

type Activity_Type int32
const (
	Activity_UNKNOWN          Activity_Type = 0
	Activity_MACHINE_CREATED  Activity_Type = 1
	Activity_MACHINE_POWERON  Activity_Type = 2
	Activity_MACHINE_POWEROFF Activity_Type = 3
	Activity_MACHINE_DELETED  Activity_Type = 4
	Activity_MACHINE_REBOOT   Activity_Type = 5
	Activity_IMAGE_CREATED    Activity_Type = 6
	Activity_IMAGE_DELETED    Activity_Type = 7
	Activity_SSHKEY_CREATED   Activity_Type = 8
	Activity_SSHKEY_DELETED   Activity_Type = 9
)

func (Activity_Type) Descriptor

func (Activity_Type) Enum

func (x Activity_Type) Enum() *Activity_Type

func (Activity_Type) EnumDescriptor deprecated

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

Deprecated: Use Activity_Type.Descriptor instead.

func (Activity_Type) Number

func (Activity_Type) String

func (x Activity_Type) String() string

func (Activity_Type) Type

type CreateMachineRequest

type CreateMachineRequest struct {
	Name       string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Specs      *Machine_Specs `protobuf:"bytes,2,opt,name=specs,proto3" json:"specs,omitempty"`
	ImageId    string         `protobuf:"bytes,3,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	SshKeyIds  []string       `protobuf:"bytes,4,rep,name=ssh_key_ids,json=sshKeyIds,proto3" json:"ssh_key_ids,omitempty"`
	NetworkIds []string       `protobuf:"bytes,5,rep,name=network_ids,json=networkIds,proto3" json:"network_ids,omitempty"`
	User       string         `protobuf:"bytes,6,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMachineRequest) Descriptor deprecated

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

Deprecated: Use CreateMachineRequest.ProtoReflect.Descriptor instead.

func (*CreateMachineRequest) GetImageId

func (x *CreateMachineRequest) GetImageId() string

func (*CreateMachineRequest) GetName

func (x *CreateMachineRequest) GetName() string

func (*CreateMachineRequest) GetNetworkIds

func (x *CreateMachineRequest) GetNetworkIds() []string

func (*CreateMachineRequest) GetSpecs

func (x *CreateMachineRequest) GetSpecs() *Machine_Specs

func (*CreateMachineRequest) GetSshKeyIds

func (x *CreateMachineRequest) GetSshKeyIds() []string

func (*CreateMachineRequest) GetUser

func (x *CreateMachineRequest) GetUser() string

func (*CreateMachineRequest) ProtoMessage

func (*CreateMachineRequest) ProtoMessage()

func (*CreateMachineRequest) ProtoReflect

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

func (*CreateMachineRequest) Reset

func (x *CreateMachineRequest) Reset()

func (*CreateMachineRequest) String

func (x *CreateMachineRequest) String() string

type CreateMachineResponse

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

func (*CreateMachineResponse) Descriptor deprecated

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

Deprecated: Use CreateMachineResponse.ProtoReflect.Descriptor instead.

func (*CreateMachineResponse) GetId

func (x *CreateMachineResponse) GetId() string

func (*CreateMachineResponse) ProtoMessage

func (*CreateMachineResponse) ProtoMessage()

func (*CreateMachineResponse) ProtoReflect

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

func (*CreateMachineResponse) Reset

func (x *CreateMachineResponse) Reset()

func (*CreateMachineResponse) String

func (x *CreateMachineResponse) String() string

type CreateNetworkRequest

type CreateNetworkRequest struct {
	Name     string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	BridgeId uint32     `protobuf:"varint,2,opt,name=bridge_id,json=bridgeId,proto3" json:"bridge_id,omitempty"`
	IpV4     *IpNetwork `protobuf:"bytes,3,opt,name=ip_v4,json=ipV4,proto3" json:"ip_v4,omitempty"`
	IpV6     *IpNetwork `protobuf:"bytes,4,opt,name=ip_v6,json=ipV6,proto3" json:"ip_v6,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateNetworkRequest) Descriptor deprecated

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

Deprecated: Use CreateNetworkRequest.ProtoReflect.Descriptor instead.

func (*CreateNetworkRequest) GetBridgeId

func (x *CreateNetworkRequest) GetBridgeId() uint32

func (*CreateNetworkRequest) GetIpV4

func (x *CreateNetworkRequest) GetIpV4() *IpNetwork

func (*CreateNetworkRequest) GetIpV6

func (x *CreateNetworkRequest) GetIpV6() *IpNetwork

func (*CreateNetworkRequest) GetName

func (x *CreateNetworkRequest) GetName() string

func (*CreateNetworkRequest) ProtoMessage

func (*CreateNetworkRequest) ProtoMessage()

func (*CreateNetworkRequest) ProtoReflect

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

func (*CreateNetworkRequest) Reset

func (x *CreateNetworkRequest) Reset()

func (*CreateNetworkRequest) String

func (x *CreateNetworkRequest) String() string

type CreateNetworkResponse

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

func (*CreateNetworkResponse) Descriptor deprecated

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

Deprecated: Use CreateNetworkResponse.ProtoReflect.Descriptor instead.

func (*CreateNetworkResponse) GetId

func (x *CreateNetworkResponse) GetId() string

func (*CreateNetworkResponse) ProtoMessage

func (*CreateNetworkResponse) ProtoMessage()

func (*CreateNetworkResponse) ProtoReflect

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

func (*CreateNetworkResponse) Reset

func (x *CreateNetworkResponse) Reset()

func (*CreateNetworkResponse) String

func (x *CreateNetworkResponse) String() string

type CreateSSHKeyRequest

type CreateSSHKeyRequest struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSSHKeyRequest) Descriptor deprecated

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

Deprecated: Use CreateSSHKeyRequest.ProtoReflect.Descriptor instead.

func (*CreateSSHKeyRequest) GetName

func (x *CreateSSHKeyRequest) GetName() string

func (*CreateSSHKeyRequest) GetPubkey

func (x *CreateSSHKeyRequest) GetPubkey() string

func (*CreateSSHKeyRequest) ProtoMessage

func (*CreateSSHKeyRequest) ProtoMessage()

func (*CreateSSHKeyRequest) ProtoReflect

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

func (*CreateSSHKeyRequest) Reset

func (x *CreateSSHKeyRequest) Reset()

func (*CreateSSHKeyRequest) String

func (x *CreateSSHKeyRequest) String() string

type CreateSSHKeyResponse

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

func (*CreateSSHKeyResponse) Descriptor deprecated

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

Deprecated: Use CreateSSHKeyResponse.ProtoReflect.Descriptor instead.

func (*CreateSSHKeyResponse) GetId

func (x *CreateSSHKeyResponse) GetId() string

func (*CreateSSHKeyResponse) ProtoMessage

func (*CreateSSHKeyResponse) ProtoMessage()

func (*CreateSSHKeyResponse) ProtoReflect

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

func (*CreateSSHKeyResponse) Reset

func (x *CreateSSHKeyResponse) Reset()

func (*CreateSSHKeyResponse) String

func (x *CreateSSHKeyResponse) String() string

type DeleteMachineRequest

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

func (*DeleteMachineRequest) Descriptor deprecated

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

Deprecated: Use DeleteMachineRequest.ProtoReflect.Descriptor instead.

func (*DeleteMachineRequest) GetId

func (x *DeleteMachineRequest) GetId() string

func (*DeleteMachineRequest) ProtoMessage

func (*DeleteMachineRequest) ProtoMessage()

func (*DeleteMachineRequest) ProtoReflect

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

func (*DeleteMachineRequest) Reset

func (x *DeleteMachineRequest) Reset()

func (*DeleteMachineRequest) String

func (x *DeleteMachineRequest) String() string

type DeleteMachineResponse

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

func (*DeleteMachineResponse) Descriptor deprecated

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

Deprecated: Use DeleteMachineResponse.ProtoReflect.Descriptor instead.

func (*DeleteMachineResponse) ProtoMessage

func (*DeleteMachineResponse) ProtoMessage()

func (*DeleteMachineResponse) ProtoReflect

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

func (*DeleteMachineResponse) Reset

func (x *DeleteMachineResponse) Reset()

func (*DeleteMachineResponse) String

func (x *DeleteMachineResponse) String() string

type DeleteSSHKeyRequest

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

func (*DeleteSSHKeyRequest) Descriptor deprecated

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

Deprecated: Use DeleteSSHKeyRequest.ProtoReflect.Descriptor instead.

func (*DeleteSSHKeyRequest) GetId

func (x *DeleteSSHKeyRequest) GetId() string

func (*DeleteSSHKeyRequest) ProtoMessage

func (*DeleteSSHKeyRequest) ProtoMessage()

func (*DeleteSSHKeyRequest) ProtoReflect

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

func (*DeleteSSHKeyRequest) Reset

func (x *DeleteSSHKeyRequest) Reset()

func (*DeleteSSHKeyRequest) String

func (x *DeleteSSHKeyRequest) String() string

type DeleteSSHKeyResponse

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

func (*DeleteSSHKeyResponse) Descriptor deprecated

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

Deprecated: Use DeleteSSHKeyResponse.ProtoReflect.Descriptor instead.

func (*DeleteSSHKeyResponse) ProtoMessage

func (*DeleteSSHKeyResponse) ProtoMessage()

func (*DeleteSSHKeyResponse) ProtoReflect

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

func (*DeleteSSHKeyResponse) Reset

func (x *DeleteSSHKeyResponse) Reset()

func (*DeleteSSHKeyResponse) String

func (x *DeleteSSHKeyResponse) String() string

type GetMachineDetailsRequest

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

func (*GetMachineDetailsRequest) Descriptor deprecated

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

Deprecated: Use GetMachineDetailsRequest.ProtoReflect.Descriptor instead.

func (*GetMachineDetailsRequest) GetId

func (x *GetMachineDetailsRequest) GetId() string

func (*GetMachineDetailsRequest) ProtoMessage

func (*GetMachineDetailsRequest) ProtoMessage()

func (*GetMachineDetailsRequest) ProtoReflect

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

func (*GetMachineDetailsRequest) Reset

func (x *GetMachineDetailsRequest) Reset()

func (*GetMachineDetailsRequest) String

func (x *GetMachineDetailsRequest) String() string

type GetMachineDetailsResponse

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

func (*GetMachineDetailsResponse) Descriptor deprecated

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

Deprecated: Use GetMachineDetailsResponse.ProtoReflect.Descriptor instead.

func (*GetMachineDetailsResponse) GetMachine

func (x *GetMachineDetailsResponse) GetMachine() *Machine

func (*GetMachineDetailsResponse) ProtoMessage

func (*GetMachineDetailsResponse) ProtoMessage()

func (*GetMachineDetailsResponse) ProtoReflect

func (*GetMachineDetailsResponse) Reset

func (x *GetMachineDetailsResponse) Reset()

func (*GetMachineDetailsResponse) String

func (x *GetMachineDetailsResponse) String() string

type Image

type Image struct {
	Id     string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	System Image_OS `protobuf:"varint,3,opt,name=system,proto3,enum=sox.v1.Image_OS" json:"system,omitempty"`
	// contains filtered or unexported fields
}

func (*Image) Descriptor deprecated

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetId

func (x *Image) GetId() string

func (*Image) GetName

func (x *Image) GetName() string

func (*Image) GetSystem

func (x *Image) GetSystem() Image_OS

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type Image_OS

type Image_OS int32
const (
	Image_OS_UNSPECIFIEED Image_OS = 0
	Image_DEBIAN_BUSTER   Image_OS = 1
	Image_DEBIAN_BULLSEYE Image_OS = 2
	Image_DEBIAN_BOOKWORM Image_OS = 3
)

func (Image_OS) Descriptor

func (Image_OS) Descriptor() protoreflect.EnumDescriptor

func (Image_OS) Enum

func (x Image_OS) Enum() *Image_OS

func (Image_OS) EnumDescriptor deprecated

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

Deprecated: Use Image_OS.Descriptor instead.

func (Image_OS) Number

func (x Image_OS) Number() protoreflect.EnumNumber

func (Image_OS) String

func (x Image_OS) String() string

func (Image_OS) Type

type IpNetwork

type IpNetwork struct {
	Subnet  string `protobuf:"bytes,1,opt,name=subnet,proto3" json:"subnet,omitempty"`
	Gateway string `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"`
	// contains filtered or unexported fields
}

func (*IpNetwork) Descriptor deprecated

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

Deprecated: Use IpNetwork.ProtoReflect.Descriptor instead.

func (*IpNetwork) GetGateway

func (x *IpNetwork) GetGateway() string

func (*IpNetwork) GetSubnet

func (x *IpNetwork) GetSubnet() string

func (*IpNetwork) ProtoMessage

func (*IpNetwork) ProtoMessage()

func (*IpNetwork) ProtoReflect

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

func (*IpNetwork) Reset

func (x *IpNetwork) Reset()

func (*IpNetwork) String

func (x *IpNetwork) String() string

type ListActivitiesRequest

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

func (*ListActivitiesRequest) Descriptor deprecated

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

Deprecated: Use ListActivitiesRequest.ProtoReflect.Descriptor instead.

func (*ListActivitiesRequest) ProtoMessage

func (*ListActivitiesRequest) ProtoMessage()

func (*ListActivitiesRequest) ProtoReflect

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

func (*ListActivitiesRequest) Reset

func (x *ListActivitiesRequest) Reset()

func (*ListActivitiesRequest) String

func (x *ListActivitiesRequest) String() string

type ListActivitiesResponse

type ListActivitiesResponse struct {
	Activities []*Activity `protobuf:"bytes,1,rep,name=activities,proto3" json:"activities,omitempty"`
	// contains filtered or unexported fields
}

func (*ListActivitiesResponse) Descriptor deprecated

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

Deprecated: Use ListActivitiesResponse.ProtoReflect.Descriptor instead.

func (*ListActivitiesResponse) GetActivities

func (x *ListActivitiesResponse) GetActivities() []*Activity

func (*ListActivitiesResponse) ProtoMessage

func (*ListActivitiesResponse) ProtoMessage()

func (*ListActivitiesResponse) ProtoReflect

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

func (*ListActivitiesResponse) Reset

func (x *ListActivitiesResponse) Reset()

func (*ListActivitiesResponse) String

func (x *ListActivitiesResponse) String() string

type ListImagesRequest

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

func (*ListImagesRequest) Descriptor deprecated

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

Deprecated: Use ListImagesRequest.ProtoReflect.Descriptor instead.

func (*ListImagesRequest) ProtoMessage

func (*ListImagesRequest) ProtoMessage()

func (*ListImagesRequest) ProtoReflect

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

func (*ListImagesRequest) Reset

func (x *ListImagesRequest) Reset()

func (*ListImagesRequest) String

func (x *ListImagesRequest) String() string

type ListImagesResponse

type ListImagesResponse struct {
	Images []*Image `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"`
	// contains filtered or unexported fields
}

func (*ListImagesResponse) Descriptor deprecated

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

Deprecated: Use ListImagesResponse.ProtoReflect.Descriptor instead.

func (*ListImagesResponse) GetImages

func (x *ListImagesResponse) GetImages() []*Image

func (*ListImagesResponse) ProtoMessage

func (*ListImagesResponse) ProtoMessage()

func (*ListImagesResponse) ProtoReflect

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

func (*ListImagesResponse) Reset

func (x *ListImagesResponse) Reset()

func (*ListImagesResponse) String

func (x *ListImagesResponse) String() string

type ListMachinesRequest

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

func (*ListMachinesRequest) Descriptor deprecated

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

Deprecated: Use ListMachinesRequest.ProtoReflect.Descriptor instead.

func (*ListMachinesRequest) ProtoMessage

func (*ListMachinesRequest) ProtoMessage()

func (*ListMachinesRequest) ProtoReflect

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

func (*ListMachinesRequest) Reset

func (x *ListMachinesRequest) Reset()

func (*ListMachinesRequest) String

func (x *ListMachinesRequest) String() string

type ListMachinesResponse

type ListMachinesResponse struct {
	Machines []*Machine `protobuf:"bytes,1,rep,name=machines,proto3" json:"machines,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMachinesResponse) Descriptor deprecated

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

Deprecated: Use ListMachinesResponse.ProtoReflect.Descriptor instead.

func (*ListMachinesResponse) GetMachines

func (x *ListMachinesResponse) GetMachines() []*Machine

func (*ListMachinesResponse) ProtoMessage

func (*ListMachinesResponse) ProtoMessage()

func (*ListMachinesResponse) ProtoReflect

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

func (*ListMachinesResponse) Reset

func (x *ListMachinesResponse) Reset()

func (*ListMachinesResponse) String

func (x *ListMachinesResponse) String() string

type ListNetworksRequest

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

func (*ListNetworksRequest) Descriptor deprecated

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

Deprecated: Use ListNetworksRequest.ProtoReflect.Descriptor instead.

func (*ListNetworksRequest) ProtoMessage

func (*ListNetworksRequest) ProtoMessage()

func (*ListNetworksRequest) ProtoReflect

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

func (*ListNetworksRequest) Reset

func (x *ListNetworksRequest) Reset()

func (*ListNetworksRequest) String

func (x *ListNetworksRequest) String() string

type ListNetworksResponse

type ListNetworksResponse struct {
	Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"`
	// contains filtered or unexported fields
}

func (*ListNetworksResponse) Descriptor deprecated

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

Deprecated: Use ListNetworksResponse.ProtoReflect.Descriptor instead.

func (*ListNetworksResponse) GetNetworks

func (x *ListNetworksResponse) GetNetworks() []*Network

func (*ListNetworksResponse) ProtoMessage

func (*ListNetworksResponse) ProtoMessage()

func (*ListNetworksResponse) ProtoReflect

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

func (*ListNetworksResponse) Reset

func (x *ListNetworksResponse) Reset()

func (*ListNetworksResponse) String

func (x *ListNetworksResponse) String() string

type ListSSHKeysRequest

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

func (*ListSSHKeysRequest) Descriptor deprecated

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

Deprecated: Use ListSSHKeysRequest.ProtoReflect.Descriptor instead.

func (*ListSSHKeysRequest) ProtoMessage

func (*ListSSHKeysRequest) ProtoMessage()

func (*ListSSHKeysRequest) ProtoReflect

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

func (*ListSSHKeysRequest) Reset

func (x *ListSSHKeysRequest) Reset()

func (*ListSSHKeysRequest) String

func (x *ListSSHKeysRequest) String() string

type ListSSHKeysResponse

type ListSSHKeysResponse struct {
	Keys []*SSHKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSSHKeysResponse) Descriptor deprecated

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

Deprecated: Use ListSSHKeysResponse.ProtoReflect.Descriptor instead.

func (*ListSSHKeysResponse) GetKeys

func (x *ListSSHKeysResponse) GetKeys() []*SSHKey

func (*ListSSHKeysResponse) ProtoMessage

func (*ListSSHKeysResponse) ProtoMessage()

func (*ListSSHKeysResponse) ProtoReflect

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

func (*ListSSHKeysResponse) Reset

func (x *ListSSHKeysResponse) Reset()

func (*ListSSHKeysResponse) String

func (x *ListSSHKeysResponse) String() string

type Machine

type Machine struct {
	Id        string              `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string              `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Status    Machine_Status      `protobuf:"varint,3,opt,name=status,proto3,enum=sox.v1.Machine_Status" json:"status,omitempty"`
	Specs     *Machine_Specs      `protobuf:"bytes,4,opt,name=specs,proto3" json:"specs,omitempty"`
	Networks  []*NetworkInterface `protobuf:"bytes,5,rep,name=networks,proto3" json:"networks,omitempty"`
	ImageId   string              `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"`
	SshKeyIds []string            `protobuf:"bytes,7,rep,name=ssh_key_ids,json=sshKeyIds,proto3" json:"ssh_key_ids,omitempty"`
	User      string              `protobuf:"bytes,8,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*Machine) Descriptor deprecated

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

Deprecated: Use Machine.ProtoReflect.Descriptor instead.

func (*Machine) GetId

func (x *Machine) GetId() string

func (*Machine) GetImageId

func (x *Machine) GetImageId() string

func (*Machine) GetName

func (x *Machine) GetName() string

func (*Machine) GetNetworks

func (x *Machine) GetNetworks() []*NetworkInterface

func (*Machine) GetSpecs

func (x *Machine) GetSpecs() *Machine_Specs

func (*Machine) GetSshKeyIds

func (x *Machine) GetSshKeyIds() []string

func (*Machine) GetStatus

func (x *Machine) GetStatus() Machine_Status

func (*Machine) GetUser

func (x *Machine) GetUser() string

func (*Machine) ProtoMessage

func (*Machine) ProtoMessage()

func (*Machine) ProtoReflect

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

func (*Machine) Reset

func (x *Machine) Reset()

func (*Machine) String

func (x *Machine) String() string

type Machine_Specs

type Machine_Specs struct {
	Cpus   int64 `protobuf:"varint,1,opt,name=cpus,proto3" json:"cpus,omitempty"`
	Memory int64 `protobuf:"varint,2,opt,name=memory,proto3" json:"memory,omitempty"`
	Disk   int64 `protobuf:"varint,3,opt,name=disk,proto3" json:"disk,omitempty"`
	// contains filtered or unexported fields
}

func (*Machine_Specs) Descriptor deprecated

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

Deprecated: Use Machine_Specs.ProtoReflect.Descriptor instead.

func (*Machine_Specs) GetCpus

func (x *Machine_Specs) GetCpus() int64

func (*Machine_Specs) GetDisk

func (x *Machine_Specs) GetDisk() int64

func (*Machine_Specs) GetMemory

func (x *Machine_Specs) GetMemory() int64

func (*Machine_Specs) ProtoMessage

func (*Machine_Specs) ProtoMessage()

func (*Machine_Specs) ProtoReflect

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

func (*Machine_Specs) Reset

func (x *Machine_Specs) Reset()

func (*Machine_Specs) String

func (x *Machine_Specs) String() string

type Machine_Status

type Machine_Status int32
const (
	Machine_STATUS_UNSPECIFIED Machine_Status = 0
	Machine_CREATED            Machine_Status = 1
	Machine_STOPPED            Machine_Status = 2
	Machine_RUNNING            Machine_Status = 3
	Machine_CRASHED            Machine_Status = 4
)

func (Machine_Status) Descriptor

func (Machine_Status) Enum

func (x Machine_Status) Enum() *Machine_Status

func (Machine_Status) EnumDescriptor deprecated

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

Deprecated: Use Machine_Status.Descriptor instead.

func (Machine_Status) Number

func (Machine_Status) String

func (x Machine_Status) String() string

func (Machine_Status) Type

type Network

type Network struct {
	Id            string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name          string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	IpV4          *IpNetwork `protobuf:"bytes,3,opt,name=ip_v4,json=ipV4,proto3" json:"ip_v4,omitempty"`
	IpV6          *IpNetwork `protobuf:"bytes,4,opt,name=ip_v6,json=ipV6,proto3" json:"ip_v6,omitempty"`
	Nameservers   []string   `protobuf:"bytes,5,rep,name=nameservers,proto3" json:"nameservers,omitempty"`
	SearchDomains []string   `protobuf:"bytes,6,rep,name=searchDomains,proto3" json:"searchDomains,omitempty"`
	BridgeId      uint32     `protobuf:"varint,7,opt,name=bridge_id,json=bridgeId,proto3" json:"bridge_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Network) Descriptor deprecated

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

Deprecated: Use Network.ProtoReflect.Descriptor instead.

func (*Network) GetBridgeId

func (x *Network) GetBridgeId() uint32

func (*Network) GetId

func (x *Network) GetId() string

func (*Network) GetIpV4

func (x *Network) GetIpV4() *IpNetwork

func (*Network) GetIpV6

func (x *Network) GetIpV6() *IpNetwork

func (*Network) GetName

func (x *Network) GetName() string

func (*Network) GetNameservers

func (x *Network) GetNameservers() []string

func (*Network) GetSearchDomains

func (x *Network) GetSearchDomains() []string

func (*Network) ProtoMessage

func (*Network) ProtoMessage()

func (*Network) ProtoReflect

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

func (*Network) Reset

func (x *Network) Reset()

func (*Network) String

func (x *Network) String() string

type NetworkInterface

type NetworkInterface struct {
	NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	IpV4      string `protobuf:"bytes,2,opt,name=ip_v4,json=ipV4,proto3" json:"ip_v4,omitempty"`
	IpV6      string `protobuf:"bytes,3,opt,name=ip_v6,json=ipV6,proto3" json:"ip_v6,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkInterface) Descriptor deprecated

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

Deprecated: Use NetworkInterface.ProtoReflect.Descriptor instead.

func (*NetworkInterface) GetIpV4

func (x *NetworkInterface) GetIpV4() string

func (*NetworkInterface) GetIpV6

func (x *NetworkInterface) GetIpV6() string

func (*NetworkInterface) GetNetworkId

func (x *NetworkInterface) GetNetworkId() string

func (*NetworkInterface) ProtoMessage

func (*NetworkInterface) ProtoMessage()

func (*NetworkInterface) ProtoReflect

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

func (*NetworkInterface) Reset

func (x *NetworkInterface) Reset()

func (*NetworkInterface) String

func (x *NetworkInterface) String() string

type SSHKey

type SSHKey struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	// contains filtered or unexported fields
}

func (*SSHKey) Descriptor deprecated

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

Deprecated: Use SSHKey.ProtoReflect.Descriptor instead.

func (*SSHKey) GetId

func (x *SSHKey) GetId() string

func (*SSHKey) GetName

func (x *SSHKey) GetName() string

func (*SSHKey) GetPubkey

func (x *SSHKey) GetPubkey() string

func (*SSHKey) ProtoMessage

func (*SSHKey) ProtoMessage()

func (*SSHKey) ProtoReflect

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

func (*SSHKey) Reset

func (x *SSHKey) Reset()

func (*SSHKey) String

func (x *SSHKey) String() string

type SoxClient

SoxClient is the client API for Sox 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 NewSoxClient

func NewSoxClient(cc grpc.ClientConnInterface) SoxClient

type SoxServer

SoxServer is the server API for Sox service. All implementations must embed UnimplementedSoxServer for forward compatibility

type TriggerMachineRequest

type TriggerMachineRequest struct {
	Id    string                      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Event TriggerMachineRequest_Event `protobuf:"varint,2,opt,name=event,proto3,enum=sox.v1.TriggerMachineRequest_Event" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*TriggerMachineRequest) Descriptor deprecated

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

Deprecated: Use TriggerMachineRequest.ProtoReflect.Descriptor instead.

func (*TriggerMachineRequest) GetEvent

func (*TriggerMachineRequest) GetId

func (x *TriggerMachineRequest) GetId() string

func (*TriggerMachineRequest) ProtoMessage

func (*TriggerMachineRequest) ProtoMessage()

func (*TriggerMachineRequest) ProtoReflect

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

func (*TriggerMachineRequest) Reset

func (x *TriggerMachineRequest) Reset()

func (*TriggerMachineRequest) String

func (x *TriggerMachineRequest) String() string

type TriggerMachineRequest_Event

type TriggerMachineRequest_Event int32
const (
	TriggerMachineRequest_EVENT_UNKNOWN TriggerMachineRequest_Event = 0
	TriggerMachineRequest_POWERON       TriggerMachineRequest_Event = 1
	TriggerMachineRequest_POWEROFF      TriggerMachineRequest_Event = 2
	TriggerMachineRequest_REBOOT        TriggerMachineRequest_Event = 3
)

func (TriggerMachineRequest_Event) Descriptor

func (TriggerMachineRequest_Event) Enum

func (TriggerMachineRequest_Event) EnumDescriptor deprecated

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

Deprecated: Use TriggerMachineRequest_Event.Descriptor instead.

func (TriggerMachineRequest_Event) Number

func (TriggerMachineRequest_Event) String

func (TriggerMachineRequest_Event) Type

type TriggerMachineResponse

type TriggerMachineResponse struct {
	Status Machine_Status `protobuf:"varint,1,opt,name=status,proto3,enum=sox.v1.Machine_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*TriggerMachineResponse) Descriptor deprecated

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

Deprecated: Use TriggerMachineResponse.ProtoReflect.Descriptor instead.

func (*TriggerMachineResponse) GetStatus

func (x *TriggerMachineResponse) GetStatus() Machine_Status

func (*TriggerMachineResponse) ProtoMessage

func (*TriggerMachineResponse) ProtoMessage()

func (*TriggerMachineResponse) ProtoReflect

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

func (*TriggerMachineResponse) Reset

func (x *TriggerMachineResponse) Reset()

func (*TriggerMachineResponse) String

func (x *TriggerMachineResponse) String() string

type UnimplementedSoxServer

type UnimplementedSoxServer struct {
}

UnimplementedSoxServer must be embedded to have forward compatible implementations.

func (UnimplementedSoxServer) CreateMachine

func (UnimplementedSoxServer) CreateNetwork

func (UnimplementedSoxServer) CreateSSHKey

func (UnimplementedSoxServer) DeleteMachine

func (UnimplementedSoxServer) DeleteSSHKey

func (UnimplementedSoxServer) ListActivities

func (UnimplementedSoxServer) ListImages

func (UnimplementedSoxServer) ListMachines

func (UnimplementedSoxServer) ListNetworks

func (UnimplementedSoxServer) ListSSHKeys

func (UnimplementedSoxServer) TriggerMachine

type UnsafeSoxServer

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

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

Jump to

Keyboard shortcuts

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