sled

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ImageKind image
	ImageKind = "Image"
	//KexecKind kexec
	KexecKind = "Kexec"
	//SledClubKind multiple sled nodes
	SledClubKind = "SledClub"
)

Variables

View Source
var Request_Command_name = map[int32]string{
	0: "none",
	1: "wipe",
	2: "write",
	3: "kexec",
}
View Source
var Request_Command_value = map[string]int32{
	"none":  0,
	"wipe":  1,
	"write": 2,
	"kexec": 3,
}
View Source
var Request_Response_name = map[int32]string{
	0: "empty",
	1: "ok",
	2: "error",
	3: "ack",
	4: "unknown",
}
View Source
var Request_Response_value = map[string]int32{
	"empty":   0,
	"ok":      1,
	"error":   2,
	"ack":     3,
	"unknown": 4,
}
View Source
var Version = "v0.1.9"

Version version of sled package

Functions

func RegisterSledProtocolServer

func RegisterSledProtocolServer(s *grpc.Server, srv SledProtocolServer)

func RegisterSledbServer

func RegisterSledbServer(s *grpc.Server, srv SledbServer)

func SanitizeMAC

func SanitizeMAC(mac string) (string, error)

SanitizeMAC dont let bad mac addresses or capitalizes bleed into db

Types

type CommandRequest

type CommandRequest struct {
	Mac                  string   `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CommandRequest) Descriptor

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

func (*CommandRequest) GetMac

func (m *CommandRequest) GetMac() string

func (*CommandRequest) ProtoMessage

func (*CommandRequest) ProtoMessage()

func (*CommandRequest) Reset

func (m *CommandRequest) Reset()

func (*CommandRequest) String

func (m *CommandRequest) String() string

func (*CommandRequest) XXX_DiscardUnknown

func (m *CommandRequest) XXX_DiscardUnknown()

func (*CommandRequest) XXX_Marshal

func (m *CommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommandRequest) XXX_Merge

func (dst *CommandRequest) XXX_Merge(src proto.Message)

func (*CommandRequest) XXX_Size

func (m *CommandRequest) XXX_Size() int

func (*CommandRequest) XXX_Unmarshal

func (m *CommandRequest) XXX_Unmarshal(b []byte) error

type CommandResponse

type CommandResponse struct {
	Response             *CommandSet `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*CommandResponse) Descriptor

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

func (*CommandResponse) GetResponse

func (m *CommandResponse) GetResponse() *CommandSet

func (*CommandResponse) ProtoMessage

func (*CommandResponse) ProtoMessage()

func (*CommandResponse) Reset

func (m *CommandResponse) Reset()

func (*CommandResponse) String

func (m *CommandResponse) String() string

func (*CommandResponse) XXX_DiscardUnknown

func (m *CommandResponse) XXX_DiscardUnknown()

func (*CommandResponse) XXX_Marshal

func (m *CommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommandResponse) XXX_Merge

func (dst *CommandResponse) XXX_Merge(src proto.Message)

func (*CommandResponse) XXX_Size

func (m *CommandResponse) XXX_Size() int

func (*CommandResponse) XXX_Unmarshal

func (m *CommandResponse) XXX_Unmarshal(b []byte) error

type CommandSet

type CommandSet struct {
	Wipe                 *WipeResponse  `protobuf:"bytes,1,opt,name=wipe,proto3" json:"wipe,omitempty"`
	Write                *WriteResponse `protobuf:"bytes,2,opt,name=write,proto3" json:"write,omitempty"`
	Kexec                *KexecResponse `protobuf:"bytes,3,opt,name=kexec,proto3" json:"kexec,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*CommandSet) Descriptor

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

func (*CommandSet) GetKexec

func (m *CommandSet) GetKexec() *KexecResponse

func (*CommandSet) GetWipe

func (m *CommandSet) GetWipe() *WipeResponse

func (*CommandSet) GetWrite

func (m *CommandSet) GetWrite() *WriteResponse

func (*CommandSet) ProtoMessage

func (*CommandSet) ProtoMessage()

func (*CommandSet) Reset

func (m *CommandSet) Reset()

func (*CommandSet) String

func (m *CommandSet) String() string

func (*CommandSet) XXX_DiscardUnknown

func (m *CommandSet) XXX_DiscardUnknown()

func (*CommandSet) XXX_Marshal

func (m *CommandSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommandSet) XXX_Merge

func (dst *CommandSet) XXX_Merge(src proto.Message)

func (*CommandSet) XXX_Size

func (m *CommandSet) XXX_Size() int

func (*CommandSet) XXX_Unmarshal

func (m *CommandSet) XXX_Unmarshal(b []byte) error

type DeleteCommandRequest

type DeleteCommandRequest struct {
	Mac                  string   `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteCommandRequest) Descriptor

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

func (*DeleteCommandRequest) GetMac

func (m *DeleteCommandRequest) GetMac() string

func (*DeleteCommandRequest) ProtoMessage

func (*DeleteCommandRequest) ProtoMessage()

func (*DeleteCommandRequest) Reset

func (m *DeleteCommandRequest) Reset()

func (*DeleteCommandRequest) String

func (m *DeleteCommandRequest) String() string

func (*DeleteCommandRequest) XXX_DiscardUnknown

func (m *DeleteCommandRequest) XXX_DiscardUnknown()

func (*DeleteCommandRequest) XXX_Marshal

func (m *DeleteCommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteCommandRequest) XXX_Merge

