foundry

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

View Source
const (
	MachineConfigKeyPrefix = "/mc"
)

Variables

This section is empty.

Functions

func RegisterForgeServer

func RegisterForgeServer(s *grpc.Server, srv ForgeServer)

func RegisterManageServer

func RegisterManageServer(s *grpc.Server, srv ManageServer)

Types

type CompletionRequest added in v1.1.7

type CompletionRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Success              bool     `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
	Error                string   `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CompletionRequest) Descriptor added in v1.1.7

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

func (*CompletionRequest) GetError added in v1.1.7

func (m *CompletionRequest) GetError() string

func (*CompletionRequest) GetId added in v1.1.7

func (m *CompletionRequest) GetId() string

func (*CompletionRequest) GetSuccess added in v1.1.7

func (m *CompletionRequest) GetSuccess() bool

func (*CompletionRequest) ProtoMessage added in v1.1.7

func (*CompletionRequest) ProtoMessage()

func (*CompletionRequest) Reset added in v1.1.7

func (m *CompletionRequest) Reset()

func (*CompletionRequest) String added in v1.1.7

func (m *CompletionRequest) String() string

func (*CompletionRequest) XXX_DiscardUnknown added in v1.1.7

func (m *CompletionRequest) XXX_DiscardUnknown()

func (*CompletionRequest) XXX_Marshal added in v1.1.7

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

func (*CompletionRequest) XXX_Merge added in v1.1.7

func (m *CompletionRequest) XXX_Merge(src proto.Message)

func (*CompletionRequest) XXX_Size added in v1.1.7

func (m *CompletionRequest) XXX_Size() int

func (*CompletionRequest) XXX_Unmarshal added in v1.1.7

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

type CompletionResponse added in v1.1.7

type CompletionResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CompletionResponse) Descriptor added in v1.1.7

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

func (*CompletionResponse) ProtoMessage added in v1.1.7

func (*CompletionResponse) ProtoMessage()

func (*CompletionResponse) Reset added in v1.1.7

func (m *CompletionResponse) Reset()

func (*CompletionResponse) String added in v1.1.7

func (m *CompletionResponse) String() string

func (*CompletionResponse) XXX_DiscardUnknown added in v1.1.7

func (m *CompletionResponse) XXX_DiscardUnknown()

func (*CompletionResponse) XXX_Marshal added in v1.1.7

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

func (*CompletionResponse) XXX_Merge added in v1.1.7

func (m *CompletionResponse) XXX_Merge(src proto.Message)

func (*CompletionResponse) XXX_Size added in v1.1.7

func (m *CompletionResponse) XXX_Size() int

func (*CompletionResponse) XXX_Unmarshal added in v1.1.7

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

type Config

type Config struct {
	Hostname             string       `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Users                []*User      `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
	Interfaces           []*Interface `protobuf:"bytes,3,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
	ExpandRootfs         bool         `protobuf:"varint,4,opt,name=expand_rootfs,json=expandRootfs,proto3" json:"expand_rootfs,omitempty"`
	Mounts               []*Mount     `protobuf:"bytes,5,rep,name=mounts,proto3" json:"mounts,omitempty"`
	Routes               []*Route     `protobuf:"bytes,6,rep,name=routes,proto3" json:"routes,omitempty"`
	Hosts                []*Host      `protobuf:"bytes,7,rep,name=hosts,proto3" json:"hosts,omitempty"`
	NoGrubBootloader     bool         `protobuf:"varint,8,opt,name=no_grub_bootloader,json=noGrubBootloader,proto3" json:"no_grub_bootloader,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*Config) Descriptor

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

func (*Config) GetExpandRootfs added in v0.1.8

func (m *Config) GetExpandRootfs() bool

func (*Config) GetHostname added in v0.1.5

func (m *Config) GetHostname() string

func (*Config) GetHosts added in v1.1.1

func (m *Config) GetHosts() []*Host

func (*Config) GetInterfaces

func (m *Config) GetInterfaces() []*Interface

func (*Config) GetMounts added in v0.1.11

func (m *Config) GetMounts() []*Mount

func (*Config) GetNoGrubBootloader added in v1.1.5

func (m *Config) GetNoGrubBootloader() bool

func (*Config) GetRoutes added in v0.1.13

func (m *Config) GetRoutes() []*Route

func (*Config) GetUsers

func (m *Config) GetUsers() []*User

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

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

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

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

type DeleteRequest

type DeleteRequest struct {
	Ids                  []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteRequest) Descriptor

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

func (*DeleteRequest) GetIds

func (m *DeleteRequest) GetIds() []string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String

func (m *DeleteRequest) String() string

func (*DeleteRequest) XXX_DiscardUnknown

func (m *DeleteRequest) XXX_DiscardUnknown()

func (*DeleteRequest) XXX_Marshal

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

func (*DeleteRequest) XXX_Merge

func (m *DeleteRequest) XXX_Merge(src proto.Message)

func (*DeleteRequest) XXX_Size

func (m *DeleteRequest) XXX_Size() int

func (*DeleteRequest) XXX_Unmarshal

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

type DeleteResponse

type DeleteResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteResponse) Descriptor

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

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) Reset

