cert

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cert is a generated protocol buffer package.

It is generated from these files:

proto.proto

It has these top-level messages:

GetCertificateRequest
GetCertificateResponse
Authentication
ShareSecretAuthentication
LicenseInfo
StoredLicense
AccountLicenses
PutLicenseInfoRequest
PutLicenseInfoResponse
LicenseStatsRequest
LicenseStatsResponse
MaintainStatsRequest
MaintainStatsResponse

Package cert is a generated protocol buffer package.

It is generated from these files:

proto.proto

It has these top-level messages:

GetCertificateRequest
GetCertificateResponse
Authentication
ShareSecretAuthentication
LicenseInfo
StoredLicense
AccountLicenses
PutLicenseInfoRequest
PutLicenseInfoResponse
LicenseStatsRequest
LicenseStatsResponse
MaintainStatsRequest
MaintainStatsResponse

Index

Constants

This section is empty.

Variables

View Source
var AuthenticationType_name = map[int32]string{
	0: "No",
	1: "Secret",
	2: "License",
}
View Source
var AuthenticationType_value = map[string]int32{
	"No":      0,
	"Secret":  1,
	"License": 2,
}

Functions

func RegisterCertCAServiceHandler

func RegisterCertCAServiceHandler(s server.Server, hdlr CertCAServiceHandler, opts ...server.HandlerOption)

func RegisterLicensingServiceHandler

func RegisterLicensingServiceHandler(s server.Server, hdlr LicensingServiceHandler, opts ...server.HandlerOption)

Types

type AccountLicenses

type AccountLicenses struct {
	AccountName string                    `protobuf:"bytes,1,opt,name=AccountName" json:"AccountName,omitempty"`
	Licenses    map[string]*StoredLicense `` /* 136-byte string literal not displayed */
}

func (*AccountLicenses) Descriptor

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

func (*AccountLicenses) GetAccountName

func (m *AccountLicenses) GetAccountName() string

func (*AccountLicenses) GetLicenses

func (m *AccountLicenses) GetLicenses() map[string]*StoredLicense

func (*AccountLicenses) ProtoMessage

func (*AccountLicenses) ProtoMessage()

func (*AccountLicenses) Reset

func (m *AccountLicenses) Reset()

func (*AccountLicenses) String

func (m *AccountLicenses) String() string

type Authentication

type Authentication struct {
	Type     AuthenticationType `protobuf:"varint,1,opt,name=type,enum=cert.AuthenticationType" json:"type,omitempty"`
	AuthData []byte             `protobuf:"bytes,2,opt,name=authData,proto3" json:"authData,omitempty"`
}

func (*Authentication) Descriptor

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

func (*Authentication) GetAuthData

func (m *Authentication) GetAuthData() []byte

func (*Authentication) GetType

func (m *Authentication) GetType() AuthenticationType

func (*Authentication) ProtoMessage

func (*Authentication) ProtoMessage()

func (*Authentication) Reset

func (m *Authentication) Reset()

func (*Authentication) String

func (m *Authentication) String() string

type AuthenticationType

type AuthenticationType int32
const (
	AuthenticationType_No      AuthenticationType = 0
	AuthenticationType_Secret  AuthenticationType = 1
	AuthenticationType_License AuthenticationType = 2
)

func (AuthenticationType) EnumDescriptor

func (AuthenticationType) EnumDescriptor() ([]byte, []int)

func (AuthenticationType) String

func (x AuthenticationType) String() string

type CertCAService

type CertCAService struct {
	CertCAServiceHandler
}

func (*CertCAService) GetCertificate

type CertCAServiceClient

type CertCAServiceClient interface {
	GetCertificate(ctx context.Context, in *GetCertificateRequest, opts ...client.CallOption) (*GetCertificateResponse, error)
}

func NewCertCAServiceClient

func NewCertCAServiceClient(serviceName string, c client.Client) CertCAServiceClient

type CertCAServiceHandler

type CertCAServiceHandler interface {
	GetCertificate(context.Context, *GetCertificateRequest, *GetCertificateResponse) error
}

type GetCertificateRequest

type GetCertificateRequest struct {
	ServiceName  string               `protobuf:"bytes,1,opt,name=serviceName" json:"serviceName,omitempty"`
	PublicKeyPEM []byte               `protobuf:"bytes,2,opt,name=publicKeyPEM,proto3" json:"publicKeyPEM,omitempty"`
	IPs          []string             `protobuf:"bytes,3,rep,name=IPs" json:"IPs,omitempty"`
	Domains      []string             `protobuf:"bytes,4,rep,name=domains" json:"domains,omitempty"`
	Auth         *google_protobuf.Any `protobuf:"bytes,5,opt,name=auth" json:"auth,omitempty"`
}

func (*GetCertificateRequest) Descriptor

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

func (*GetCertificateRequest) GetAuth

func (*GetCertificateRequest) GetDomains

func (m *GetCertificateRequest) GetDomains() []string

func (*GetCertificateRequest) GetIPs