func (dst *DeleteCommandRequest) XXX_Merge(src proto.Message)

func (*DeleteCommandRequest) XXX_Size

func (m *DeleteCommandRequest) XXX_Size() int

func (*DeleteCommandRequest) XXX_Unmarshal

func (m *DeleteCommandRequest) XXX_Unmarshal(b []byte) error

type DeleteCommandResponse

type DeleteCommandResponse struct {
	Error                *Error   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteCommandResponse) Descriptor

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

func (*DeleteCommandResponse) GetError

func (m *DeleteCommandResponse) GetError() *Error

func (*DeleteCommandResponse) ProtoMessage

func (*DeleteCommandResponse) ProtoMessage()

func (*DeleteCommandResponse) Reset

func (m *DeleteCommandResponse) Reset()

func (*DeleteCommandResponse) String

func (m *DeleteCommandResponse) String() string

func (*DeleteCommandResponse) XXX_DiscardUnknown

func (m *DeleteCommandResponse) XXX_DiscardUnknown()

func (*DeleteCommandResponse) XXX_Marshal

func (m *DeleteCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteCommandResponse) XXX_Merge

func (dst *DeleteCommandResponse) XXX_Merge(src proto.Message)

func (*DeleteCommandResponse) XXX_Size

func (m *DeleteCommandResponse) XXX_Size() int

func (*DeleteCommandResponse) XXX_Unmarshal

func (m *DeleteCommandResponse) XXX_Unmarshal(b []byte) error

type DeleteImageRequest

type DeleteImageRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteImageRequest) Descriptor

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

func (*DeleteImageRequest) GetName

func (m *DeleteImageRequest) GetName() string

func (*DeleteImageRequest) ProtoMessage

func (*DeleteImageRequest) ProtoMessage()

func (*DeleteImageRequest) Reset

func (m *DeleteImageRequest) Reset()

func (*DeleteImageRequest) String

func (m *DeleteImageRequest) String() string

func (*DeleteImageRequest) XXX_DiscardUnknown

func (m *DeleteImageRequest) XXX_DiscardUnknown()

func (*DeleteImageRequest) XXX_Marshal

func (m *DeleteImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteImageRequest) XXX_Merge

func (dst *DeleteImageRequest) XXX_Merge(src proto.Message)

func (*DeleteImageRequest) XXX_Size

func (m *DeleteImageRequest) XXX_Size() int

func (*DeleteImageRequest) XXX_Unmarshal

func (m *DeleteImageRequest) XXX_Unmarshal(b []byte) error

type DeleteImageResponse

type DeleteImageResponse struct {
	Error                *Error   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteImageResponse) Descriptor

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

func (*DeleteImageResponse) GetError

func (m *DeleteImageResponse) GetError() *Error

func (*DeleteImageResponse) ProtoMessage

func (*DeleteImageResponse) ProtoMessage()

func (*DeleteImageResponse) Reset

func (m *DeleteImageResponse) Reset()

func (*DeleteImageResponse) String

func (m *DeleteImageResponse) String() string

func (*DeleteImageResponse) XXX_DiscardUnknown

func (m *DeleteImageResponse) XXX_DiscardUnknown()

func (*DeleteImageResponse) XXX_Marshal

func (m *DeleteImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteImageResponse) XXX_Merge

func (dst *DeleteImageResponse) XXX_Merge(src proto.Message)

func (*DeleteImageResponse) XXX_Size

func (m *DeleteImageResponse) XXX_Size() int

func (*DeleteImageResponse) XXX_Unmarshal

func (m *DeleteImageResponse) XXX_Unmarshal(b []byte) error

type Error

type Error struct {
	Field                string   `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Error) Descriptor

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

func (*Error) GetField

func (m *Error) GetField() string

func (*Error) GetMsg

func (m *Error) GetMsg() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge

func (dst *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal

func (m *Error) XXX_Unmarshal(b []byte) error

type GetCommandRequest

type GetCommandRequest struct {
	Mac                  string   `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetCommandRequest) Descriptor

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

func (*GetCommandRequest) GetMac

func (m *GetCommandRequest) GetMac() string

func (*GetCommandRequest) ProtoMessage

func (*GetCommandRequest) ProtoMessage()

func (*GetCommandRequest) Reset

func (m *GetCommandRequest) Reset()

func (*GetCommandRequest) String

func (m *GetCommandRequest) String() string

func (*GetCommandRequest) XXX_DiscardUnknown

func (m *GetCommandRequest) XXX_DiscardUnknown()

func (*GetCommandRequest) XXX_Marshal

func (m *GetCommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCommandRequest) XXX_Merge

func (dst *GetCommandRequest) XXX_Merge(src proto.Message)

func (*GetCommandRequest) XXX_Size

func (m *GetCommandRequest) XXX_Size() int

func (*GetCommandRequest) XXX_Unmarshal

func (m *GetCommandRequest) XXX_Unmarshal(b []byte) error

type GetCommandResponse