func (m *DeleteResponse) Reset()

func (*DeleteResponse) String

func (m *DeleteResponse) String() string

func (*DeleteResponse) XXX_DiscardUnknown

func (m *DeleteResponse) XXX_DiscardUnknown()

func (*DeleteResponse) XXX_Marshal

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

func (*DeleteResponse) XXX_Merge

func (m *DeleteResponse) XXX_Merge(src proto.Message)

func (*DeleteResponse) XXX_Size

func (m *DeleteResponse) XXX_Size() int

func (*DeleteResponse) XXX_Unmarshal

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

type Dhcp added in v1.0.0

type Dhcp struct {
	Dhcp                 string   `protobuf:"bytes,1,opt,name=dhcp,proto3" json:"dhcp,omitempty"`
	UseDns               bool     `protobuf:"varint,2,opt,name=use_dns,json=useDns,proto3" json:"use_dns,omitempty"`
	UseDomains           bool     `protobuf:"varint,3,opt,name=use_domains,json=useDomains,proto3" json:"use_domains,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Dhcp) Descriptor added in v1.0.0

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

func (*Dhcp) GetDhcp added in v1.0.0

func (m *Dhcp) GetDhcp() string

func (*Dhcp) GetUseDns added in v1.0.0

func (m *Dhcp) GetUseDns() bool

func (*Dhcp) GetUseDomains added in v1.0.0

func (m *Dhcp) GetUseDomains() bool

func (*Dhcp) ProtoMessage added in v1.0.0

func (*Dhcp) ProtoMessage()

func (*Dhcp) Reset added in v1.0.0

func (m *Dhcp) Reset()

func (*Dhcp) String added in v1.0.0

func (m *Dhcp) String() string

func (*Dhcp) XXX_DiscardUnknown added in v1.0.0

func (m *Dhcp) XXX_DiscardUnknown()

func (*Dhcp) XXX_Marshal added in v1.0.0

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

func (*Dhcp) XXX_Merge added in v1.0.0

func (m *Dhcp) XXX_Merge(src proto.Message)

func (*Dhcp) XXX_Size added in v1.0.0

func (m *Dhcp) XXX_Size() int

func (*Dhcp) XXX_Unmarshal added in v1.0.0

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

type ForgeClient

type ForgeClient interface {
	Forge(ctx context.Context, in *ForgeRequest, opts ...grpc.CallOption) (*ForgeResponse, error)
	ReportCompletion(ctx context.Context, in *CompletionRequest, opts ...grpc.CallOption) (*CompletionResponse, error)
	GetStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
}

ForgeClient is the client API for Forge service.

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

func NewForgeClient

func NewForgeClient(cc *grpc.ClientConn) ForgeClient

type ForgeRequest

type ForgeRequest struct {
	Ids                  []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ForgeRequest) Descriptor

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

func (*ForgeRequest) GetIds

func (m *ForgeRequest) GetIds() []string

func (*ForgeRequest) ProtoMessage

func (*ForgeRequest) ProtoMessage()

func (*ForgeRequest) Reset

func (m *ForgeRequest) Reset()

func (*ForgeRequest) String

func (m *ForgeRequest) String() string

func (*ForgeRequest) XXX_DiscardUnknown

func (m *ForgeRequest) XXX_DiscardUnknown()

func (*ForgeRequest) XXX_Marshal

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

func (*ForgeRequest) XXX_Merge

func (m *ForgeRequest) XXX_Merge(src proto.Message)

func (*ForgeRequest) XXX_Size

func (m *ForgeRequest) XXX_Size() int

func (*ForgeRequest) XXX_Unmarshal

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

type ForgeResponse

type ForgeResponse struct {
	Config               *MachineConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*ForgeResponse) Descriptor

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

func (*ForgeResponse) GetConfig

func (m *ForgeResponse) GetConfig() *MachineConfig

func (*ForgeResponse) ProtoMessage

func (*ForgeResponse) ProtoMessage()

func (*ForgeResponse) Reset

func (m *ForgeResponse) Reset()

func (*ForgeResponse) String

func (m *ForgeResponse) String() string

func (*ForgeResponse) XXX_DiscardUnknown

func (m *ForgeResponse) XXX_DiscardUnknown()

func (*ForgeResponse) XXX_Marshal

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

func (*ForgeResponse) XXX_Merge

func (m *ForgeResponse) XXX_Merge(src proto.Message)

func (*ForgeResponse) XXX_Size

func (m *ForgeResponse) XXX_Size() int

func (*ForgeResponse) XXX_Unmarshal

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

type ForgeServer

type ForgeServer interface {
	Forge(context.Context, *ForgeRequest) (*ForgeResponse, error)
	ReportCompletion(context.Context, *CompletionRequest) (*CompletionResponse, error)
	GetStatus(context.Context, *StatusRequest) (*StatusResponse, error)
}

ForgeServer is the server API for Forge service.

type GetRequest

type GetRequest struct {
	Ids                  []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRequest) Descriptor

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

func (*GetRequest) GetIds

func (m *GetRequest) GetIds() []string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) XXX_DiscardUnknown

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal

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

func (*GetRequest) XXX_Merge

func (m *GetRequest) XXX_Merge(src proto.Message)

func (*GetRequest) XXX_Size

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal

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

type GetResponse

type GetResponse struct {
	Configs              []*MachineConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*GetResponse) Descriptor

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

func (*GetResponse) GetConfigs

func (m *GetResponse) GetConfigs() []*MachineConfig

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) Reset

func (m *GetResponse) Reset()

func (*GetResponse) String

func (m *GetResponse) String() string

func (*GetResponse) XXX_DiscardUnknown

func (m *GetResponse) XXX_DiscardUnknown()

func (*GetResponse) XXX_Marshal

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

func (*GetResponse) XXX_Merge

func (m *GetResponse) XXX_Merge(src proto.Message)

func (*GetResponse) XXX_Size

func (m *GetResponse) XXX_Size() int

func (*GetResponse) XXX_Unmarshal

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

type Host added in v1.1.1

type Host struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Ipv4                 string   `protobuf:"bytes,2,opt,name=ipv4,proto3" json:"ipv4,omitempty"`
	Ipv6                 string   `protobuf:"bytes,3,opt,name=ipv6,proto3" json:"ipv6,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Host) Descriptor added in v1.1.1

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

func (*Host) GetIpv4 added in v1.1.1

func (m *Host) GetIpv4() string

func (*Host) GetIpv6 added in v1.1.1

func (m *Host) GetIpv6() string

func (*Host) GetName added in v1.1.1

func (m *Host) GetName() string

func (*Host) ProtoMessage added in v1.1.1

func (*Host) ProtoMessage()

func (*Host) Reset added in v1.1.1

func (m *Host) Reset()

func (*Host) String added in v1.1.1

func (m *Host) String() string

func (*Host) XXX_DiscardUnknown added in v1.1.1

func (m *Host) XXX_DiscardUnknown()

func (*Host) XXX_Marshal added in v1.1.1

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

func (*Host) XXX_Merge added in v1.1.1

func (m *Host) XXX_Merge(src proto.Message)

func (*Host) XXX_Size added in v1.1.1

func (m *Host) XXX_Size() int

func (*Host) XXX_Unmarshal added in v1.1.1

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

type Interface

type Interface struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Mac                  string   `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"`
	Addrs                []string `protobuf:"bytes,3,rep,name=addrs,proto3" json:"addrs,omitempty"`
	Mtu                  uint32   `protobuf:"varint,4,opt,name=mtu,proto3" json:"mtu,omitempty"`
	Vxlan                *Vxlan   `protobuf:"bytes,5,opt,name=vxlan,proto3" json:"vxlan,omitempty"`
	Vlan                 *Vlan    `protobuf:"bytes,6,opt,name=vlan,proto3" json:"vlan,omitempty"`
	Dhcp                 *Dhcp    `protobuf:"bytes,7,opt,name=dhcp,proto3" json:"dhcp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Interface) Descriptor

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

func (*Interface) GetAddrs added in v0.1.6

func (m *Interface) GetAddrs() []string

func (*Interface) GetDhcp added in v0.1.11

func (m *Interface) GetDhcp() *Dhcp

func (*Interface) GetMac

func (m *Interface) GetMac() string

func (*Interface) GetMtu

func (m *Interface) GetMtu() uint32

func (*Interface) GetName

func (m *Interface) GetName() string

func (*Interface) GetVlan

func (m *Interface) GetVlan() *Vlan

func (*Interface) GetVxlan

func (m *Interface) GetVxlan() *Vxlan

func (*Interface) ProtoMessage

func (*Interface) ProtoMessage()

func (*Interface) Reset

func (m *Interface) Reset()

func (*Interface) String

func (m *Interface) String() string

func (*Interface) XXX_DiscardUnknown

func (m *Interface) XXX_DiscardUnknown()

func (*Interface) XXX_Marshal

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

func (*Interface) XXX_Merge

func (m *Interface) XXX_Merge(src proto.Message)

func (*Interface) XXX_Size

func (m *Interface) XXX_Size() int

func (*Interface) XXX_Unmarshal

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

type ListRequest

type ListRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListRequest) Descriptor

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

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset

func (m *ListRequest) Reset()

func (*ListRequest) String

func (m *ListRequest) String() string

func (*ListRequest) XXX_DiscardUnknown

func (m *ListRequest) XXX_DiscardUnknown()

func (*ListRequest) XXX_Marshal

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

func (*ListRequest) XXX_Merge

func (m *ListRequest) XXX_Merge(src proto.Message)

func (*ListRequest) XXX_Size

func (m *ListRequest) XXX_Size() int

func (*ListRequest) XXX_Unmarshal

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

type ListResponse

type ListResponse struct {
	Result               map[string]*Config `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*ListResponse) Descriptor

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

