eddaX

package
v0.0.0-...-48d8a3d Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AssetPath string
	User      = "admin"

	ListenAddr string
)

Functions

func AppAPI

func AppAPI(c *gin.Context)

应用

func AuthGRpcServer

func AuthGRpcServer() (*grpc.Server, error)

func DeleteApp

func DeleteApp(i int)

func GenAuth

func GenAuth(body io.Reader) (code string, err error)

func InsertApp

func InsertApp(body io.Reader) (id string, err error)

func LicenseAPI

func LicenseAPI(c *gin.Context)

func Main

func Main()

func NewTlsListen

func NewTlsListen(crt, key, ca []byte, addr string) (net.Listener, error)

func RegisterAuthorizationServer

func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer)

func RestoreAsset

func RestoreAsset()

释放静态资源

func Run

func Run(addr string)

func ServerAPI

func ServerAPI(c *gin.Context)

func Start

func Start(cfg *Config)

func UntiedApi

func UntiedApi(c *gin.Context)

func UpdateApp

func UpdateApp(i int, body io.Reader)

Types

type APP

type APP struct {
	ID int `bson:"id" json:"id"`
	App
}

func FindAllApp

func FindAllApp() (instances []*APP)

func FindOneApp

func FindOneApp(id int) (instance *APP)

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) Descriptor() ([]byte, []int)

func (*App) GetAttrs

func (m *App) GetAttrs() []*Attr

func (*App) GetExpire

func (m *App) GetExpire() int64

func (*App) GetInstance

func (m *App) GetInstance() int64

func (*App) GetKey

func (m *App) GetKey() string

func (*App) GetMaxLifeCycle

func (m *App) GetMaxLifeCycle() int64

func (*App) GetName

func (m *App) GetName() string

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) Reset

func (m *App) Reset()

func (*App) String

func (m *App) String() string

func (*App) XXX_DiscardUnknown

func (m *App) XXX_DiscardUnknown()

func (*App) XXX_Marshal

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

func (*App) XXX_Merge

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

func (*App) XXX_Size

func (m *App) XXX_Size() int

func (*App) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Attr) GetKey

func (m *Attr) GetKey() string

func (*Attr) GetName

func (m *Attr) GetName() string

func (*Attr) GetValue

func (m *Attr) GetValue() int64

func (*Attr) ProtoMessage

func (*Attr) ProtoMessage()

func (*Attr) Reset

func (m *Attr) Reset()

func (*Attr) String

func (m *Attr) String() string

func (*Attr) XXX_DiscardUnknown

func (m *Attr) XXX_DiscardUnknown()

func (*Attr) XXX_Marshal

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

func (*Attr) XXX_Merge

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

func (*Attr) XXX_Size

func (m *Attr) XXX_Size() int

func (*Attr) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Attrs) GetAddr

func (m *Attrs) GetAddr() string

func (*Attrs) GetHwmd5

func (m *Attrs) GetHwmd5() string

func (*Attrs) GetName

func (m *Attrs) GetName() string

func (*Attrs) GetNow

func (m *Attrs) GetNow() int64

func (*Attrs) GetStart

func (m *Attrs) GetStart() int64

func (*Attrs) ProtoMessage

func (*Attrs) ProtoMessage()

func (*Attrs) Reset

func (m *Attrs) Reset()

func (*Attrs) String

func (m *Attrs) String() string

func (*Attrs) XXX_DiscardUnknown

func (m *Attrs) XXX_DiscardUnknown()

func (*Attrs) XXX_Marshal

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

func (*Attrs) XXX_Merge

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

func (*Attrs) XXX_Size

func (m *Attrs) XXX_Size() int

func (*Attrs) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*AuthReq) GetApps

func (m *AuthReq) GetApps() map[string]*App

func (*AuthReq) GetCipher

func (m *AuthReq) GetCipher() *Cipher

func (*AuthReq) ProtoMessage

func (*AuthReq) ProtoMessage()