func (m *GetCertificateRequest) GetIPs() []string

func (*GetCertificateRequest) GetPublicKeyPEM

func (m *GetCertificateRequest) GetPublicKeyPEM() []byte

func (*GetCertificateRequest) GetServiceName

func (m *GetCertificateRequest) GetServiceName() string

func (*GetCertificateRequest) ProtoMessage

func (*GetCertificateRequest) ProtoMessage()

func (*GetCertificateRequest) Reset

func (m *GetCertificateRequest) Reset()

func (*GetCertificateRequest) String

func (m *GetCertificateRequest) String() string

type GetCertificateResponse

type GetCertificateResponse struct {
	CertBytes []byte `protobuf:"bytes,1,opt,name=certBytes,proto3" json:"certBytes,omitempty"`
}

func (*GetCertificateResponse) Descriptor

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

func (*GetCertificateResponse) GetCertBytes

func (m *GetCertificateResponse) GetCertBytes() []byte

func (*GetCertificateResponse) ProtoMessage

func (*GetCertificateResponse) ProtoMessage()

func (*GetCertificateResponse) Reset

func (m *GetCertificateResponse) Reset()

func (*GetCertificateResponse) String

func (m *GetCertificateResponse) String() string

type LicenseInfo

type LicenseInfo struct {
	Id           string            `protobuf:"bytes,1,opt,name=Id" json:"Id,omitempty"`
	AccountName  string            `protobuf:"bytes,2,opt,name=AccountName" json:"AccountName,omitempty"`
	ServerDomain string            `protobuf:"bytes,3,opt,name=ServerDomain" json:"ServerDomain,omitempty"`
	IssueTime    int32             `protobuf:"varint,4,opt,name=IssueTime" json:"IssueTime,omitempty"`
	ExpireTime   int32             `protobuf:"varint,5,opt,name=ExpireTime" json:"ExpireTime,omitempty"`
	MaxUsers     int64             `protobuf:"varint,6,opt,name=MaxUsers" json:"MaxUsers,omitempty"`
	MaxPeers     int64             `protobuf:"varint,7,opt,name=MaxPeers" json:"MaxPeers,omitempty"`
	Features     map[string]string `` /* 136-byte string literal not displayed */
}

func (*LicenseInfo) Descriptor

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

func (*LicenseInfo) GetAccountName

func (m *LicenseInfo) GetAccountName() string

func (*LicenseInfo) GetExpireTime

func (m *LicenseInfo) GetExpireTime() int32

func (*LicenseInfo) GetFeatures

func (m *LicenseInfo) GetFeatures() map[string]string

func (*LicenseInfo) GetId

func (m *LicenseInfo) GetId() string

func (*LicenseInfo) GetIssueTime

func (m *LicenseInfo) GetIssueTime() int32

func (*LicenseInfo) GetMaxPeers

func (m *LicenseInfo) GetMaxPeers() int64

func (*LicenseInfo) GetMaxUsers

func (m *LicenseInfo) GetMaxUsers() int64

func (*LicenseInfo) GetServerDomain

func (m *LicenseInfo) GetServerDomain() string

func (*LicenseInfo) ProtoMessage

func (*LicenseInfo) ProtoMessage()

func (*LicenseInfo) Reset

func (m *LicenseInfo) Reset()

func (*LicenseInfo) String

func (m *LicenseInfo) String() string

type LicenseStatsRequest

type LicenseStatsRequest struct {
	ForceRefresh bool `protobuf:"varint,1,opt,name=ForceRefresh" json:"ForceRefresh,omitempty"`
}

func (*LicenseStatsRequest) Descriptor

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

func (*LicenseStatsRequest) GetForceRefresh

func (m *LicenseStatsRequest) GetForceRefresh() bool

func (*LicenseStatsRequest) ProtoMessage

func (*LicenseStatsRequest) ProtoMessage()

func (*LicenseStatsRequest) Reset

func (m *LicenseStatsRequest) Reset()

func (*LicenseStatsRequest) String

func (m *LicenseStatsRequest) String() string

type LicenseStatsResponse

type LicenseStatsResponse struct {
	License     *LicenseInfo `protobuf:"bytes,1,opt,name=License" json:"License,omitempty"`
	ActiveUsers int64        `protobuf:"varint,2,opt,name=ActiveUsers" json:"ActiveUsers,omitempty"`
	ActivePeers int64        `protobuf:"varint,3,opt,name=ActivePeers" json:"ActivePeers,omitempty"`
}

func (*LicenseStatsResponse) Descriptor

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

func (*LicenseStatsResponse) GetActivePeers

func (m *LicenseStatsResponse) GetActivePeers() int64

func (*LicenseStatsResponse) GetActiveUsers

func (m *LicenseStatsResponse) GetActiveUsers() int64

func (*LicenseStatsResponse) GetLicense

func (m *LicenseStatsResponse) GetLicense() *LicenseInfo

func (*LicenseStatsResponse) ProtoMessage