func (*ListResponse) GetResult

func (m *ListResponse) GetResult() map[string]*Config

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) Reset

func (m *ListResponse) Reset()

func (*ListResponse) String

func (m *ListResponse) String() string

func (*ListResponse) XXX_DiscardUnknown

func (m *ListResponse) XXX_DiscardUnknown()

func (*ListResponse) XXX_Marshal

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

func (*ListResponse) XXX_Merge

func (m *ListResponse) XXX_Merge(src proto.Message)

func (*ListResponse) XXX_Size

func (m *ListResponse) XXX_Size() int

func (*ListResponse) XXX_Unmarshal

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

type MachineConfig

type MachineConfig struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Config               *Config  `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	Ver                  int64    `protobuf:"varint,3,opt,name=ver,proto3" json:"ver,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MachineConfig) Descriptor

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

func (*MachineConfig) GetConfig

func (m *MachineConfig) GetConfig() *Config

func (*MachineConfig) GetId

func (m *MachineConfig) GetId() string

func (*MachineConfig) GetVer

func (m *MachineConfig) GetVer() int64

func (*MachineConfig) GetVersion

func (m *MachineConfig) GetVersion() int64

func (*MachineConfig) Key

func (m *MachineConfig) Key() string

func (*MachineConfig) ProtoMessage

