foundry

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 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 Config

type Config struct {
	Hostname             string       `` /* 129-byte string literal not displayed */
	Users                []*User      `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty" yaml:"users,omitempty" mapstructure:"users,omitempty"`
	Interfaces           []*Interface `` /* 137-byte string literal not displayed */
	ExpandRootfs         bool         `` /* 168-byte string literal not displayed */
	Mounts               []*Mount     `protobuf:"bytes,5,rep,name=mounts,proto3" json:"mounts,omitempty" yaml:"mounts,omitempty" mapstructure:"mounts,omitempty"`
	Routes               []*Route     `protobuf:"bytes,6,rep,name=routes,proto3" json:"routes,omitempty" yaml:"routes,omitempty" mapstructure:"routes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte       `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32        `json:"-" yaml:"-" mapstructure:"-"`
}

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) GetInterfaces

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

func (*Config) GetMounts added in v0.1.11

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

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" yaml:"ids,omitempty" mapstructure:"ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

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:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

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 ForgeClient

type ForgeClient interface {
	Forge(ctx context.Context, in *ForgeRequest, opts ...grpc.CallOption) (*ForgeResponse, 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" yaml:"ids,omitempty" mapstructure:"ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

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" yaml:"config,omitempty" mapstructure:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte         `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32          `json:"-" yaml:"-" mapstructure:"-"`
}

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)
}

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" yaml:"ids,omitempty" mapstructure:"ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

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" yaml:"configs,omitempty" mapstructure:"configs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte           `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32            `json:"-" yaml:"-" mapstructure:"-"`
}

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 Interface

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

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() string

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:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

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 `` /* 385-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}           `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte             `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32              `json:"-" yaml:"-" mapstructure:"-"`
}

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" yaml:"id,omitempty" mapstructure:"id,omitempty"`
	Config               *Config  `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty" yaml:"config,omitempty" mapstructure:"config,omitempty"`
	Ver                  int64    `protobuf:"varint,3,opt,name=ver,proto3" json:"ver,omitempty" yaml:"ver,omitempty" mapstructure:"ver,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

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 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" yaml:"device,omitempty" mapstructure:"device,omitempty"`
	Key                  string   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty" yaml:"key,omitempty" mapstructure:"key,omitempty"`
	KeyUser              string   `protobuf:"bytes,3,opt,name=keyUser,proto3" json:"keyUser,omitempty" yaml:"keyUser,omitempty" mapstructure:"keyUser,omitempty"`
	Path                 string   `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty" yaml:"path,omitempty" mapstructure:"path,omitempty"`
	Fstype               string   `protobuf:"bytes,5,opt,name=fstype,proto3" json:"fstype,omitempty" yaml:"fstype,omitempty" mapstructure:"fstype,omitempty"`
	Options              string   `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty" yaml:"options,omitempty" mapstructure:"options,omitempty"`
	Username             string   `` /* 129-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

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" yaml:"dst,omitempty" mapstructure:"dst,omitempty"`
	Src                  string   `protobuf:"bytes,2,opt,name=src,proto3" json:"src,omitempty" yaml:"src,omitempty" mapstructure:"src,omitempty"`
	Gateway              string   `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty" yaml:"gateway,omitempty" mapstructure:"gateway,omitempty"`
	PrefSrc              string   `` /* 142-byte string literal not displayed */
	Priority             int32    `` /* 130-byte string literal not displayed */
	Metrics              int32    `` /* 126-byte string literal not displayed */
	Table                int32    `protobuf:"varint,7,opt,name=table,proto3" json:"table,omitempty" yaml:"table,omitempty" mapstructure:"table,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

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" yaml:"configs,omitempty" mapstructure:"configs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte           `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32            `json:"-" yaml:"-" mapstructure:"-"`
}

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:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

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 User

type User struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" yaml:"name,omitempty" mapstructure:"name,omitempty"`
	Password             string   `` /* 129-byte string literal not displayed */
	Groups               []string `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty" yaml:"groups,omitempty" mapstructure:"groups,omitempty"`
	SshAuthorizedKeys    []string `` /* 196-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

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) 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" yaml:"vid,omitempty" mapstructure:"vid,omitempty"`
	Parent               string   `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty" yaml:"parent,omitempty" mapstructure:"parent,omitempty"`
	Dhcp                 string   `protobuf:"bytes,3,opt,name=dhcp,proto3" json:"dhcp,omitempty" yaml:"dhcp,omitempty" mapstructure:"dhcp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

func (*Vlan) Descriptor

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

func (*Vlan) GetDhcp added in v0.1.11

func (m *Vlan) GetDhcp() string

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" yaml:"vni,omitempty" mapstructure:"vni,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-" mapstructure:"-"`
	XXX_unrecognized     []byte   `json:"-" yaml:"-" mapstructure:"-"`
	XXX_sizecache        int32    `json:"-" yaml:"-" mapstructure:"-"`
}

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