license_control

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLicenseControlServer

func RegisterLicenseControlServer(s *grpc.Server, srv LicenseControlServer)

Types

type Capability

type Capability struct {
	Name                 string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"`
	Measure              string               `protobuf:"bytes,2,opt,name=measure,proto3" json:"measure,omitempty" toml:"measure,omitempty" mapstructure:"measure,omitempty"`
	Limit                int64                `protobuf:"zigzag64,3,opt,name=limit,proto3" json:"limit,omitempty" toml:"limit,omitempty" mapstructure:"limit,omitempty"`
	Start                *timestamp.Timestamp `protobuf:"bytes,4,opt,name=start,proto3" json:"start,omitempty" toml:"start,omitempty" mapstructure:"start,omitempty"`
	End                  *timestamp.Timestamp `protobuf:"bytes,5,opt,name=end,proto3" json:"end,omitempty" toml:"end,omitempty" mapstructure:"end,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte               `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32                `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*Capability) Descriptor

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

func (*Capability) GetEnd

func (m *Capability) GetEnd() *timestamp.Timestamp

func (*Capability) GetLimit

func (m *Capability) GetLimit() int64

func (*Capability) GetMeasure

func (m *Capability) GetMeasure() string

func (*Capability) GetName

func (m *Capability) GetName() string

func (*Capability) GetStart

func (m *Capability) GetStart() *timestamp.Timestamp

func (*Capability) ProtoMessage

func (*Capability) ProtoMessage()

func (*Capability) Reset

func (m *Capability) Reset()

func (*Capability) String

func (m *Capability) String() string

func (*Capability) XXX_DiscardUnknown

func (m *Capability) XXX_DiscardUnknown()

func (*Capability) XXX_Marshal

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

func (*Capability) XXX_Merge

func (dst *Capability) XXX_Merge(src proto.Message)

func (*Capability) XXX_Size

func (m *Capability) XXX_Size() int

func (*Capability) XXX_Unmarshal

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

type DateRange

type DateRange struct {
	Start                *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty" toml:"start,omitempty" mapstructure:"start,omitempty"`
	End                  *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty" toml:"end,omitempty" mapstructure:"end,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte               `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32                `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*DateRange) Descriptor

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

func (*DateRange) GetEnd

func (m *DateRange) GetEnd() *timestamp.Timestamp

func (*DateRange) GetStart

func (m *DateRange) GetStart() *timestamp.Timestamp

func (*DateRange) ProtoMessage

func (*DateRange) ProtoMessage()

func (*DateRange) Reset

func (m *DateRange) Reset()

func (*DateRange) String

func (m *DateRange) String() string

func (*DateRange) XXX_DiscardUnknown

func (m *DateRange) XXX_DiscardUnknown()

func (*DateRange) XXX_Marshal

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

func (*DateRange) XXX_Merge

func (dst *DateRange) XXX_Merge(src proto.Message)

func (*DateRange) XXX_Size

func (m *DateRange) XXX_Size() int

func (*DateRange) XXX_Unmarshal

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

type LicenseControlClient

type LicenseControlClient interface {
	License(ctx context.Context, in *LicenseRequest, opts ...grpc.CallOption) (*LicenseResponse, error)
	Policy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*PolicyResponse, error)
	Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	Telemetry(ctx context.Context, in *TelemetryRequest, opts ...grpc.CallOption) (*TelemetryResponse, error)
}

LicenseControlClient is the client API for LicenseControl service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLicenseControlClient

func NewLicenseControlClient(cc *grpc.ClientConn) LicenseControlClient

type LicenseControlServer

LicenseControlServer is the server API for LicenseControl service.

type LicenseRequest

type LicenseRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte   `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32    `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*LicenseRequest) Descriptor

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

func (*LicenseRequest) ProtoMessage

func (*LicenseRequest) ProtoMessage()

func (*LicenseRequest) Reset

func (m *LicenseRequest) Reset()

func (*LicenseRequest) String

func (m *LicenseRequest) String() string

func (*LicenseRequest) XXX_DiscardUnknown

func (m *LicenseRequest) XXX_DiscardUnknown()

func (*LicenseRequest) XXX_Marshal

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

func (*LicenseRequest) XXX_Merge

func (dst *LicenseRequest) XXX_Merge(src proto.Message)

func (*LicenseRequest) XXX_Size

func (m *LicenseRequest) XXX_Size() int

func (*LicenseRequest) XXX_Unmarshal

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

type LicenseResponse