func (*MachineConfig) ProtoMessage()

func (*MachineConfig) Reset

func (m *MachineConfig) Reset()

func (*MachineConfig) SetVersion

func (m *MachineConfig) SetVersion(v int64)

func (*MachineConfig) String

func (m *MachineConfig) String() string

func (*MachineConfig) Value

func (m *MachineConfig) Value() interface{}

func (*MachineConfig) XXX_DiscardUnknown

func (m *MachineConfig) XXX_DiscardUnknown()

func (*MachineConfig) XXX_Marshal

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

func (*MachineConfig) XXX_Merge

func (m *MachineConfig) XXX_Merge(src proto.Message)

func (*MachineConfig) XXX_Size

func (m *MachineConfig) XXX_Size() int

func (*MachineConfig) XXX_Unmarshal

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

type MachineStatus added in v1.1.7

type MachineStatus struct {
	Configured           bool     `protobuf:"varint,1,opt,name=configured,proto3" json:"configured,omitempty"`
	Error                string   `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Timestamp            int64    `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MachineStatus) Descriptor added in v1.1.7

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

func (*MachineStatus) GetConfigured added in v1.1.7

func (m *MachineStatus) GetConfigured() bool

func (*MachineStatus) GetError added in v1.1.7

func (m *MachineStatus) GetError() string