type GetCommandResponse struct {
	Command              *CommandSet `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*GetCommandResponse) Descriptor

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

func (*GetCommandResponse) GetCommand

func (m *GetCommandResponse) GetCommand() *CommandSet

func (*GetCommandResponse) ProtoMessage

func (*GetCommandResponse) ProtoMessage()

func (*GetCommandResponse) Reset

func (m *GetCommandResponse) Reset()

func (*GetCommandResponse) String

func (m *GetCommandResponse) String() string

func (*GetCommandResponse) XXX_DiscardUnknown

func (m *GetCommandResponse) XXX_DiscardUnknown()

func (*GetCommandResponse) XXX_Marshal

func (m *GetCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCommandResponse) XXX_Merge

func (dst *GetCommandResponse) XXX_Merge(src proto.Message)

func (*GetCommandResponse) XXX_Size

func (m *GetCommandResponse) XXX_Size() int

func (*GetCommandResponse) XXX_Unmarshal

func (m *GetCommandResponse) XXX_Unmarshal(b []byte) error

type GetImageRequest

type GetImageRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetImageRequest) Descriptor

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

func (*GetImageRequest) GetName

func (m *GetImageRequest) GetName() string

func (*GetImageRequest) ProtoMessage

func (*GetImageRequest) ProtoMessage()

func (*GetImageRequest) Reset

func (m *GetImageRequest) Reset()

func (*GetImageRequest) String

func (m *GetImageRequest) String() string

func (*GetImageRequest) XXX_DiscardUnknown

func (m *GetImageRequest) XXX_DiscardUnknown()

func (*GetImageRequest) XXX_Marshal

func (m *GetImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetImageRequest) XXX_Merge

func (dst *GetImageRequest) XXX_Merge(src proto.Message)

func (*GetImageRequest) XXX_Size

func (m *GetImageRequest) XXX_Size() int

func (*GetImageRequest) XXX_Unmarshal

func (m *GetImageRequest) XXX_Unmarshal(b []byte) error

type GetImageResponse

type GetImageResponse struct {
	Image                *Image   `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetImageResponse) Descriptor

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

func (*GetImageResponse) GetImage

func (m *GetImageResponse) GetImage() *Image

func (*GetImageResponse) ProtoMessage

func (*GetImageResponse) ProtoMessage()

func (*GetImageResponse) Reset

func (m *GetImageResponse) Reset()

func (*GetImageResponse) String

func (m *GetImageResponse) String() string

func (*GetImageResponse) XXX_DiscardUnknown

func (m *GetImageResponse) XXX_DiscardUnknown()

func (*GetImageResponse) XXX_Marshal

func (m *GetImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetImageResponse) XXX_Merge

func (dst *GetImageResponse) XXX_Merge(src proto.Message)

func (*GetImageResponse) XXX_Size

func (m *GetImageResponse) XXX_Size() int

func (*GetImageResponse) XXX_Unmarshal

func (m *GetImageResponse) XXX_Unmarshal(b []byte) error

type GetStatusRequest

type GetStatusRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetStatusRequest) Descriptor

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

func (*GetStatusRequest) GetId

func (m *GetStatusRequest) GetId() string

func (*GetStatusRequest) ProtoMessage

func (*GetStatusRequest) ProtoMessage()

func (*GetStatusRequest) Reset

func (m *GetStatusRequest) Reset()

func (*GetStatusRequest) String

func (m *GetStatusRequest) String() string

func (*GetStatusRequest) XXX_DiscardUnknown

func (m *GetStatusRequest) XXX_DiscardUnknown()

func (*GetStatusRequest) XXX_Marshal

func (m *GetStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetStatusRequest) XXX_Merge

func (dst *GetStatusRequest) XXX_Merge(src proto.Message)

func (*GetStatusRequest) XXX_Size

func (m *GetStatusRequest) XXX_Size() int

func (*GetStatusRequest) XXX_Unmarshal

func (m *GetStatusRequest) XXX_Unmarshal(b []byte) error

type GetStatusResponse

type GetStatusResponse struct {
	Request              *Request `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetStatusResponse) Descriptor

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

func (*GetStatusResponse) GetRequest

func (m *GetStatusResponse) GetRequest() *Request

func (*GetStatusResponse) ProtoMessage

func (*GetStatusResponse) ProtoMessage()

func (*GetStatusResponse) Reset

func (m *GetStatusResponse) Reset()

func (*GetStatusResponse) String

func (m *GetStatusResponse) String() string

func (*GetStatusResponse) XXX_DiscardUnknown

func (m *GetStatusResponse) XXX_DiscardUnknown()

func (*GetStatusResponse) XXX_Marshal

func (m *GetStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetStatusResponse) XXX_Merge

func (dst *GetStatusResponse) XXX_Merge(src proto.Message)

func (*GetStatusResponse) XXX_Size

func (m *GetStatusResponse) XXX_Size() int

func (*GetStatusResponse) XXX_Unmarshal

func (m *GetStatusResponse) XXX_Unmarshal(b []byte) error

type Image

type Image struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Kernel               string   `protobuf:"bytes,2,opt,name=kernel,proto3" json:"kernel,omitempty"`
	Initramfs            string   `protobuf:"bytes,3,opt,name=initramfs,proto3" json:"initramfs,omitempty"`
	Append               string   `protobuf:"bytes,4,opt,name=append,proto3" json:"append,omitempty"`
	Disk                 string   `protobuf:"bytes,5,opt,name=disk,proto3" json:"disk,omitempty"`
	Blockdevice          string   `protobuf:"bytes,6,opt,name=blockdevice,proto3" json:"blockdevice,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

**************** IMAGE CALLS *****************

func (*Image) Descriptor

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

func (*Image) GetAppend

func (m *Image) GetAppend() string

func (*Image) GetBlockdevice

func (m *Image) GetBlockdevice() string

func (*Image) GetDisk

func (m *Image) GetDisk() string

func (*Image) GetInitramfs

func (m *Image) GetInitramfs() string

func (*Image) GetKernel

func (m *Image) GetKernel() string

func (*Image) GetName

func (m *Image) GetName() string

func (*Image) MarshalYAML

func (x *Image) MarshalYAML() (interface{}, error)

MarshalYAML for image

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) String