func (*AuthReq) Reset

func (m *AuthReq) Reset()

func (*AuthReq) String

func (m *AuthReq) String() string

func (*AuthReq) XXX_DiscardUnknown

func (m *AuthReq) XXX_DiscardUnknown()

func (*AuthReq) XXX_Marshal

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

func (*AuthReq) XXX_Merge

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

func (*AuthReq) XXX_Size

func (m *AuthReq) XXX_Size() int

func (*AuthReq) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*AuthResp) GetCipher

func (m *AuthResp) GetCipher() *Cipher

func (*AuthResp) GetLic

func (m *AuthResp) GetLic() *License

func (*AuthResp) ProtoMessage

func (*AuthResp) ProtoMessage()

func (*AuthResp) Reset

func (m *AuthResp) Reset()

func (*AuthResp) String

func (m *AuthResp) String() string

func (*AuthResp) XXX_DiscardUnknown

func (m *AuthResp) XXX_DiscardUnknown()

func (*AuthResp) XXX_Marshal

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

func (*AuthResp) XXX_Merge

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

func (*AuthResp) XXX_Size

func (m *AuthResp) XXX_Size() int

func (*AuthResp) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Bios) GetVendor

func (m *Bios) GetVendor() string

func (*Bios) ProtoMessage

func (*Bios) ProtoMessage()

func (*Bios) Reset

func (m *Bios) Reset()

func (*Bios) String

func (m *Bios) String() string

func (*Bios) XXX_DiscardUnknown

func (m *Bios) XXX_DiscardUnknown()

func (*Bios) XXX_Marshal

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

func (*Bios) XXX_Merge

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

func (*Bios) XXX_Size

func (m *Bios) XXX_Size() int

func (*Bios) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Board) GetName

func (m *Board) GetName() string

func (*Board) GetSerial

func (m *Board) GetSerial() string

func (*Board) GetVendor

func (m *Board) GetVendor() string

func (*Board) ProtoMessage

func (*Board) ProtoMessage()

func (*Board) Reset

func (m *Board) Reset()

func (*Board) String

func (m *Board) String() string

func (*Board) XXX_DiscardUnknown

func (m *Board) XXX_DiscardUnknown()

func (*Board) XXX_Marshal

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

func (*Board) XXX_Merge

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

func (*Board) XXX_Size

func (m *Board) XXX_Size() int

func (*Board) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Cipher) GetCode

func (m *Cipher) GetCode() string

func (*Cipher) ProtoMessage

func (*Cipher) ProtoMessage()

func (*Cipher) Reset

func (m *Cipher) Reset()

func (*Cipher) String

func (m *Cipher) String() string

func (*Cipher) XXX_DiscardUnknown

func (m *Cipher) XXX_DiscardUnknown()

func (*Cipher) XXX_Marshal

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

func (*Cipher) XXX_Merge

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

func (*Cipher) XXX_Size

func (m *Cipher) XXX_Size() int

func (*Cipher) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Clear) GetCipher

func (m *Clear) GetCipher() *Cipher

func (*Clear) GetDate

func (m *Clear) GetDate() int64

func (*Clear) GetLic

func (m *Clear) GetLic() *License

func (*Clear) ProtoMessage

func (*Clear) ProtoMessage()

func (*Clear) Reset

func (m *Clear) Reset()

func (*Clear) String

func (m *Clear) String() string

func (*Clear) XXX_DiscardUnknown

func (m *Clear) XXX_DiscardUnknown()

func (*Clear) XXX_Marshal

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

func (*Clear) XXX_Merge

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

func (*Clear) XXX_Size

func (m *Clear) XXX_Size() int

func (*Clear) XXX_Unmarshal

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

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 NewConfig

func NewConfig() *Config

func (Config) CheckValue

func (cfg Config) CheckValue() (err error)

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) Descriptor() ([]byte, []int)

func (*Cpu) GetCache

func (m *Cpu) GetCache() uint32