func (*MachineStatus) GetTimestamp added in v1.1.7

func (m *MachineStatus) GetTimestamp() int64

func (*MachineStatus) ProtoMessage added in v1.1.7

func (*MachineStatus) ProtoMessage()

func (*MachineStatus) Reset added in v1.1.7

func (m *MachineStatus) Reset()

func (*MachineStatus) String added in v1.1.7

func (m *MachineStatus) String() string

func (*MachineStatus) XXX_DiscardUnknown added in v1.1.7

func (m *MachineStatus) XXX_DiscardUnknown()

func (*MachineStatus) XXX_Marshal added in v1.1.7

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

func (*MachineStatus) XXX_Merge added in v1.1.7

func (m *MachineStatus) XXX_Merge(src proto.Message)

func (*MachineStatus) XXX_Size added in v1.1.7

func (m *MachineStatus) XXX_Size() int

func (*MachineStatus) XXX_Unmarshal added in v1.1.7

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

type ManageClient

type ManageClient interface {
	Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
}

ManageClient is the client API for Manage service.

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

func NewManageClient

func NewManageClient(cc *grpc.ClientConn) ManageClient

type ManageServer

ManageServer is the server API for Manage service.

type Mount added in v0.1.11

type Mount struct {
	Device               string   `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	Key                  string   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	KeyUser              string   `protobuf:"bytes,3,opt,name=keyUser,proto3" json:"keyUser,omitempty"`
	Path                 string   `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Fstype               string   `protobuf:"bytes,5,opt,name=fstype,proto3" json:"fstype,omitempty"`
	Options              string   `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty"`
	Username             string   `protobuf:"bytes,7,opt,name=username,proto3" json:"username,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Mount) Descriptor added in v0.1.11

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

func (*Mount) GetDevice added in v0.1.11

func (m *Mount) GetDevice() string

func (*Mount) GetFstype added in v0.1.11

func (m *Mount) GetFstype() string

func (*Mount) GetKey added in v0.1.11

func (m *Mount) GetKey() string

func (*Mount) GetKeyUser added in v0.1.11

func (m *Mount) GetKeyUser() string

func (*Mount) GetOptions added in v0.1.11

func (m *Mount) GetOptions() string

func (*Mount) GetPath added in v0.1.11

func (m *Mount) GetPath() string

func (*Mount) GetUsername added in v0.1.11

func (m *Mount) GetUsername() string

func (*Mount) ProtoMessage added in v0.1.11

func (*Mount) ProtoMessage()

func (*Mount) Reset added in v0.1.11

func (m *Mount) Reset()

func (*Mount) String added in v0.1.11

func (m *Mount) String() string

func (*Mount) XXX_DiscardUnknown added in v0.1.11

func (m *Mount) XXX_DiscardUnknown()

func (*Mount) XXX_Marshal added in v0.1.11

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

func (*Mount) XXX_Merge added in v0.1.11

func (m *Mount) XXX_Merge(src proto.Message)

func (*Mount) XXX_Size added in v0.1.11

func (m *Mount) XXX_Size() int

func (*Mount) XXX_Unmarshal added in v0.1.11

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

type Route added in v0.1.13

type Route struct {
	Dst                  string   `protobuf:"bytes,1,opt,name=dst,proto3" json:"dst,omitempty"`
	Src                  string   `protobuf:"bytes,2,opt,name=src,proto3" json:"src,omitempty"`
	Gateway              string   `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
	PrefSrc              string   `protobuf:"bytes,4,opt,name=pref_src,json=prefSrc,proto3" json:"pref_src,omitempty"`
	Priority             int32    `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"`
	Metrics              int32    `protobuf:"varint,6,opt,name=metrics,proto3" json:"metrics,omitempty"`
	Table                int32    `protobuf:"varint,7,opt,name=table,proto3" json:"table,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Route) Descriptor added in v0.1.13

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

func (*Route) GetDst added in v0.1.13

func (m *Route) GetDst() string

func (*Route) GetGateway added in v0.1.13

func (m *Route) GetGateway() string

func (*Route) GetMetrics added in v0.1.13

func (m *Route) GetMetrics() int32

func (*Route) GetPrefSrc added in v0.1.13

func (m *Route) GetPrefSrc() string

func (*Route) GetPriority added in v0.1.13

func (m *Route) GetPriority() int32

func (*Route) GetSrc added in v0.1.13

func (m *Route) GetSrc() string

func (*Route) GetTable added in v0.1.13

func (m *Route) GetTable() int32

func (*Route) ProtoMessage added in v0.1.13

func (*Route) ProtoMessage()

func (*Route) Reset added in v0.1.13

func (m *Route) Reset()

func (*Route) String added in v0.1.13

func (m *Route) String() string

func (*Route) XXX_DiscardUnknown added in v0.1.13

func (m *Route) XXX_DiscardUnknown()

func (*Route) XXX_Marshal added in v0.1.13

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

func (*Route) XXX_Merge added in v0.1.13

func (m *Route) XXX_Merge(src proto.Message)

func (*Route) XXX_Size added in v0.1.13

func (m *Route) XXX_Size() int

func (*Route) XXX_Unmarshal added in v0.1.13

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

type SetRequest

type SetRequest struct {
	Configs              []*MachineConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*SetRequest) Descriptor

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

func (*SetRequest) GetConfigs

func (m *SetRequest) GetConfigs() []*MachineConfig

func (*SetRequest) ProtoMessage

func (*SetRequest) ProtoMessage()

func (*SetRequest) Reset

func (m *SetRequest) Reset()

func (*SetRequest) String

func (m *SetRequest) String() string

func (*SetRequest) XXX_DiscardUnknown

func (m *SetRequest) XXX_DiscardUnknown()

func (*SetRequest) XXX_Marshal

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

func (*SetRequest) XXX_Merge

func (m *SetRequest) XXX_Merge(src proto.Message)

func (*SetRequest) XXX_Size

func (m *SetRequest) XXX_Size() int

func (*SetRequest) XXX_Unmarshal

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

type SetResponse

type SetResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SetResponse) Descriptor

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

func (*SetResponse) ProtoMessage

func (*SetResponse) ProtoMessage()

func (*SetResponse) Reset

func (m *SetResponse) Reset()

func (*SetResponse) String

func (m *SetResponse) String() string

func (*SetResponse) XXX_DiscardUnknown

func (m *SetResponse) XXX_DiscardUnknown()

func (*SetResponse) XXX_Marshal

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

func (*SetResponse) XXX_Merge

func (m *SetResponse) XXX_Merge(src proto.Message)

func (*SetResponse) XXX_Size

func (m *SetResponse) XXX_Size() int

func (*SetResponse) XXX_Unmarshal

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

type StatusRequest added in v1.1.7

type StatusRequest struct {
	Ids                  []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StatusRequest) Descriptor added in v1.1.7

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

func (*StatusRequest) GetIds added in v1.1.7

func (m *StatusRequest) GetIds() []string

func (*StatusRequest) ProtoMessage added in v1.1.7

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) Reset added in v1.1.7

func (m *StatusRequest) Reset()

func (*StatusRequest) String added in v1.1.7

func (m *StatusRequest) String() string

func (*StatusRequest) XXX_DiscardUnknown added in v1.1.7

func (m *StatusRequest) XXX_DiscardUnknown()

func (*StatusRequest) XXX_Marshal added in v1.1.7

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

func (*StatusRequest) XXX_Merge added in v1.1.7

func (m *StatusRequest) XXX_Merge(src proto.Message)

func (*StatusRequest) XXX_Size added in v1.1.7

func (m *StatusRequest) XXX_Size() int

func (*StatusRequest) XXX_Unmarshal added in v1.1.7

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

type StatusResponse added in v1.1.7

type StatusResponse struct {
	Statuses             map[string]*MachineStatus `` /* 157-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*StatusResponse) Descriptor added in v1.1.7

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

func (*StatusResponse) GetStatuses added in v1.1.7

func (m *StatusResponse) GetStatuses() map[string]*MachineStatus

func (*StatusResponse) ProtoMessage added in v1.1.7

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) Reset added in v1.1.7

func (m *StatusResponse) Reset()

func (*StatusResponse) String added in v1.1.7

func (m *StatusResponse) String() string

func (*StatusResponse) XXX_DiscardUnknown added in v1.1.7

func (m *StatusResponse) XXX_DiscardUnknown()

func (*StatusResponse) XXX_Marshal added in v1.1.7

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

func (*StatusResponse) XXX_Merge added in v1.1.7

func (m *StatusResponse) XXX_Merge(src proto.Message)

func (*StatusResponse) XXX_Size added in v1.1.7

func (m *StatusResponse) XXX_Size() int

func (*StatusResponse) XXX_Unmarshal added in v1.1.7

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

type User

type User struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Groups               []string `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"`
	SshAuthorizedKeys    []string `protobuf:"bytes,4,rep,name=ssh_authorized_keys,json=sshAuthorizedKeys,proto3" json:"ssh_authorized_keys,omitempty"`
	SshPrivateKeys       []string `protobuf:"bytes,5,rep,name=ssh_private_keys,json=sshPrivateKeys,proto3" json:"ssh_private_keys,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetGroups

func (m *User) GetGroups() []string

func (*User) GetName

func (m *User) GetName() string

func (*User) GetPassword

func (m *User) GetPassword() string

func (*User) GetSshAuthorizedKeys

func (m *User) GetSshAuthorizedKeys() []string

func (*User) GetSshPrivateKeys added in v1.1.2

func (m *User) GetSshPrivateKeys() []string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

type Vlan

type Vlan struct {
	Vid                  int32    `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Parent               string   `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
	Dhcp                 *Dhcp    `protobuf:"bytes,3,opt,name=dhcp,proto3" json:"dhcp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Vlan) Descriptor

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

func (*Vlan) GetDhcp added in v0.1.11

func (m *Vlan) GetDhcp() *Dhcp

func (*Vlan) GetParent added in v0.1.6

func (m *Vlan) GetParent() string

func (*Vlan) GetVid

func (m *Vlan) GetVid() int32

func (*Vlan) ProtoMessage

func (*Vlan) ProtoMessage()

func (*Vlan) Reset

func (m *Vlan) Reset()

func (*Vlan) String

func (m *Vlan) String() string

func (*Vlan) XXX_DiscardUnknown

func (m *Vlan) XXX_DiscardUnknown()

func (*Vlan) XXX_Marshal

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

func (*Vlan) XXX_Merge

func (m *Vlan) XXX_Merge(src proto.Message)

func (*Vlan) XXX_Size

func (m *Vlan) XXX_Size() int

func (*Vlan) XXX_Unmarshal

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

type Vxlan

type Vxlan struct {
	Vni                  int32    `protobuf:"varint,1,opt,name=vni,proto3" json:"vni,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Vxlan) Descriptor

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

func (*Vxlan) GetVni

func (m *Vxlan) GetVni() int32

func (*Vxlan) ProtoMessage

func (*Vxlan) ProtoMessage()

func (*Vxlan) Reset

func (m *Vxlan) Reset()

func (*Vxlan) String

func (m *Vxlan) String() string

func (*Vxlan) XXX_DiscardUnknown

func (m *Vxlan) XXX_DiscardUnknown()

func (*Vxlan) XXX_Marshal

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

func (*Vxlan) XXX_Merge

func (m *Vxlan) XXX_Merge(src proto.Message)

func (*Vxlan) XXX_Size

func (m *Vxlan) XXX_Size() int

func (*Vxlan) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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