func (m *Image) String() string

func (*Image) XXX_DiscardUnknown

func (m *Image) XXX_DiscardUnknown()

func (*Image) XXX_Marshal

func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Image) XXX_Merge

func (dst *Image) XXX_Merge(src proto.Message)

func (*Image) XXX_Size

func (m *Image) XXX_Size() int

func (*Image) XXX_Unmarshal

func (m *Image) XXX_Unmarshal(b []byte) error

type Kexec

type Kexec struct {
	LocalKernel          string   `protobuf:"bytes,1,opt,name=localKernel,proto3" json:"localKernel,omitempty"`
	LocalInitramfs       string   `protobuf:"bytes,2,opt,name=localInitramfs,proto3" json:"localInitramfs,omitempty"`
	LocalAppend          string   `protobuf:"bytes,3,opt,name=localAppend,proto3" json:"localAppend,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Kexec is for kexec and more specifically, on reboot specifies the values for kexec when the image has already been written to disk (e.g., localkernel=(root)/boot/bzImage)

func (*Kexec) Descriptor

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

func (*Kexec) GetLocalAppend

func (m *Kexec) GetLocalAppend() string

func (*Kexec) GetLocalInitramfs

func (m *Kexec) GetLocalInitramfs() string

func (*Kexec) GetLocalKernel

func (m *Kexec) GetLocalKernel() string

func (*Kexec) MarshalYAML

func (x *Kexec) MarshalYAML() (interface{}, error)

MarshalYAML for kexec

func (*Kexec) ProtoMessage

func (*Kexec) ProtoMessage()

func (*Kexec) Reset

func (m *Kexec) Reset()

func (*Kexec) String

func (m *Kexec) String() string

func (*Kexec) XXX_DiscardUnknown

func (m *Kexec) XXX_DiscardUnknown()

func (*Kexec) XXX_Marshal

func (m *Kexec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Kexec) XXX_Merge

func (dst *Kexec) XXX_Merge(src proto.Message)

func (*Kexec) XXX_Size

func (m *Kexec) XXX_Size() int

func (*Kexec) XXX_Unmarshal

func (m *Kexec) XXX_Unmarshal(b []byte) error

type KexecRequest

type KexecRequest struct {
	Mac                  string   `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KexecRequest) Descriptor

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

func (*KexecRequest) GetMac

func (m *KexecRequest) GetMac() string

func (*KexecRequest) ProtoMessage

func (*KexecRequest) ProtoMessage()

func (*KexecRequest) Reset

func (m *KexecRequest) Reset()

func (*KexecRequest) String

func (m *KexecRequest) String() string

func (*KexecRequest) XXX_DiscardUnknown

func (m *KexecRequest) XXX_DiscardUnknown()

func (*KexecRequest) XXX_Marshal

func (m *KexecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KexecRequest) XXX_Merge

func (dst *KexecRequest) XXX_Merge(src proto.Message)

func (*KexecRequest) XXX_Size

func (m *KexecRequest) XXX_Size() int

func (*KexecRequest) XXX_Unmarshal

func (m *KexecRequest) XXX_Unmarshal(b []byte) error

type KexecResponse

type KexecResponse struct {
	Kernel               string   `protobuf:"bytes,1,opt,name=kernel,proto3" json:"kernel,omitempty"`
	Initramfs            string   `protobuf:"bytes,2,opt,name=initramfs,proto3" json:"initramfs,omitempty"`
	Append               string   `protobuf:"bytes,3,opt,name=append,proto3" json:"append,omitempty"`
	Request              *Request `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KexecResponse) Descriptor

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

func (*KexecResponse) GetAppend

func (m *KexecResponse) GetAppend() string

func (*KexecResponse) GetInitramfs

func (m *KexecResponse) GetInitramfs() string

func (*KexecResponse) GetKernel

func (m *KexecResponse) GetKernel() string

func (*KexecResponse) GetRequest

func (m *KexecResponse) GetRequest() *Request

func (*KexecResponse) ProtoMessage

func (*KexecResponse) ProtoMessage()

func (*KexecResponse) Reset

func (m *KexecResponse) Reset()

func (*KexecResponse) String

func (m *KexecResponse) String() string

func (*KexecResponse) XXX_DiscardUnknown

func (m *KexecResponse) XXX_DiscardUnknown()

func (*KexecResponse) XXX_Marshal

func (m *KexecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KexecResponse) XXX_Merge

func (dst *KexecResponse) XXX_Merge(src proto.Message)

func (*KexecResponse) XXX_Size

func (m *KexecResponse) XXX_Size() int

func (*KexecResponse) XXX_Unmarshal

func (m *KexecResponse) XXX_Unmarshal(b []byte) error

type Kind

type Kind string

Kind the main type of command being parsed

type MetaObject

type MetaObject struct {
	Kind   string
	Object interface{}
}

MetaObject type: object

func ReadSpec

func ReadSpec(file string) ([]MetaObject, error)

ReadSpec read the yaml specification, return metaobject

func (*MetaObject) UnmarshalYAML

func (o *MetaObject) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML for given object unmarshal the yaml

type PutCommandRequest

type PutCommandRequest struct {
	Mac                  string      `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	Command              *CommandSet `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*PutCommandRequest) Descriptor

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

func (*PutCommandRequest) GetCommand

func (m *PutCommandRequest) GetCommand() *CommandSet

func (*PutCommandRequest) GetMac

func (m *PutCommandRequest) GetMac() string

func (*PutCommandRequest) ProtoMessage

func (*PutCommandRequest) ProtoMessage()

func (*PutCommandRequest) Reset

func (m *PutCommandRequest) Reset()

func (*PutCommandRequest) String

func (m *PutCommandRequest) String() string

func (*PutCommandRequest) XXX_DiscardUnknown

func (m *PutCommandRequest) XXX_DiscardUnknown()

func (*PutCommandRequest) XXX_Marshal

func (m *PutCommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutCommandRequest) XXX_Merge

func (dst *PutCommandRequest) XXX_Merge(src proto.Message)

func (*PutCommandRequest) XXX_Size

func (m *PutCommandRequest) XXX_Size() int

func (*PutCommandRequest) XXX_Unmarshal

func (m *PutCommandRequest) XXX_Unmarshal(b []byte) error

type PutCommandResponse

type PutCommandResponse struct {
	Status               []*Request `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*PutCommandResponse) Descriptor

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