func (*Cpu) GetCores

func (m *Cpu) GetCores() uint32

func (*Cpu) GetCpus

func (m *Cpu) GetCpus() uint32

func (*Cpu) GetModel

func (m *Cpu) GetModel() string

func (*Cpu) GetSpeed

func (m *Cpu) GetSpeed() uint32

func (*Cpu) GetThreads

func (m *Cpu) GetThreads() uint32

func (*Cpu) GetVendor

func (m *Cpu) GetVendor() string

func (*Cpu) ProtoMessage

func (*Cpu) ProtoMessage()

func (*Cpu) Reset

func (m *Cpu) Reset()

func (*Cpu) String

func (m *Cpu) String() string

func (*Cpu) XXX_DiscardUnknown

func (m *Cpu) XXX_DiscardUnknown()

func (*Cpu) XXX_Marshal

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

func (*Cpu) XXX_Merge

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

func (*Cpu) XXX_Size

func (m *Cpu) XXX_Size() int

func (*Cpu) XXX_Unmarshal

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

type CryptFunc

type CryptFunc func(src []byte) ([]byte, error)

加解密方法

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) Descriptor() ([]byte, []int)

func (*Hardware) GetBios

func (m *Hardware) GetBios() *Bios

func (*Hardware) GetBoard

func (m *Hardware) GetBoard() *Board

func (*Hardware) GetCpu

func (m *Hardware) GetCpu() *Cpu

func (*Hardware) GetHost

func (m *Hardware) GetHost() *Host

func (*Hardware) GetMem

func (m *Hardware) GetMem() *Mem

func (*Hardware) GetNetworks

func (m *Hardware) GetNetworks() []*Network

func (*Hardware) GetProduct

func (m *Hardware) GetProduct() *Product

func (*Hardware) ProtoMessage

func (*Hardware) ProtoMessage()

func (*Hardware) Reset

func (m *Hardware) Reset()

func (*Hardware) String

func (m *Hardware) String() string

func (*Hardware) XXX_DiscardUnknown

func (m *Hardware) XXX_DiscardUnknown()

func (*Hardware) XXX_Marshal

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

func (*Hardware) XXX_Merge

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

func (*Hardware) XXX_Size

func (m *Hardware) XXX_Size() int

func (*Hardware) XXX_Unmarshal

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

type HashFunc

type HashFunc func(byt []byte) string

hash 方法

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) Descriptor() ([]byte, []int)

func (*Host) GetArchitecture

func (m *Host) GetArchitecture() string

func (*Host) GetHypervisor

func (m *Host) GetHypervisor() string

func (*Host) GetMachineid

func (m *Host) GetMachineid() string

func (*Host) ProtoMessage

func (*Host) ProtoMessage()

func (*Host) Reset

func (m *Host) Reset()

func (*Host) String

func (m *Host) String() string

func (*Host) XXX_DiscardUnknown

func (m *Host) XXX_DiscardUnknown()

func (*Host) XXX_Marshal

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

func (*Host) XXX_Merge

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

func (*Host) XXX_Size

func (m *Host) XXX_Size() int

func (*Host) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*License) GetApps

func (m *License) GetApps() map[string]*App

func (*License) GetDevices

func (m *License) GetDevices() map[string]string

func (*License) GetGenerate

func (m *License) GetGenerate() int64

func (*License) GetLid

func (m *License) GetLid() string

func (*License) GetLifeCycle

func (m *License) GetLifeCycle() int64

func (*License) GetSid

func (m *License) GetSid() string

func (*License) GetUpdate

func (m *License) GetUpdate() int64

func (*License) ProtoMessage

func (*License) ProtoMessage()

func (*License) Reset

func (m *License) Reset()

func (*License) String

func (m *License) String() string

func (*License) XXX_DiscardUnknown

func (m *License) XXX_DiscardUnknown()

func (*License) XXX_Marshal

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

func (*License) XXX_Merge

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

func (*License) XXX_Size