type LicenseResponse struct {
	License              *license.License `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty" toml:"license,omitempty" mapstructure:"license,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte           `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32            `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*LicenseResponse) Descriptor

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

func (*LicenseResponse) GetLicense

func (m *LicenseResponse) GetLicense() *license.License

func (*LicenseResponse) ProtoMessage

func (*LicenseResponse) ProtoMessage()

func (*LicenseResponse) Reset

func (m *LicenseResponse) Reset()

func (*LicenseResponse) String

func (m *LicenseResponse) String() string

func (*LicenseResponse) XXX_DiscardUnknown

func (m *LicenseResponse) XXX_DiscardUnknown()

func (*LicenseResponse) XXX_Marshal

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

func (*LicenseResponse) XXX_Merge

func (dst *LicenseResponse) XXX_Merge(src proto.Message)

func (*LicenseResponse) XXX_Size

func (m *LicenseResponse) XXX_Size() int

func (*LicenseResponse) XXX_Unmarshal

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

type Policy

type Policy struct {
	LicenseId            string               `` /* 152-byte string literal not displayed */
	Valid                bool                 `protobuf:"varint,2,opt,name=valid,proto3" json:"valid,omitempty" toml:"valid,omitempty" mapstructure:"valid,omitempty"`
	Capabilities         []*Capability        `` /* 145-byte string literal not displayed */
	Rules                map[string]string    `` /* 205-byte string literal not displayed */
	ConfiguredAt         *timestamp.Timestamp `` /* 167-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte               `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32                `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*Policy) Descriptor

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

func (*Policy) GetCapabilities

func (m *Policy) GetCapabilities() []*Capability

func (*Policy) GetConfiguredAt

func (m *Policy) GetConfiguredAt() *timestamp.Timestamp

func (*Policy) GetLicenseId

func (m *Policy) GetLicenseId() string

func (*Policy) GetRules

func (m *Policy) GetRules() map[string]string

func (*Policy) GetValid

func (m *Policy) GetValid() bool

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) String

func (m *Policy) String() string

func (*Policy) XXX_DiscardUnknown

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal

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

func (*Policy) XXX_Merge

func (dst *Policy) XXX_Merge(src proto.Message)

func (*Policy) XXX_Size

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal

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

type PolicyRequest

type PolicyRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte   `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32    `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*PolicyRequest) Descriptor

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

func (*PolicyRequest) ProtoMessage

func (*PolicyRequest) ProtoMessage()

func (*PolicyRequest) Reset

func (m *PolicyRequest) Reset()

func (*PolicyRequest) String

func (m *PolicyRequest) String() string

func (*PolicyRequest) XXX_DiscardUnknown

func (m *PolicyRequest) XXX_DiscardUnknown()

func (*PolicyRequest) XXX_Marshal

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

func (*PolicyRequest) XXX_Merge

func (dst *PolicyRequest) XXX_Merge(src proto.Message)

func (*PolicyRequest) XXX_Size

func (m *PolicyRequest) XXX_Size() int

func (*PolicyRequest) XXX_Unmarshal

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

type PolicyResponse

type PolicyResponse struct {
	Policy               *Policy  `protobuf:"bytes,1,opt,name=Policy,proto3" json:"Policy,omitempty" toml:"Policy,omitempty" mapstructure:"Policy,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte   `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32    `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*PolicyResponse) Descriptor

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

func (*PolicyResponse) GetPolicy

func (m *PolicyResponse) GetPolicy() *Policy

func (*PolicyResponse) ProtoMessage

func (*PolicyResponse) ProtoMessage()

func (*PolicyResponse) Reset

func (m *PolicyResponse) Reset()

func (*PolicyResponse) String

func (m *PolicyResponse) String() string

func (*PolicyResponse) XXX_DiscardUnknown

func (m *PolicyResponse) XXX_DiscardUnknown()

func (*PolicyResponse) XXX_Marshal

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

func (*PolicyResponse) XXX_Merge

func (dst *PolicyResponse) XXX_Merge(src proto.Message)

func (*PolicyResponse) XXX_Size

func (m *PolicyResponse) XXX_Size() int

func (*PolicyResponse) XXX_Unmarshal

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

type StatusRequest

type StatusRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte   `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32    `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*StatusRequest) Descriptor

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

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) Reset

func (m *StatusRequest) Reset()

func (*StatusRequest) String

func (m *StatusRequest) String() string

func (*StatusRequest) XXX_DiscardUnknown

func (m *StatusRequest) XXX_DiscardUnknown()

func (*StatusRequest) XXX_Marshal

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

func (*StatusRequest) XXX_Merge

func (dst *StatusRequest) XXX_Merge(src proto.Message)

func (*StatusRequest) XXX_Size

func (m *StatusRequest) XXX_Size() int

func (*StatusRequest) XXX_Unmarshal

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

type StatusResponse