func (*PutCommandResponse) GetStatus

func (m *PutCommandResponse) GetStatus() []*Request

func (*PutCommandResponse) ProtoMessage

func (*PutCommandResponse) ProtoMessage()

func (*PutCommandResponse) Reset

func (m *PutCommandResponse) Reset()

func (*PutCommandResponse) String

func (m *PutCommandResponse) String() string

func (*PutCommandResponse) XXX_DiscardUnknown

func (m *PutCommandResponse) XXX_DiscardUnknown()

func (*PutCommandResponse) XXX_Marshal

func (m *PutCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutCommandResponse) XXX_Merge

func (dst *PutCommandResponse) XXX_Merge(src proto.Message)

func (*PutCommandResponse) XXX_Size

func (m *PutCommandResponse) XXX_Size() int

func (*PutCommandResponse) XXX_Unmarshal

func (m *PutCommandResponse) XXX_Unmarshal(b []byte) error

type PutImageRequest

type PutImageRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Image                *Image   `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PutImageRequest) Descriptor

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

func (*PutImageRequest) GetImage

func (m *PutImageRequest) GetImage() *Image

func (*PutImageRequest) GetName

func (m *PutImageRequest) GetName() string

func (*PutImageRequest) ProtoMessage

func (*PutImageRequest) ProtoMessage()

func (*PutImageRequest) Reset

func (m *PutImageRequest) Reset()

func (*PutImageRequest) String

func (m *PutImageRequest) String() string

func (*PutImageRequest) XXX_DiscardUnknown

func (m *PutImageRequest) XXX_DiscardUnknown()

func (*PutImageRequest) XXX_Marshal

func (m *PutImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutImageRequest) XXX_Merge

func (dst *PutImageRequest) XXX_Merge(src proto.Message)

func (*PutImageRequest) XXX_Size

func (m *PutImageRequest) XXX_Size() int

func (*PutImageRequest) XXX_Unmarshal

func (m *PutImageRequest) XXX_Unmarshal(b []byte) error

type PutImageResponse

type PutImageResponse struct {
	Error                *Error   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PutImageResponse) Descriptor

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

func (*PutImageResponse) GetError

func (m *PutImageResponse) GetError() *Error

func (*PutImageResponse) ProtoMessage

func (*PutImageResponse) ProtoMessage()

func (*PutImageResponse) Reset

func (m *PutImageResponse) Reset()

func (*PutImageResponse) String

func (m *PutImageResponse) String() string

func (*PutImageResponse) XXX_DiscardUnknown

func (m *PutImageResponse) XXX_DiscardUnknown()

func (*PutImageResponse) XXX_Marshal

func (m *PutImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutImageResponse) XXX_Merge

func (dst *PutImageResponse) XXX_Merge(src proto.Message)

func (*PutImageResponse) XXX_Size

func (m *PutImageResponse) XXX_Size() int

func (*PutImageResponse) XXX_Unmarshal

func (m *PutImageResponse) XXX_Unmarshal(b []byte) error

type PutStatusRequest

type PutStatusRequest struct {
	Task                 *Task    `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PutStatusRequest) Descriptor

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

func (*PutStatusRequest) GetTask

func (m *PutStatusRequest) GetTask() *Task

func (*PutStatusRequest) ProtoMessage

func (*PutStatusRequest) ProtoMessage()

func (*PutStatusRequest) Reset

func (m *PutStatusRequest) Reset()

func (*PutStatusRequest) String

func (m *PutStatusRequest) String() string

func (*PutStatusRequest) XXX_DiscardUnknown

func (m *PutStatusRequest) XXX_DiscardUnknown()

func (*PutStatusRequest) XXX_Marshal

func (m *PutStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutStatusRequest) XXX_Merge

func (dst *PutStatusRequest) XXX_Merge(src proto.Message)

func (*PutStatusRequest) XXX_Size

func (m *PutStatusRequest) XXX_Size() int

func (*PutStatusRequest) XXX_Unmarshal

func (m *PutStatusRequest) XXX_Unmarshal(b []byte) error

type PutStatusResponse

type PutStatusResponse struct {
	Error                *Error   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PutStatusResponse) Descriptor

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

func (*PutStatusResponse) GetError