func (m *License) XXX_Size() int

func (*License) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Mem) GetSpeed

func (m *Mem) GetSpeed() uint32

func (*Mem) GetType

func (m *Mem) GetType() string

func (*Mem) ProtoMessage

func (*Mem) ProtoMessage()

func (*Mem) Reset

func (m *Mem) Reset()

func (*Mem) String

func (m *Mem) String() string

func (*Mem) XXX_DiscardUnknown

func (m *Mem) XXX_DiscardUnknown()

func (*Mem) XXX_Marshal

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

func (*Mem) XXX_Merge

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

func (*Mem) XXX_Size

func (m *Mem) XXX_Size() int

func (*Mem) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Network) GetDriver

func (m *Network) GetDriver() string

func (*Network) GetMacaddress

func (m *Network) GetMacaddress() string

func (*Network) GetSpeed

func (m *Network) GetSpeed() uint32

func (*Network) ProtoMessage

func (*Network) ProtoMessage()

func (*Network) Reset

func (m *Network) Reset()

func (*Network) String

func (m *Network) String() string

func (*Network) XXX_DiscardUnknown

func (m *Network) XXX_DiscardUnknown()

func (*Network) XXX_Marshal

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

func (*Network) XXX_Merge

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

func (*Network) XXX_Size

func (m *Network) XXX_Size() int

func (*Network) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Node) GetAttrs

func (m *Node) GetAttrs() *Attrs

func (*Node) GetHardware

func (m *Node) GetHardware() *Hardware

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

func (*Node) XXX_DiscardUnknown

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal

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

func (*Node) XXX_Merge

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

func (*Node) XXX_Size

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Product) GetName

func (m *Product) GetName() string

func (*Product) GetSerial

func (m *Product) GetSerial() string

func (*Product) GetVendor

func (m *Product) GetVendor() string

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) Reset

func (m *Product) Reset()

func (*Product) String

func (m *Product) String() string

func (*Product) XXX_DiscardUnknown

func (m *Product) XXX_DiscardUnknown()

func (*Product) XXX_Marshal

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

func (*Product) XXX_Merge

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

func (*Product) XXX_Size

func (m *Product) XXX_Size() int

func (*Product) XXX_Unmarshal

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

type Result

type Result struct {
	SerialNum string          `json:"serial_num"`
	Apps      map[string]*App `json:"apps"`
}

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) Descriptor() ([]byte, []int)

func (*SerialNum) GetDate

func (m *SerialNum) GetDate() int64

func (*SerialNum) GetNodes

func (m *SerialNum) GetNodes() map[string]*Node

func (*SerialNum) GetSid

func (m *SerialNum) GetSid() string

func (*SerialNum) ProtoMessage

func (*SerialNum) ProtoMessage()

func (*SerialNum) Reset

func (m *SerialNum) Reset()

func (*SerialNum) String

func (m *SerialNum) String() string

func (*SerialNum) XXX_DiscardUnknown

func (m *SerialNum) XXX_DiscardUnknown()

func (*SerialNum) XXX_Marshal

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

func (*SerialNum) XXX_Merge

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

func (*SerialNum) XXX_Size

func (m *SerialNum) XXX_Size() int

func (*SerialNum) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*UntiedReq) GetApp

func (m *UntiedReq) GetApp() string

func (*UntiedReq) GetId

func (m *UntiedReq) GetId() string

func (*UntiedReq) ProtoMessage

func (*UntiedReq) ProtoMessage()

func (*UntiedReq) Reset

func (m *UntiedReq) Reset()

func (*UntiedReq) String

func (m *UntiedReq) String() string

func (*UntiedReq) XXX_DiscardUnknown

func (m *UntiedReq) XXX_DiscardUnknown()

func (*UntiedReq) XXX_Marshal

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

func (*UntiedReq) XXX_Merge

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

func (*UntiedReq) XXX_Size

func (m *UntiedReq) XXX_Size() int

func (*UntiedReq) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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