Documentation
¶
Index ¶
- Constants
- func RegisterForgeServer(s *grpc.Server, srv ForgeServer)
- func RegisterManageServer(s *grpc.Server, srv ManageServer)
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetExpandRootfs() bool
- func (m *Config) GetHostname() string
- func (m *Config) GetInterfaces() []*Interface
- func (m *Config) GetMounts() []*Mount
- func (m *Config) GetRoutes() []*Route
- func (m *Config) GetUsers() []*User
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) GetIds() []string
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) String() string
- func (m *DeleteRequest) XXX_DiscardUnknown()
- func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRequest) XXX_Merge(src proto.Message)
- func (m *DeleteRequest) XXX_Size() int
- func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)
- func (*DeleteResponse) ProtoMessage()
- func (m *DeleteResponse) Reset()
- func (m *DeleteResponse) String() string
- func (m *DeleteResponse) XXX_DiscardUnknown()
- func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteResponse) XXX_Merge(src proto.Message)
- func (m *DeleteResponse) XXX_Size() int
- func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
- type ForgeClient
- type ForgeRequest
- func (*ForgeRequest) Descriptor() ([]byte, []int)
- func (m *ForgeRequest) GetIds() []string
- func (*ForgeRequest) ProtoMessage()
- func (m *ForgeRequest) Reset()
- func (m *ForgeRequest) String() string
- func (m *ForgeRequest) XXX_DiscardUnknown()
- func (m *ForgeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ForgeRequest) XXX_Merge(src proto.Message)
- func (m *ForgeRequest) XXX_Size() int
- func (m *ForgeRequest) XXX_Unmarshal(b []byte) error
- type ForgeResponse
- func (*ForgeResponse) Descriptor() ([]byte, []int)
- func (m *ForgeResponse) GetConfig() *MachineConfig
- func (*ForgeResponse) ProtoMessage()
- func (m *ForgeResponse) Reset()
- func (m *ForgeResponse) String() string
- func (m *ForgeResponse) XXX_DiscardUnknown()
- func (m *ForgeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ForgeResponse) XXX_Merge(src proto.Message)
- func (m *ForgeResponse) XXX_Size() int
- func (m *ForgeResponse) XXX_Unmarshal(b []byte) error
- type ForgeServer
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetIds() []string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetConfigs() []*MachineConfig
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) String() string
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type Interface
- func (*Interface) Descriptor() ([]byte, []int)
- func (m *Interface) GetAddrs() []string
- func (m *Interface) GetDhcp() string
- func (m *Interface) GetMac() string
- func (m *Interface) GetMtu() uint32
- func (m *Interface) GetName() string
- func (m *Interface) GetVlan() *Vlan
- func (m *Interface) GetVxlan() *Vxlan
- func (*Interface) ProtoMessage()
- func (m *Interface) Reset()
- func (m *Interface) String() string
- func (m *Interface) XXX_DiscardUnknown()
- func (m *Interface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Interface) XXX_Merge(src proto.Message)
- func (m *Interface) XXX_Size() int
- func (m *Interface) XXX_Unmarshal(b []byte) error
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) String() string
- func (m *ListRequest) XXX_DiscardUnknown()
- func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRequest) XXX_Merge(src proto.Message)
- func (m *ListRequest) XXX_Size() int
- func (m *ListRequest) XXX_Unmarshal(b []byte) error
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)
- func (m *ListResponse) GetResult() map[string]*Config
- func (*ListResponse) ProtoMessage()
- func (m *ListResponse) Reset()
- func (m *ListResponse) String() string
- func (m *ListResponse) XXX_DiscardUnknown()
- func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponse) XXX_Merge(src proto.Message)
- func (m *ListResponse) XXX_Size() int
- func (m *ListResponse) XXX_Unmarshal(b []byte) error
- type MachineConfig
- func (*MachineConfig) Descriptor() ([]byte, []int)
- func (m *MachineConfig) GetConfig() *Config
- func (m *MachineConfig) GetId() string
- func (m *MachineConfig) GetVer() int64
- func (m *MachineConfig) GetVersion() int64
- func (m *MachineConfig) Key() string
- func (*MachineConfig) ProtoMessage()
- func (m *MachineConfig) Reset()
- func (m *MachineConfig) SetVersion(v int64)
- func (m *MachineConfig) String() string
- func (m *MachineConfig) Value() interface{}
- func (m *MachineConfig) XXX_DiscardUnknown()
- func (m *MachineConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MachineConfig) XXX_Merge(src proto.Message)
- func (m *MachineConfig) XXX_Size() int
- func (m *MachineConfig) XXX_Unmarshal(b []byte) error
- type ManageClient
- type ManageServer
- type Mount
- func (*Mount) Descriptor() ([]byte, []int)
- func (m *Mount) GetDevice() string
- func (m *Mount) GetFstype() string
- func (m *Mount) GetKey() string
- func (m *Mount) GetKeyUser() string
- func (m *Mount) GetOptions() string
- func (m *Mount) GetPath() string
- func (m *Mount) GetUsername() string
- func (*Mount) ProtoMessage()
- func (m *Mount) Reset()
- func (m *Mount) String() string
- func (m *Mount) XXX_DiscardUnknown()
- func (m *Mount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Mount) XXX_Merge(src proto.Message)
- func (m *Mount) XXX_Size() int
- func (m *Mount) XXX_Unmarshal(b []byte) error
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetDst() string
- func (m *Route) GetGateway() string
- func (m *Route) GetMetrics() int32
- func (m *Route) GetPrefSrc() string
- func (m *Route) GetPriority() int32
- func (m *Route) GetSrc() string
- func (m *Route) GetTable() int32
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) String() string
- func (m *Route) XXX_DiscardUnknown()
- func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Route) XXX_Merge(src proto.Message)
- func (m *Route) XXX_Size() int
- func (m *Route) XXX_Unmarshal(b []byte) error
- type SetRequest
- func (*SetRequest) Descriptor() ([]byte, []int)
- func (m *SetRequest) GetConfigs() []*MachineConfig
- func (*SetRequest) ProtoMessage()
- func (m *SetRequest) Reset()
- func (m *SetRequest) String() string
- func (m *SetRequest) XXX_DiscardUnknown()
- func (m *SetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetRequest) XXX_Merge(src proto.Message)
- func (m *SetRequest) XXX_Size() int
- func (m *SetRequest) XXX_Unmarshal(b []byte) error
- type SetResponse
- func (*SetResponse) Descriptor() ([]byte, []int)
- func (*SetResponse) ProtoMessage()
- func (m *SetResponse) Reset()
- func (m *SetResponse) String() string
- func (m *SetResponse) XXX_DiscardUnknown()
- func (m *SetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetResponse) XXX_Merge(src proto.Message)
- func (m *SetResponse) XXX_Size() int
- func (m *SetResponse) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetGroups() []string
- func (m *User) GetName() string
- func (m *User) GetPassword() string
- func (m *User) GetSshAuthorizedKeys() []string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type Vlan
- func (*Vlan) Descriptor() ([]byte, []int)
- func (m *Vlan) GetDhcp() string
- func (m *Vlan) GetParent() string
- func (m *Vlan) GetVid() int32
- func (*Vlan) ProtoMessage()
- func (m *Vlan) Reset()
- func (m *Vlan) String() string
- func (m *Vlan) XXX_DiscardUnknown()
- func (m *Vlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Vlan) XXX_Merge(src proto.Message)
- func (m *Vlan) XXX_Size() int
- func (m *Vlan) XXX_Unmarshal(b []byte) error
- type Vxlan
- func (*Vxlan) Descriptor() ([]byte, []int)
- func (m *Vxlan) GetVni() int32
- func (*Vxlan) ProtoMessage()
- func (m *Vxlan) Reset()
- func (m *Vxlan) String() string
- func (m *Vxlan) XXX_DiscardUnknown()
- func (m *Vxlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Vxlan) XXX_Merge(src proto.Message)
- func (m *Vxlan) XXX_Size() int
- func (m *Vxlan) XXX_Unmarshal(b []byte) error
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) GetExpandRootfs ¶ added in v0.1.8
func (*Config) GetHostname ¶ added in v0.1.5
func (*Config) GetInterfaces ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Interface) ProtoMessage()
func (*Interface) XXX_DiscardUnknown ¶
func (m *Interface) XXX_DiscardUnknown()
func (*Interface) XXX_Marshal ¶
func (*Interface) XXX_Unmarshal ¶
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 ¶
type ManageServer interface {
Set(context.Context, *SetRequest) (*SetResponse, error)
Get(context.Context, *GetRequest) (*GetResponse, error)
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
List(context.Context, *ListRequest) (*ListResponse, error)
}
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) GetKeyUser ¶ added in v0.1.11
func (*Mount) GetOptions ¶ added in v0.1.11
func (*Mount) GetUsername ¶ added in v0.1.11
func (*Mount) ProtoMessage ¶ added in v0.1.11
func (*Mount) ProtoMessage()
func (*Mount) XXX_DiscardUnknown ¶ added in v0.1.11
func (m *Mount) XXX_DiscardUnknown()
func (*Mount) XXX_Marshal ¶ added in v0.1.11
func (*Mount) XXX_Unmarshal ¶ added in v0.1.11
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) GetGateway ¶ added in v0.1.13
func (*Route) GetMetrics ¶ added in v0.1.13
func (*Route) GetPrefSrc ¶ added in v0.1.13
func (*Route) GetPriority ¶ added in v0.1.13
func (*Route) ProtoMessage ¶ added in v0.1.13
func (*Route) ProtoMessage()
func (*Route) XXX_DiscardUnknown ¶ added in v0.1.13
func (m *Route) XXX_DiscardUnknown()
func (*Route) XXX_Marshal ¶ added in v0.1.13
func (*Route) XXX_Unmarshal ¶ added in v0.1.13
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) GetPassword ¶
func (*User) GetSshAuthorizedKeys ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Vlan) ProtoMessage()
func (*Vlan) XXX_DiscardUnknown ¶
func (m *Vlan) XXX_DiscardUnknown()
func (*Vlan) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*Vxlan) ProtoMessage()
func (*Vxlan) XXX_DiscardUnknown ¶
func (m *Vxlan) XXX_DiscardUnknown()
func (*Vxlan) XXX_Marshal ¶
func (*Vxlan) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.