func (m *PutStatusResponse) GetError() *Error

func (*PutStatusResponse) ProtoMessage

func (*PutStatusResponse) ProtoMessage()

func (*PutStatusResponse) Reset

func (m *PutStatusResponse) Reset()

func (*PutStatusResponse) String

func (m *PutStatusResponse) String() string

func (*PutStatusResponse) XXX_DiscardUnknown

func (m *PutStatusResponse) XXX_DiscardUnknown()

func (*PutStatusResponse) XXX_Marshal

func (m *PutStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PutStatusResponse) XXX_Merge

func (dst *PutStatusResponse) XXX_Merge(src proto.Message)

func (*PutStatusResponse) XXX_Size

func (m *PutStatusResponse) XXX_Size() int

func (*PutStatusResponse) XXX_Unmarshal

func (m *PutStatusResponse) XXX_Unmarshal(b []byte) error

type RemoveImageRequest

type RemoveImageRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RemoveImageRequest) Descriptor

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

func (*RemoveImageRequest) GetName

func (m *RemoveImageRequest) GetName() string

func (*RemoveImageRequest) ProtoMessage

func (*RemoveImageRequest) ProtoMessage()

func (*RemoveImageRequest) Reset

func (m *RemoveImageRequest) Reset()

func (*RemoveImageRequest) String

func (m *RemoveImageRequest) String() string

func (*RemoveImageRequest) XXX_DiscardUnknown

func (m *RemoveImageRequest) XXX_DiscardUnknown()

func (*RemoveImageRequest) XXX_Marshal

func (m *RemoveImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoveImageRequest) XXX_Merge

func (dst *RemoveImageRequest) XXX_Merge(src proto.Message)

func (*RemoveImageRequest) XXX_Size

func (m *RemoveImageRequest) XXX_Size() int

func (*RemoveImageRequest) XXX_Unmarshal

func (m *RemoveImageRequest) XXX_Unmarshal(b []byte) error

type RemoveImageResponse

type RemoveImageResponse struct {
	Error                *Error   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RemoveImageResponse) Descriptor

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

func (*RemoveImageResponse) GetError

func (m *RemoveImageResponse) GetError() *Error

func (*RemoveImageResponse) ProtoMessage

func (*RemoveImageResponse) ProtoMessage()

func (*RemoveImageResponse) Reset

func (m *RemoveImageResponse) Reset()

func (*RemoveImageResponse) String

func (m *RemoveImageResponse) String() string

func (*RemoveImageResponse) XXX_DiscardUnknown

func (m *RemoveImageResponse) XXX_DiscardUnknown()

func (*RemoveImageResponse) XXX_Marshal

func (m *RemoveImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoveImageResponse) XXX_Merge

func (dst *RemoveImageResponse) XXX_Merge(src proto.Message)

func (*RemoveImageResponse) XXX_Size

func (m *RemoveImageResponse) XXX_Size() int

func (*RemoveImageResponse) XXX_Unmarshal

func (m *RemoveImageResponse) XXX_Unmarshal(b []byte) error

type Request

type Request struct {
	Id                   string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Command              Request_Command  `protobuf:"varint,2,opt,name=command,proto3,enum=sled.Request_Command" json:"command,omitempty"`
	Status               Request_Response `protobuf:"varint,3,opt,name=status,proto3,enum=sled.Request_Response" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) GetCommand

func (m *Request) GetCommand() Request_Command

func (*Request) GetId

func (m *Request) GetId() string

func (*Request) GetStatus

func (m *Request) GetStatus() Request_Response

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (dst *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

type Request_Command

type Request_Command int32
const (
	Request_none  Request_Command = 0
	Request_wipe  Request_Command = 1
	Request_write Request_Command = 2
	Request_kexec Request_Command = 3
)

func (Request_Command) EnumDescriptor

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

func (Request_Command) String

func (x Request_Command) String() string

type Request_Response

type Request_Response int32
const (
	Request_empty   Request_Response = 0
	Request_ok      Request_Response = 1
	Request_error   Request_Response = 2
	Request_ack     Request_Response = 3
	Request_unknown Request_Response = 4
)

func (Request_Response) EnumDescriptor

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

func (Request_Response) String

func (x Request_Response) String() string

type SledClub

type SledClub struct {
	List                 []*Sleder `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*SledClub) Descriptor

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

func (*SledClub) GetList

func (m *SledClub) GetList() []*Sleder

func (*SledClub) ProtoMessage

func (*SledClub) ProtoMessage()

func (*SledClub) Reset

func (m *SledClub) Reset()

func (*SledClub) String

func (m *SledClub) String() string

func (*SledClub) XXX_DiscardUnknown

func (m *SledClub) XXX_DiscardUnknown()

func (*SledClub) XXX_Marshal

func (m *SledClub) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SledClub) XXX_Merge

func (dst *SledClub) XXX_Merge(src proto.Message)

func (*SledClub) XXX_Size

func (m *SledClub) XXX_Size() int

func (*SledClub) XXX_Unmarshal

func (m *SledClub) XXX_Unmarshal(b []byte) error

type SledProtocolClient

type SledProtocolClient interface {
	Command(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*CommandResponse, error)
	Wipe(ctx context.Context, in *WipeRequest, opts ...grpc.CallOption) (*WipeResponse, error)
	Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
	Kexec(ctx context.Context, in *KexecRequest, opts ...grpc.CallOption) (*KexecResponse, error)
	TaskUpdate(ctx context.Context, in *TaskSent, opts ...grpc.CallOption) (*TaskRecv, error)
}

