Documentation ¶
Index ¶
- Variables
- func AppAPI(c *gin.Context)
- func AuthGRpcServer() (*grpc.Server, error)
- func DeleteApp(i int)
- func GenAuth(body io.Reader) (code string, err error)
- func InsertApp(body io.Reader) (id string, err error)
- func LicenseAPI(c *gin.Context)
- func Main()
- func NewTlsListen(crt, key, ca []byte, addr string) (net.Listener, error)
- func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer)
- func RestoreAsset()
- func Run(addr string)
- func ServerAPI(c *gin.Context)
- func Start(cfg *Config)
- func UntiedApi(c *gin.Context)
- func UpdateApp(i int, body io.Reader)
- type APP
- type App
- func (*App) Descriptor() ([]byte, []int)
- func (m *App) GetAttrs() []*Attr
- func (m *App) GetExpire() int64
- func (m *App) GetInstance() int64
- func (m *App) GetKey() string
- func (m *App) GetMaxLifeCycle() int64
- func (m *App) GetName() string
- func (*App) ProtoMessage()
- func (m *App) Reset()
- func (m *App) String() string
- func (m *App) XXX_DiscardUnknown()
- func (m *App) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *App) XXX_Merge(src proto.Message)
- func (m *App) XXX_Size() int
- func (m *App) XXX_Unmarshal(b []byte) error
- type Attr
- func (*Attr) Descriptor() ([]byte, []int)
- func (m *Attr) GetKey() string
- func (m *Attr) GetName() string
- func (m *Attr) GetValue() int64
- func (*Attr) ProtoMessage()
- func (m *Attr) Reset()
- func (m *Attr) String() string
- func (m *Attr) XXX_DiscardUnknown()
- func (m *Attr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Attr) XXX_Merge(src proto.Message)
- func (m *Attr) XXX_Size() int
- func (m *Attr) XXX_Unmarshal(b []byte) error
- type Attrs
- func (*Attrs) Descriptor() ([]byte, []int)
- func (m *Attrs) GetAddr() string
- func (m *Attrs) GetHwmd5() string
- func (m *Attrs) GetName() string
- func (m *Attrs) GetNow() int64
- func (m *Attrs) GetStart() int64
- func (*Attrs) ProtoMessage()
- func (m *Attrs) Reset()
- func (m *Attrs) String() string
- func (m *Attrs) XXX_DiscardUnknown()
- func (m *Attrs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Attrs) XXX_Merge(src proto.Message)
- func (m *Attrs) XXX_Size() int
- func (m *Attrs) XXX_Unmarshal(b []byte) error
- type AuthReq
- func (*AuthReq) Descriptor() ([]byte, []int)
- func (m *AuthReq) GetApps() map[string]*App
- func (m *AuthReq) GetCipher() *Cipher
- func (*AuthReq) ProtoMessage()
- func (m *AuthReq) Reset()
- func (m *AuthReq) String() string
- func (m *AuthReq) XXX_DiscardUnknown()
- func (m *AuthReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthReq) XXX_Merge(src proto.Message)
- func (m *AuthReq) XXX_Size() int
- func (m *AuthReq) XXX_Unmarshal(b []byte) error
- type AuthResp
- func (*AuthResp) Descriptor() ([]byte, []int)
- func (m *AuthResp) GetCipher() *Cipher
- func (m *AuthResp) GetLic() *License
- func (*AuthResp) ProtoMessage()
- func (m *AuthResp) Reset()
- func (m *AuthResp) String() string
- func (m *AuthResp) XXX_DiscardUnknown()
- func (m *AuthResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthResp) XXX_Merge(src proto.Message)
- func (m *AuthResp) XXX_Size() int
- func (m *AuthResp) XXX_Unmarshal(b []byte) error
- type AuthorizationClient
- type AuthorizationServer
- type Bios
- func (*Bios) Descriptor() ([]byte, []int)
- func (m *Bios) GetVendor() string
- func (*Bios) ProtoMessage()
- func (m *Bios) Reset()
- func (m *Bios) String() string
- func (m *Bios) XXX_DiscardUnknown()
- func (m *Bios) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bios) XXX_Merge(src proto.Message)
- func (m *Bios) XXX_Size() int
- func (m *Bios) XXX_Unmarshal(b []byte) error
- type Board
- func (*Board) Descriptor() ([]byte, []int)
- func (m *Board) GetName() string
- func (m *Board) GetSerial() string
- func (m *Board) GetVendor() string
- func (*Board) ProtoMessage()
- func (m *Board) Reset()
- func (m *Board) String() string
- func (m *Board) XXX_DiscardUnknown()
- func (m *Board) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Board) XXX_Merge(src proto.Message)
- func (m *Board) XXX_Size() int
- func (m *Board) XXX_Unmarshal(b []byte) error
- type Cipher
- func (*Cipher) Descriptor() ([]byte, []int)
- func (m *Cipher) GetCode() string
- func (*Cipher) ProtoMessage()
- func (m *Cipher) Reset()
- func (m *Cipher) String() string
- func (m *Cipher) XXX_DiscardUnknown()
- func (m *Cipher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cipher) XXX_Merge(src proto.Message)
- func (m *Cipher) XXX_Size() int
- func (m *Cipher) XXX_Unmarshal(b []byte) error
- type Clear
- func (*Clear) Descriptor() ([]byte, []int)
- func (m *Clear) GetCipher() *Cipher
- func (m *Clear) GetDate() int64
- func (m *Clear) GetLic() *License
- func (*Clear) ProtoMessage()
- func (m *Clear) Reset()
- func (m *Clear) String() string
- func (m *Clear) XXX_DiscardUnknown()
- func (m *Clear) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Clear) XXX_Merge(src proto.Message)
- func (m *Clear) XXX_Size() int
- func (m *Clear) XXX_Unmarshal(b []byte) error
- type Config
- type Cpu
- func (*Cpu) Descriptor() ([]byte, []int)
- func (m *Cpu) GetCache() uint32
- func (m *Cpu) GetCores() uint32
- func (m *Cpu) GetCpus() uint32
- func (m *Cpu) GetModel() string
- func (m *Cpu) GetSpeed() uint32
- func (m *Cpu) GetThreads() uint32
- func (m *Cpu) GetVendor() string
- func (*Cpu) ProtoMessage()
- func (m *Cpu) Reset()
- func (m *Cpu) String() string
- func (m *Cpu) XXX_DiscardUnknown()
- func (m *Cpu) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cpu) XXX_Merge(src proto.Message)
- func (m *Cpu) XXX_Size() int
- func (m *Cpu) XXX_Unmarshal(b []byte) error
- type CryptFunc
- type Hardware
- func (*Hardware) Descriptor() ([]byte, []int)
- func (m *Hardware) GetBios() *Bios
- func (m *Hardware) GetBoard() *Board
- func (m *Hardware) GetCpu() *Cpu
- func (m *Hardware) GetHost() *Host
- func (m *Hardware) GetMem() *Mem
- func (m *Hardware) GetNetworks() []*Network
- func (m *Hardware) GetProduct() *Product
- func (*Hardware) ProtoMessage()
- func (m *Hardware) Reset()
- func (m *Hardware) String() string
- func (m *Hardware) XXX_DiscardUnknown()
- func (m *Hardware) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Hardware) XXX_Merge(src proto.Message)
- func (m *Hardware) XXX_Size() int
- func (m *Hardware) XXX_Unmarshal(b []byte) error
- type HashFunc
- type Host
- func (*Host) Descriptor() ([]byte, []int)
- func (m *Host) GetArchitecture() string
- func (m *Host) GetHypervisor() string
- func (m *Host) GetMachineid() string
- func (*Host) ProtoMessage()
- func (m *Host) Reset()
- func (m *Host) String() string
- func (m *Host) XXX_DiscardUnknown()
- func (m *Host) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Host) XXX_Merge(src proto.Message)
- func (m *Host) XXX_Size() int
- func (m *Host) XXX_Unmarshal(b []byte) error
- type License
- func (*License) Descriptor() ([]byte, []int)
- func (m *License) GetApps() map[string]*App
- func (m *License) GetDevices() map[string]string
- func (m *License) GetGenerate() int64
- func (m *License) GetLid() string
- func (m *License) GetLifeCycle() int64
- func (m *License) GetSid() string
- func (m *License) GetUpdate() int64
- func (*License) ProtoMessage()
- func (m *License) Reset()
- func (m *License) String() string
- func (m *License) XXX_DiscardUnknown()
- func (m *License) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *License) XXX_Merge(src proto.Message)
- func (m *License) XXX_Size() int
- func (m *License) XXX_Unmarshal(b []byte) error
- type Mem
- func (*Mem) Descriptor() ([]byte, []int)
- func (m *Mem) GetSpeed() uint32
- func (m *Mem) GetType() string
- func (*Mem) ProtoMessage()
- func (m *Mem) Reset()
- func (m *Mem) String() string
- func (m *Mem) XXX_DiscardUnknown()
- func (m *Mem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Mem) XXX_Merge(src proto.Message)
- func (m *Mem) XXX_Size() int
- func (m *Mem) XXX_Unmarshal(b []byte) error
- type Network
- func (*Network) Descriptor() ([]byte, []int)
- func (m *Network) GetDriver() string
- func (m *Network) GetMacaddress() string
- func (m *Network) GetSpeed() uint32
- func (*Network) ProtoMessage()
- func (m *Network) Reset()
- func (m *Network) String() string
- func (m *Network) XXX_DiscardUnknown()
- func (m *Network) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Network) XXX_Merge(src proto.Message)
- func (m *Network) XXX_Size() int
- func (m *Network) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetAttrs() *Attrs
- func (m *Node) GetHardware() *Hardware
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) String() string
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type Product
- func (*Product) Descriptor() ([]byte, []int)
- func (m *Product) GetName() string
- func (m *Product) GetSerial() string
- func (m *Product) GetVendor() string
- func (*Product) ProtoMessage()
- func (m *Product) Reset()
- func (m *Product) String() string
- func (m *Product) XXX_DiscardUnknown()
- func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Product) XXX_Merge(src proto.Message)
- func (m *Product) XXX_Size() int
- func (m *Product) XXX_Unmarshal(b []byte) error
- type Result
- type SerialNum
- func (*SerialNum) Descriptor() ([]byte, []int)
- func (m *SerialNum) GetDate() int64
- func (m *SerialNum) GetNodes() map[string]*Node
- func (m *SerialNum) GetSid() string
- func (*SerialNum) ProtoMessage()
- func (m *SerialNum) Reset()
- func (m *SerialNum) String() string
- func (m *SerialNum) XXX_DiscardUnknown()
- func (m *SerialNum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SerialNum) XXX_Merge(src proto.Message)
- func (m *SerialNum) XXX_Size() int
- func (m *SerialNum) XXX_Unmarshal(b []byte) error
- type UntiedReq
- func (*UntiedReq) Descriptor() ([]byte, []int)
- func (m *UntiedReq) GetApp() string
- func (m *UntiedReq) GetId() string
- func (*UntiedReq) ProtoMessage()
- func (m *UntiedReq) Reset()
- func (m *UntiedReq) String() string
- func (m *UntiedReq) XXX_DiscardUnknown()
- func (m *UntiedReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UntiedReq) XXX_Merge(src proto.Message)
- func (m *UntiedReq) XXX_Size() int
- func (m *UntiedReq) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AssetPath string User = "admin" ListenAddr string )
Functions ¶
func AuthGRpcServer ¶
func LicenseAPI ¶
func RegisterAuthorizationServer ¶
func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer)
Types ¶
type App ¶
type App struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Attrs []*Attr `protobuf:"bytes,3,rep,name=attrs,proto3" json:"attrs,omitempty"` Expire int64 `protobuf:"varint,4,opt,name=expire,proto3" json:"expire,omitempty"` Instance int64 `protobuf:"varint,5,opt,name=instance,proto3" json:"instance,omitempty"` MaxLifeCycle int64 `protobuf:"varint,6,opt,name=maxLifeCycle,proto3" json:"maxLifeCycle,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*App) Descriptor ¶
func (*App) GetInstance ¶
func (*App) GetMaxLifeCycle ¶
func (*App) ProtoMessage ¶
func (*App) ProtoMessage()
func (*App) XXX_DiscardUnknown ¶
func (m *App) XXX_DiscardUnknown()
func (*App) XXX_Unmarshal ¶
type Attr ¶
type Attr struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Attr) Descriptor ¶
func (*Attr) ProtoMessage ¶
func (*Attr) ProtoMessage()
func (*Attr) XXX_DiscardUnknown ¶
func (m *Attr) XXX_DiscardUnknown()
func (*Attr) XXX_Unmarshal ¶
type Attrs ¶
type Attrs struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Start int64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"` Hwmd5 string `protobuf:"bytes,4,opt,name=hwmd5,proto3" json:"hwmd5,omitempty"` Now int64 `protobuf:"varint,5,opt,name=now,proto3" json:"now,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Attrs) Descriptor ¶
func (*Attrs) ProtoMessage ¶
func (*Attrs) ProtoMessage()
func (*Attrs) XXX_DiscardUnknown ¶
func (m *Attrs) XXX_DiscardUnknown()
func (*Attrs) XXX_Marshal ¶
func (*Attrs) XXX_Unmarshal ¶
type AuthReq ¶
type AuthReq struct { Cipher *Cipher `protobuf:"bytes,1,opt,name=cipher,proto3" json:"cipher,omitempty"` Apps map[string]*App `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthReq) Descriptor ¶
func (*AuthReq) ProtoMessage ¶
func (*AuthReq) ProtoMessage()
func (*AuthReq) XXX_DiscardUnknown ¶
func (m *AuthReq) XXX_DiscardUnknown()
func (*AuthReq) XXX_Marshal ¶
func (*AuthReq) XXX_Unmarshal ¶
type AuthResp ¶
type AuthResp struct { Cipher *Cipher `protobuf:"bytes,1,opt,name=cipher,proto3" json:"cipher,omitempty"` Lic *License `protobuf:"bytes,2,opt,name=lic,proto3" json:"lic,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthResp) Descriptor ¶
func (*AuthResp) ProtoMessage ¶
func (*AuthResp) ProtoMessage()
func (*AuthResp) XXX_DiscardUnknown ¶
func (m *AuthResp) XXX_DiscardUnknown()
func (*AuthResp) XXX_Marshal ¶
func (*AuthResp) XXX_Unmarshal ¶
type AuthorizationClient ¶
type AuthorizationClient interface { Resolved(ctx context.Context, in *Cipher, opts ...grpc.CallOption) (*SerialNum, error) Authorized(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*AuthResp, error) Untied(ctx context.Context, in *UntiedReq, opts ...grpc.CallOption) (*Cipher, error) Cleared(ctx context.Context, in *Cipher, opts ...grpc.CallOption) (*Clear, error) }
AuthorizationClient is the client API for Authorization service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthorizationClient ¶
func NewAuthorizationClient(cc *grpc.ClientConn) AuthorizationClient
type AuthorizationServer ¶
type AuthorizationServer interface { Resolved(context.Context, *Cipher) (*SerialNum, error) Authorized(context.Context, *AuthReq) (*AuthResp, error) Untied(context.Context, *UntiedReq) (*Cipher, error) Cleared(context.Context, *Cipher) (*Clear, error) }
AuthorizationServer is the server API for Authorization service.
var (
AuthServer AuthorizationServer
)
func NewAuthServer ¶
func NewAuthServer() AuthorizationServer
type Bios ¶
type Bios struct { Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Bios) Descriptor ¶
func (*Bios) ProtoMessage ¶
func (*Bios) ProtoMessage()
func (*Bios) XXX_DiscardUnknown ¶
func (m *Bios) XXX_DiscardUnknown()
func (*Bios) XXX_Unmarshal ¶
type Board ¶
type Board struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"` Serial string `protobuf:"bytes,3,opt,name=serial,proto3" json:"serial,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
主板
func (*Board) Descriptor ¶
func (*Board) ProtoMessage ¶
func (*Board) ProtoMessage()
func (*Board) XXX_DiscardUnknown ¶
func (m *Board) XXX_DiscardUnknown()
func (*Board) XXX_Marshal ¶
func (*Board) XXX_Unmarshal ¶
type Cipher ¶
type Cipher struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cipher) Descriptor ¶
func (*Cipher) ProtoMessage ¶
func (*Cipher) ProtoMessage()
func (*Cipher) XXX_DiscardUnknown ¶
func (m *Cipher) XXX_DiscardUnknown()
func (*Cipher) XXX_Marshal ¶
func (*Cipher) XXX_Unmarshal ¶
type Clear ¶
type Clear struct { Lic *License `protobuf:"bytes,1,opt,name=lic,proto3" json:"lic,omitempty"` Cipher *Cipher `protobuf:"bytes,2,opt,name=cipher,proto3" json:"cipher,omitempty"` Date int64 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Clear) Descriptor ¶
func (*Clear) ProtoMessage ¶
func (*Clear) ProtoMessage()
func (*Clear) XXX_DiscardUnknown ¶
func (m *Clear) XXX_DiscardUnknown()
func (*Clear) XXX_Marshal ¶
func (*Clear) XXX_Unmarshal ¶
type Config ¶
type Config struct { GRpcServerCrt string GRpcServerKey string GRpcClientCrt string GRpcClientKey string GRpcCaCrt string GRpcUser string GRpcPwd string GRpcServerName string GRpcListen string // encrypt decrypt func // odin & edda LicenseEncrypt CryptFunc // license 加解密 LicenseDecrypt CryptFunc SerialEncrypt CryptFunc // 序列号 加解密 SerialDecrypt CryptFunc UntiedEncrypt CryptFunc // 解绑码 加解密 UntiedDecrypt CryptFunc TokenHash HashFunc }
var (
Cfg *Config
)
func (Config) CheckValue ¶
type Cpu ¶
type Cpu struct { Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` Speed uint32 `protobuf:"varint,3,opt,name=speed,proto3" json:"speed,omitempty"` Cache uint32 `protobuf:"varint,4,opt,name=cache,proto3" json:"cache,omitempty"` Cpus uint32 `protobuf:"varint,5,opt,name=cpus,proto3" json:"cpus,omitempty"` Cores uint32 `protobuf:"varint,6,opt,name=cores,proto3" json:"cores,omitempty"` Threads uint32 `protobuf:"varint,7,opt,name=threads,proto3" json:"threads,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cpu) Descriptor ¶
func (*Cpu) GetThreads ¶
func (*Cpu) ProtoMessage ¶
func (*Cpu) ProtoMessage()
func (*Cpu) XXX_DiscardUnknown ¶
func (m *Cpu) XXX_DiscardUnknown()
func (*Cpu) XXX_Unmarshal ¶
type Hardware ¶
type Hardware struct { Host *Host `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Product *Product `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"` Board *Board `protobuf:"bytes,3,opt,name=board,proto3" json:"board,omitempty"` Bios *Bios `protobuf:"bytes,4,opt,name=bios,proto3" json:"bios,omitempty"` Cpu *Cpu `protobuf:"bytes,5,opt,name=cpu,proto3" json:"cpu,omitempty"` Mem *Mem `protobuf:"bytes,6,opt,name=mem,proto3" json:"mem,omitempty"` Networks []*Network `protobuf:"bytes,7,rep,name=networks,proto3" json:"networks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Hardware) Descriptor ¶
func (*Hardware) GetNetworks ¶
func (*Hardware) GetProduct ¶
func (*Hardware) ProtoMessage ¶
func (*Hardware) ProtoMessage()
func (*Hardware) XXX_DiscardUnknown ¶
func (m *Hardware) XXX_DiscardUnknown()
func (*Hardware) XXX_Marshal ¶
func (*Hardware) XXX_Unmarshal ¶
type Host ¶
type Host struct { Machineid string `protobuf:"bytes,1,opt,name=machineid,proto3" json:"machineid,omitempty"` Hypervisor string `protobuf:"bytes,2,opt,name=hypervisor,proto3" json:"hypervisor,omitempty"` Architecture string `protobuf:"bytes,3,opt,name=architecture,proto3" json:"architecture,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Host) Descriptor ¶
func (*Host) GetArchitecture ¶
func (*Host) GetHypervisor ¶
func (*Host) GetMachineid ¶
func (*Host) ProtoMessage ¶
func (*Host) ProtoMessage()
func (*Host) XXX_DiscardUnknown ¶
func (m *Host) XXX_DiscardUnknown()
func (*Host) XXX_Unmarshal ¶
type License ¶
type License struct { Lid string `protobuf:"bytes,1,opt,name=lid,proto3" json:"lid,omitempty"` Sid string `protobuf:"bytes,2,opt,name=sid,proto3" json:"sid,omitempty"` Devices map[string]string `` /* 155-byte string literal not displayed */ Generate int64 `protobuf:"varint,4,opt,name=generate,proto3" json:"generate,omitempty"` Update int64 `protobuf:"varint,5,opt,name=update,proto3" json:"update,omitempty"` LifeCycle int64 `protobuf:"varint,6,opt,name=lifeCycle,proto3" json:"lifeCycle,omitempty"` Apps map[string]*App `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*License) Descriptor ¶
func (*License) GetDevices ¶
func (*License) GetGenerate ¶
func (*License) GetLifeCycle ¶
func (*License) ProtoMessage ¶
func (*License) ProtoMessage()
func (*License) XXX_DiscardUnknown ¶
func (m *License) XXX_DiscardUnknown()
func (*License) XXX_Marshal ¶
func (*License) XXX_Unmarshal ¶
type Mem ¶
type Mem struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Speed uint32 `protobuf:"varint,2,opt,name=speed,proto3" json:"speed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Mem) Descriptor ¶
func (*Mem) ProtoMessage ¶
func (*Mem) ProtoMessage()
func (*Mem) XXX_DiscardUnknown ¶
func (m *Mem) XXX_DiscardUnknown()
func (*Mem) XXX_Unmarshal ¶
type Network ¶
type Network struct { Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"` Macaddress string `protobuf:"bytes,2,opt,name=macaddress,proto3" json:"macaddress,omitempty"` Speed uint32 `protobuf:"varint,3,opt,name=speed,proto3" json:"speed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Network) Descriptor ¶
func (*Network) GetMacaddress ¶
func (*Network) ProtoMessage ¶
func (*Network) ProtoMessage()
func (*Network) XXX_DiscardUnknown ¶
func (m *Network) XXX_DiscardUnknown()
func (*Network) XXX_Marshal ¶
func (*Network) XXX_Unmarshal ¶
type Node ¶
type Node struct { Attrs *Attrs `protobuf:"bytes,1,opt,name=attrs,proto3" json:"attrs,omitempty"` Hardware *Hardware `protobuf:"bytes,2,opt,name=hardware,proto3" json:"hardware,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Node) Descriptor ¶
func (*Node) GetHardware ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type Product ¶
type Product struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Vendor string `protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty"` Serial string `protobuf:"bytes,3,opt,name=serial,proto3" json:"serial,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Product) Descriptor ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) XXX_DiscardUnknown ¶
func (m *Product) XXX_DiscardUnknown()
func (*Product) XXX_Marshal ¶
func (*Product) XXX_Unmarshal ¶
type SerialNum ¶
type SerialNum struct { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` Nodes map[string]*Node `` /* 151-byte string literal not displayed */ Date int64 `protobuf:"varint,3,opt,name=date,proto3" json:"date,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SerialNum) Descriptor ¶
func (*SerialNum) ProtoMessage ¶
func (*SerialNum) ProtoMessage()
func (*SerialNum) XXX_DiscardUnknown ¶
func (m *SerialNum) XXX_DiscardUnknown()
func (*SerialNum) XXX_Marshal ¶
func (*SerialNum) XXX_Unmarshal ¶
type UntiedReq ¶
type UntiedReq struct { App string `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UntiedReq) Descriptor ¶
func (*UntiedReq) ProtoMessage ¶
func (*UntiedReq) ProtoMessage()
func (*UntiedReq) XXX_DiscardUnknown ¶
func (m *UntiedReq) XXX_DiscardUnknown()
func (*UntiedReq) XXX_Marshal ¶
func (*UntiedReq) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.