func (*LicenseStatsResponse) ProtoMessage()

func (*LicenseStatsResponse) Reset

func (m *LicenseStatsResponse) Reset()

func (*LicenseStatsResponse) String

func (m *LicenseStatsResponse) String() string

type LicensingService

type LicensingService struct {
	LicensingServiceHandler
}

func (*LicensingService) LicenseStats

func (*LicensingService) MaintainStats

func (*LicensingService) PutLicenseInfo

type LicensingServiceClient

type LicensingServiceClient interface {
	PutLicenseInfo(ctx context.Context, in *PutLicenseInfoRequest, opts ...client.CallOption) (*PutLicenseInfoResponse, error)
	LicenseStats(ctx context.Context, in *LicenseStatsRequest, opts ...client.CallOption) (*LicenseStatsResponse, error)
	MaintainStats(ctx context.Context, in *MaintainStatsRequest, opts ...client.CallOption) (*MaintainStatsResponse, error)
}

func NewLicensingServiceClient

func NewLicensingServiceClient(serviceName string, c client.Client) LicensingServiceClient

type MaintainStatsRequest

type MaintainStatsRequest struct {
	ActiveUsers int64 `protobuf:"varint,2,opt,name=ActiveUsers" json:"ActiveUsers,omitempty"`
}

func (*MaintainStatsRequest) Descriptor

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

func (*MaintainStatsRequest) GetActiveUsers

func (m *MaintainStatsRequest) GetActiveUsers() int64

func (*MaintainStatsRequest) ProtoMessage

func (*MaintainStatsRequest) ProtoMessage()

func (*MaintainStatsRequest) Reset

func (m *MaintainStatsRequest) Reset()

func (*MaintainStatsRequest) String

func (m *MaintainStatsRequest) String() string

type MaintainStatsResponse

type MaintainStatsResponse struct {
}

func (*MaintainStatsResponse) Descriptor

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

func (*MaintainStatsResponse) ProtoMessage

func (*MaintainStatsResponse) ProtoMessage()

func (*MaintainStatsResponse) Reset

func (m *MaintainStatsResponse) Reset()

func (*MaintainStatsResponse) String

func (m *MaintainStatsResponse) String() string

type PutLicenseInfoRequest

type PutLicenseInfoRequest struct {
	License *LicenseInfo `protobuf:"bytes,1,opt,name=License" json:"License,omitempty"`
}

func (*PutLicenseInfoRequest) Descriptor

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

func (*PutLicenseInfoRequest) GetLicense

func (m *PutLicenseInfoRequest) GetLicense() *LicenseInfo

func (*PutLicenseInfoRequest) ProtoMessage

func (*PutLicenseInfoRequest) ProtoMessage()

func (*PutLicenseInfoRequest) Reset

func (m *PutLicenseInfoRequest) Reset()

func (*PutLicenseInfoRequest) String

func (m *PutLicenseInfoRequest) String() string

type PutLicenseInfoResponse

type PutLicenseInfoResponse struct {
	Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}

func (*PutLicenseInfoResponse) Descriptor

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

func (*PutLicenseInfoResponse) GetSuccess

func (m *PutLicenseInfoResponse) GetSuccess() bool

func (*PutLicenseInfoResponse) ProtoMessage

func (*PutLicenseInfoResponse) ProtoMessage()

func (*PutLicenseInfoResponse) Reset

func (m *PutLicenseInfoResponse) Reset()

func (*PutLicenseInfoResponse) String

func (m *PutLicenseInfoResponse) String() string

type ShareSecretAuthentication

type ShareSecretAuthentication struct {
}

func (*ShareSecretAuthentication) Descriptor

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

func (*ShareSecretAuthentication) ProtoMessage

func (*ShareSecretAuthentication) ProtoMessage()

func (*ShareSecretAuthentication) Reset

func (m *ShareSecretAuthentication) Reset()

func (*ShareSecretAuthentication) String

func (m *ShareSecretAuthentication) String() string

type StoredLicense

type StoredLicense struct {
	License      *LicenseInfo `protobuf:"bytes,1,opt,name=License" json:"License,omitempty"`
	KeyId        string       `protobuf:"bytes,2,opt,name=KeyId" json:"KeyId,omitempty"`
	SignedOutput string       `protobuf:"bytes,3,opt,name=SignedOutput" json:"SignedOutput,omitempty"`
}

func (*StoredLicense) Descriptor

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

func (*StoredLicense) GetKeyId

func (m *StoredLicense) GetKeyId() string

func (*StoredLicense) GetLicense

func (m *StoredLicense) GetLicense() *LicenseInfo

func (*StoredLicense) GetSignedOutput

func (m *StoredLicense) GetSignedOutput() string

func (*StoredLicense) ProtoMessage

func (*StoredLicense) ProtoMessage()

func (*StoredLicense) Reset

func (m *StoredLicense) Reset()

func (*StoredLicense) String

func (m *StoredLicense) String() string

Jump to

Keyboard shortcuts

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