SledProtocolClient is the client API for SledProtocol service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSledProtocolClient

func NewSledProtocolClient(cc *grpc.ClientConn) SledProtocolClient

type SledProtocolServer

SledProtocolServer is the server API for SledProtocol service.

type SledbClient

SledbClient is the client API for Sledb service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSledbClient

func NewSledbClient(cc *grpc.ClientConn) SledbClient

type Sleder

type Sleder struct {
	Mac                  string   `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	Image                *Image   `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	Kexec                *Kexec   `protobuf:"bytes,3,opt,name=kexec,proto3" json:"kexec,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Sleder) Descriptor

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

func (*Sleder) GetImage

func (m *Sleder) GetImage() *Image

func (*Sleder) GetKexec

func (m *Sleder) GetKexec() *Kexec

func (*Sleder) GetMac

func (m *Sleder) GetMac() string

func (*Sleder) MarshalYAML

func (x *Sleder) MarshalYAML() (interface{}, error)

MarshalYAML for sleder

func (*Sleder) ProtoMessage

func (*Sleder) ProtoMessage()

func (*Sleder) Reset

func (m *Sleder) Reset()

func (*Sleder) String

func (m *Sleder) String() string

func (*Sleder) XXX_DiscardUnknown

func (m *Sleder) XXX_DiscardUnknown()

func (*Sleder) XXX_Marshal

func (m *Sleder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sleder) XXX_Merge

func (dst *Sleder) XXX_Merge(src proto.Message)

func (*Sleder) XXX_Size

func (m *Sleder) XXX_Size() int

func (*Sleder) XXX_Unmarshal

func (m *Sleder) XXX_Unmarshal(b []byte) error

type Task

type Task struct {
	Mac                  string   `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	Status               *Request `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Task) Descriptor

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

func (*Task) GetMac

func (m *Task) GetMac() string

func (*Task) GetStatus

func (m *Task) GetStatus() *Request

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) Reset

func (m *Task) Reset()

func (*Task) String

func (m *Task) String() string

func (*Task) XXX_DiscardUnknown

func (m *Task) XXX_DiscardUnknown()

func (*Task) XXX_Marshal

func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Task) XXX_Merge

func (dst *Task) XXX_Merge(src proto.Message)

func (*Task) XXX_Size

func (m *Task) XXX_Size() int

func (*Task) XXX_Unmarshal

func (m *Task) XXX_Unmarshal(b []byte) error

type TaskRecv

type TaskRecv struct {
	Status               string   `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TaskRecv) Descriptor

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

func (*TaskRecv) GetStatus

func (m *TaskRecv) GetStatus() string

func (*TaskRecv) ProtoMessage

func (*TaskRecv) ProtoMessage()

func (*TaskRecv) Reset

func (m *TaskRecv) Reset()

func (*TaskRecv) String

func (m *TaskRecv) String() string

func (*TaskRecv) XXX_DiscardUnknown

func (m *TaskRecv) XXX_DiscardUnknown()

func (*TaskRecv) XXX_Marshal

func (m *TaskRecv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskRecv) XXX_Merge

func (dst *TaskRecv) XXX_Merge(src proto.Message)

func (*TaskRecv) XXX_Size

func (m *TaskRecv) XXX_Size() int

func (*TaskRecv) XXX_Unmarshal

func (m *TaskRecv) XXX_Unmarshal(b []byte) error

type TaskSent

type TaskSent struct {
	Task                 *Task    `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TaskSent) Descriptor

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

func (*TaskSent) GetTask

func (m *TaskSent) GetTask() *Task

func (*TaskSent) ProtoMessage

func (*TaskSent) ProtoMessage()

func (*TaskSent) Reset

func (m *TaskSent) Reset()

func (*TaskSent) String

func (m *TaskSent) String() string

func (*TaskSent) XXX_DiscardUnknown

func (m *TaskSent) XXX_DiscardUnknown()

func (*TaskSent) XXX_Marshal

func (m *TaskSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskSent) XXX_Merge

func (dst *TaskSent) XXX_Merge(src proto.Message)

func (*TaskSent) XXX_Size

func (m *TaskSent) XXX_Size() int

func (*TaskSent) XXX_Unmarshal

func (m *TaskSent) XXX_Unmarshal(b []byte) error

type UploadImageRequest

type UploadImageRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UploadImageRequest) Descriptor

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

func (*UploadImageRequest) GetName

func (m *UploadImageRequest) GetName() string

func (*UploadImageRequest) ProtoMessage

func (*UploadImageRequest) ProtoMessage()

func (*UploadImageRequest) Reset

func (m *UploadImageRequest) Reset()

func (*UploadImageRequest) String

func (m *UploadImageRequest) String() string

func (*UploadImageRequest) XXX_DiscardUnknown

func (m *UploadImageRequest) XXX_DiscardUnknown()

func (*UploadImageRequest) XXX_Marshal

func (m *UploadImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UploadImageRequest) XXX_Merge

func (dst *UploadImageRequest) XXX_Merge(src proto.Message)

func (*UploadImageRequest) XXX_Size

func (m *UploadImageRequest) XXX_Size() int

func (*UploadImageRequest) XXX_Unmarshal

func (m *UploadImageRequest) XXX_Unmarshal(b []byte) error

type UploadImageResponse

type UploadImageResponse struct {
	Error                *Error   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UploadImageResponse) Descriptor

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

func (*UploadImageResponse) GetError

func (m *UploadImageResponse) GetError() *Error

func (*UploadImageResponse) ProtoMessage

func (*UploadImageResponse) ProtoMessage()

func (*UploadImageResponse) Reset

func (m *UploadImageResponse) Reset()

func (*UploadImageResponse) String

func (m *UploadImageResponse) String() string

func (*UploadImageResponse) XXX_DiscardUnknown

func (m *UploadImageResponse) XXX_DiscardUnknown()

func (*UploadImageResponse) XXX_Marshal

func (m *UploadImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UploadImageResponse) XXX_Merge

func (dst *UploadImageResponse) XXX_Merge(src proto.Message)

func (*UploadImageResponse) XXX_Size

func (m *UploadImageResponse) XXX_Size() int

func (*UploadImageResponse) XXX_Unmarshal

func (m *UploadImageResponse) XXX_Unmarshal(b []byte) error

type WipeRequest

type WipeRequest struct {
	Mac                  string   `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WipeRequest) Descriptor

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