type StatusResponse struct {
	LicenseId            string               `` /* 152-byte string literal not displayed */
	ConfiguredAt         *timestamp.Timestamp `` /* 167-byte string literal not displayed */
	LicensedPeriod       *DateRange           `` /* 177-byte string literal not displayed */
	CustomerName         string               `` /* 167-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte               `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32                `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*StatusResponse) Descriptor

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

func (*StatusResponse) GetConfiguredAt

func (m *StatusResponse) GetConfiguredAt() *timestamp.Timestamp

func (*StatusResponse) GetCustomerName

func (m *StatusResponse) GetCustomerName() string

func (*StatusResponse) GetLicenseId

func (m *StatusResponse) GetLicenseId() string

func (*StatusResponse) GetLicensedPeriod

func (m *StatusResponse) GetLicensedPeriod() *DateRange

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) Reset

func (m *StatusResponse) Reset()

func (*StatusResponse) String

func (m *StatusResponse) String() string

func (*StatusResponse) XXX_DiscardUnknown

func (m *StatusResponse) XXX_DiscardUnknown()

func (*StatusResponse) XXX_Marshal

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

func (*StatusResponse) XXX_Merge

func (dst *StatusResponse) XXX_Merge(src proto.Message)

func (*StatusResponse) XXX_Size

func (m *StatusResponse) XXX_Size() int

func (*StatusResponse) XXX_Unmarshal

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

type TelemetryRequest

type TelemetryRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte   `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32    `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*TelemetryRequest) Descriptor

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

func (*TelemetryRequest) ProtoMessage

func (*TelemetryRequest) ProtoMessage()

func (*TelemetryRequest) Reset

func (m *TelemetryRequest) Reset()

func (*TelemetryRequest) String

func (m *TelemetryRequest) String() string

func (*TelemetryRequest) XXX_DiscardUnknown

func (m *TelemetryRequest) XXX_DiscardUnknown()

func (*TelemetryRequest) XXX_Marshal

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

func (*TelemetryRequest) XXX_Merge

func (dst *TelemetryRequest) XXX_Merge(src proto.Message)

func (*TelemetryRequest) XXX_Size

func (m *TelemetryRequest) XXX_Size() int

func (*TelemetryRequest) XXX_Unmarshal

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

type TelemetryResponse

type TelemetryResponse struct {
	TelemetryEnabled     bool     `` /* 188-byte string literal not displayed */
	TelemetryUrl         string   `` /* 167-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte   `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32    `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*TelemetryResponse) Descriptor

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

func (*TelemetryResponse) GetTelemetryEnabled

func (m *TelemetryResponse) GetTelemetryEnabled() bool

func (*TelemetryResponse) GetTelemetryUrl

func (m *TelemetryResponse) GetTelemetryUrl() string

func (*TelemetryResponse) ProtoMessage

func (*TelemetryResponse) ProtoMessage()

func (*TelemetryResponse) Reset

func (m *TelemetryResponse) Reset()

func (*TelemetryResponse) String

func (m *TelemetryResponse) String() string

func (*TelemetryResponse) XXX_DiscardUnknown

func (m *TelemetryResponse) XXX_DiscardUnknown()

func (*TelemetryResponse) XXX_Marshal

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

func (*TelemetryResponse) XXX_Merge

func (dst *TelemetryResponse) XXX_Merge(src proto.Message)

func (*TelemetryResponse) XXX_Size

func (m *TelemetryResponse) XXX_Size() int

func (*TelemetryResponse) XXX_Unmarshal

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

type UpdateRequest

type UpdateRequest struct {
	LicenseData          string   `` /* 162-byte string literal not displayed */
	Force                bool     `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty" toml:"force,omitempty" mapstructure:"force,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte   `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32    `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*UpdateRequest) Descriptor

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

func (*UpdateRequest) GetForce

func (m *UpdateRequest) GetForce() bool

func (*UpdateRequest) GetLicenseData

func (m *UpdateRequest) GetLicenseData() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset

func (m *UpdateRequest) Reset()

func (*UpdateRequest) String

func (m *UpdateRequest) String() string

func (*UpdateRequest) XXX_DiscardUnknown

func (m *UpdateRequest) XXX_DiscardUnknown()

func (*UpdateRequest) XXX_Marshal

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

func (*UpdateRequest) XXX_Merge

func (dst *UpdateRequest) XXX_Merge(src proto.Message)

func (*UpdateRequest) XXX_Size

func (m *UpdateRequest) XXX_Size() int

func (*UpdateRequest) XXX_Unmarshal

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

type UpdateResponse

type UpdateResponse struct {
	Updated              bool     `` /* 126-byte string literal not displayed */
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty" toml:"message,omitempty" mapstructure:"message,omitempty"`
	Duplicate            bool     `` /* 134-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_unrecognized     []byte   `json:"-" toml:"-" mapstructure:"-,omitempty"`
	XXX_sizecache        int32    `json:"-" toml:"-" mapstructure:"-,omitempty"`
}

func (*UpdateResponse) Descriptor

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

func (*UpdateResponse) GetDuplicate

func (m *UpdateResponse) GetDuplicate() bool

func (*UpdateResponse) GetMessage

func (m *UpdateResponse) GetMessage() string

func (*UpdateResponse) GetUpdated

func (m *UpdateResponse) GetUpdated() bool

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) Reset

func (m *UpdateResponse) Reset()

func (*UpdateResponse) String

func (m *UpdateResponse) String() string

func (*UpdateResponse) XXX_DiscardUnknown

func (m *UpdateResponse) XXX_DiscardUnknown()

func (*UpdateResponse) XXX_Marshal

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

func (*UpdateResponse) XXX_Merge

func (dst *UpdateResponse) XXX_Merge(src proto.Message)

func (*UpdateResponse) XXX_Size

func (m *UpdateResponse) XXX_Size() int

func (*UpdateResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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