func (*WipeRequest) GetMac

func (m *WipeRequest) GetMac() string

func (*WipeRequest) ProtoMessage

func (*WipeRequest) ProtoMessage()

func (*WipeRequest) Reset

func (m *WipeRequest) Reset()

func (*WipeRequest) String

func (m *WipeRequest) String() string

func (*WipeRequest) XXX_DiscardUnknown

func (m *WipeRequest) XXX_DiscardUnknown()

func (*WipeRequest) XXX_Marshal

func (m *WipeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WipeRequest) XXX_Merge

func (dst *WipeRequest) XXX_Merge(src proto.Message)

func (*WipeRequest) XXX_Size

func (m *WipeRequest) XXX_Size() int

func (*WipeRequest) XXX_Unmarshal

func (m *WipeRequest) XXX_Unmarshal(b []byte) error

type WipeResponse

type WipeResponse struct {
	Device               string   `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	Request              *Request `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WipeResponse) Descriptor

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

func (*WipeResponse) GetDevice

func (m *WipeResponse) GetDevice() string

func (*WipeResponse) GetRequest

func (m *WipeResponse) GetRequest() *Request

func (*WipeResponse) ProtoMessage

func (*WipeResponse) ProtoMessage()

func (*WipeResponse) Reset

func (m *WipeResponse) Reset()

func (*WipeResponse) String

func (m *WipeResponse) String() string

func (*WipeResponse) XXX_DiscardUnknown

func (m *WipeResponse) XXX_DiscardUnknown()

func (*WipeResponse) XXX_Marshal

func (m *WipeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WipeResponse) XXX_Merge

func (dst *WipeResponse) XXX_Merge(src proto.Message)

func (*WipeResponse) XXX_Size

func (m *WipeResponse) XXX_Size() int

func (*WipeResponse) XXX_Unmarshal

func (m *WipeResponse) XXX_Unmarshal(b []byte) error

type WriteRequest

type WriteRequest struct {
	Mac                  string   `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WriteRequest) Descriptor

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

func (*WriteRequest) GetMac

func (m *WriteRequest) GetMac() string

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) Reset

func (m *WriteRequest) Reset()

func (*WriteRequest) String

func (m *WriteRequest) String() string

func (*WriteRequest) XXX_DiscardUnknown

func (m *WriteRequest) XXX_DiscardUnknown()

func (*WriteRequest) XXX_Marshal

func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WriteRequest) XXX_Merge

func (dst *WriteRequest) XXX_Merge(src proto.Message)

func (*WriteRequest) XXX_Size

func (m *WriteRequest) XXX_Size() int

func (*WriteRequest) XXX_Unmarshal

func (m *WriteRequest) XXX_Unmarshal(b []byte) error

type WriteResponse

type WriteResponse struct {
	Device               string   `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	Image                string   `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	Kernel               string   `protobuf:"bytes,3,opt,name=kernel,proto3" json:"kernel,omitempty"`
	Initramfs            string   `protobuf:"bytes,4,opt,name=initramfs,proto3" json:"initramfs,omitempty"`
	Grub                 string   `protobuf:"bytes,5,opt,name=grub,proto3" json:"grub,omitempty"`
	Request              *Request `protobuf:"bytes,6,opt,name=request,proto3" json:"request,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WriteResponse) Descriptor

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

func (*WriteResponse) GetDevice

func (m *WriteResponse) GetDevice() string

func (*WriteResponse) GetGrub

func (m *WriteResponse) GetGrub() string

func (*WriteResponse) GetImage

func (m *WriteResponse) GetImage() string

func (*WriteResponse) GetInitramfs

func (m *WriteResponse) GetInitramfs() string

func (*WriteResponse) GetKernel

func (m *WriteResponse) GetKernel() string

func (*WriteResponse) GetRequest

func (m *WriteResponse) GetRequest() *Request

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) Reset

func (m *WriteResponse) Reset()

func (*WriteResponse) String

func (m *WriteResponse) String() string

func (*WriteResponse) XXX_DiscardUnknown

func (m *WriteResponse) XXX_DiscardUnknown()

func (*WriteResponse) XXX_Marshal

func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WriteResponse) XXX_Merge

func (dst *WriteResponse) XXX_Merge(src proto.Message)

func (*WriteResponse) XXX_Size

func (m *WriteResponse) XXX_Size() int

func (*WriteResponse) XXX_Unmarshal

func (m *WriteResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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