license_control

package
v0.0.0-...-b0d1086 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_interservice_license_control_license_control_proto protoreflect.FileDescriptor

Functions

func RegisterLicenseControlServiceServer

func RegisterLicenseControlServiceServer(s *grpc.Server, srv LicenseControlServiceServer)

Types

type Capability

type Capability struct {
	Name    string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" toml:"name,omitempty" mapstructure:"name,omitempty"`             // ComplianceReporting
	Measure string                 `protobuf:"bytes,2,opt,name=measure,proto3" json:"measure,omitempty" toml:"measure,omitempty" mapstructure:"measure,omitempty"` // nodes
	Limit   int64                  `protobuf:"zigzag64,3,opt,name=limit,proto3" json:"limit,omitempty" toml:"limit,omitempty" mapstructure:"limit,omitempty"`      // 50
	Start   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start,proto3" json:"start,omitempty" toml:"start,omitempty" mapstructure:"start,omitempty"`         // date capability becomes active
	End     *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end,proto3" json:"end,omitempty" toml:"end,omitempty" mapstructure:"end,omitempty"`                 // date capability is no longer active
	// contains filtered or unexported fields
}

func (*Capability) Descriptor deprecated

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

Deprecated: Use Capability.ProtoReflect.Descriptor instead.

func (*Capability) GetEnd

func (x *Capability) GetEnd() *timestamppb.Timestamp

func (*Capability) GetLimit

func (x *Capability) GetLimit() int64

func (*Capability) GetMeasure

func (x *Capability) GetMeasure() string

func (*Capability) GetName

func (x *Capability) GetName() string

func (*Capability) GetStart

func (x *Capability) GetStart() *timestamppb.Timestamp

func (*Capability) ProtoMessage

func (*Capability) ProtoMessage()

func (*Capability) ProtoReflect

func (x *Capability) ProtoReflect() protoreflect.Message

func (*Capability) Reset

func (x *Capability) Reset()

func (*Capability) String

func (x *Capability) String() string

type DateRange

type DateRange struct {
	Start *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty" toml:"start,omitempty" mapstructure:"start,omitempty"`
	End   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty" toml:"end,omitempty" mapstructure:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*DateRange) Descriptor deprecated

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

Deprecated: Use DateRange.ProtoReflect.Descriptor instead.

func (*DateRange) GetEnd

func (x *DateRange) GetEnd() *timestamppb.Timestamp

func (*DateRange) GetStart

func (x *DateRange) GetStart() *timestamppb.Timestamp

func (*DateRange) ProtoMessage

func (*DateRange) ProtoMessage()

func (*DateRange) ProtoReflect

func (x *DateRange) ProtoReflect() protoreflect.Message

func (*DateRange) Reset

func (x *DateRange) Reset()

func (*DateRange) String

func (x *DateRange) String() string

type GetDeploymentIDRequest

type GetDeploymentIDRequest struct {
	// contains filtered or unexported fields
}

func (*GetDeploymentIDRequest) Descriptor deprecated

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

Deprecated: Use GetDeploymentIDRequest.ProtoReflect.Descriptor instead.

func (*GetDeploymentIDRequest) ProtoMessage

func (*GetDeploymentIDRequest) ProtoMessage()

func (*GetDeploymentIDRequest) ProtoReflect

func (x *GetDeploymentIDRequest) ProtoReflect() protoreflect.Message

func (*GetDeploymentIDRequest) Reset

func (x *GetDeploymentIDRequest) Reset()

func (*GetDeploymentIDRequest) String

func (x *GetDeploymentIDRequest) String() string

type GetDeploymentIDResponse

type GetDeploymentIDResponse struct {
	DeploymentId   string                 `` /* 167-byte string literal not displayed */
	DeploymentType string                 `` /* 177-byte string literal not displayed */
	DeploymentAt   *timestamppb.Timestamp `` /* 167-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetDeploymentIDResponse) Descriptor deprecated

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

Deprecated: Use GetDeploymentIDResponse.ProtoReflect.Descriptor instead.

func (*GetDeploymentIDResponse) GetDeploymentAt

func (x *GetDeploymentIDResponse) GetDeploymentAt() *timestamppb.Timestamp

func (*GetDeploymentIDResponse) GetDeploymentId

func (x *GetDeploymentIDResponse) GetDeploymentId() string

func (*GetDeploymentIDResponse) GetDeploymentType

func (x *GetDeploymentIDResponse) GetDeploymentType() string

func (*GetDeploymentIDResponse) ProtoMessage

func (*GetDeploymentIDResponse) ProtoMessage()

func (*GetDeploymentIDResponse) ProtoReflect

func (x *GetDeploymentIDResponse) ProtoReflect() protoreflect.Message

func (*GetDeploymentIDResponse) Reset

func (x *GetDeploymentIDResponse) Reset()

func (*GetDeploymentIDResponse) String

func (x *GetDeploymentIDResponse) String() string

type LicenseControlServiceClient

type LicenseControlServiceClient 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)
	GetDeploymentID(ctx context.Context, in *GetDeploymentIDRequest, opts ...grpc.CallOption) (*GetDeploymentIDResponse, error)
}

LicenseControlServiceClient is the client API for LicenseControlService service.

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

type LicenseControlServiceServer

LicenseControlServiceServer is the server API for LicenseControlService service.

type LicenseRequest

type LicenseRequest struct {
	// contains filtered or unexported fields
}

func (*LicenseRequest) Descriptor deprecated

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

Deprecated: Use LicenseRequest.ProtoReflect.Descriptor instead.

func (*LicenseRequest) ProtoMessage

func (*LicenseRequest) ProtoMessage()

func (*LicenseRequest) ProtoReflect

func (x *LicenseRequest) ProtoReflect() protoreflect.Message

func (*LicenseRequest) Reset

func (x *LicenseRequest) Reset()

func (*LicenseRequest) String

func (x *LicenseRequest) String() string

type LicenseResponse

type LicenseResponse struct {
	License *license.License `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty" toml:"license,omitempty" mapstructure:"license,omitempty"`
	// contains filtered or unexported fields
}

func (*LicenseResponse) Descriptor deprecated

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

Deprecated: Use LicenseResponse.ProtoReflect.Descriptor instead.

func (*LicenseResponse) GetLicense

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

func (*LicenseResponse) ProtoMessage

func (*LicenseResponse) ProtoMessage()

func (*LicenseResponse) ProtoReflect

func (x *LicenseResponse) ProtoReflect() protoreflect.Message

func (*LicenseResponse) Reset

func (x *LicenseResponse) Reset()

func (*LicenseResponse) String

func (x *LicenseResponse) String() string

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 *timestamppb.Timestamp `` /* 167-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Policy) Descriptor deprecated

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

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetCapabilities

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

func (*Policy) GetConfiguredAt

func (x *Policy) GetConfiguredAt() *timestamppb.Timestamp

func (*Policy) GetLicenseId

func (x *Policy) GetLicenseId() string

func (*Policy) GetRules

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

func (*Policy) GetValid

func (x *Policy) GetValid() bool

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

func (x *Policy) ProtoReflect() protoreflect.Message

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) String

func (x *Policy) String() string

type PolicyRequest

type PolicyRequest struct {
	// contains filtered or unexported fields
}

func (*PolicyRequest) Descriptor deprecated

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

Deprecated: Use PolicyRequest.ProtoReflect.Descriptor instead.

func (*PolicyRequest) ProtoMessage

func (*PolicyRequest) ProtoMessage()

func (*PolicyRequest) ProtoReflect

func (x *PolicyRequest) ProtoReflect() protoreflect.Message

func (*PolicyRequest) Reset

func (x *PolicyRequest) Reset()

func (*PolicyRequest) String

func (x *PolicyRequest) String() string

type PolicyResponse

type PolicyResponse struct {
	Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty" toml:"policy,omitempty" mapstructure:"policy,omitempty"`
	// contains filtered or unexported fields
}

func (*PolicyResponse) Descriptor deprecated

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

Deprecated: Use PolicyResponse.ProtoReflect.Descriptor instead.

func (*PolicyResponse) GetPolicy

func (x *PolicyResponse) GetPolicy() *Policy

func (*PolicyResponse) ProtoMessage

func (*PolicyResponse) ProtoMessage()

func (*PolicyResponse) ProtoReflect

func (x *PolicyResponse) ProtoReflect() protoreflect.Message

func (*PolicyResponse) Reset

func (x *PolicyResponse) Reset()

func (*PolicyResponse) String

func (x *PolicyResponse) String() string

type StatusRequest

type StatusRequest struct {
	// contains filtered or unexported fields
}

func (*StatusRequest) Descriptor deprecated

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

Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) ProtoReflect

func (x *StatusRequest) ProtoReflect() protoreflect.Message

func (*StatusRequest) Reset

func (x *StatusRequest) Reset()

func (*StatusRequest) String

func (x *StatusRequest) String() string

type StatusResponse

type StatusResponse struct {
	LicenseId      string                 `` /* 152-byte string literal not displayed */
	ConfiguredAt   *timestamppb.Timestamp `` /* 167-byte string literal not displayed */
	LicensedPeriod *DateRange             `` /* 177-byte string literal not displayed */
	CustomerName   string                 `` /* 167-byte string literal not displayed */
	DeploymentId   string                 `` /* 167-byte string literal not displayed */
	DeploymentType string                 `` /* 177-byte string literal not displayed */
	LicenseType    string                 `` /* 162-byte string literal not displayed */
	DeploymentAt   *timestamppb.Timestamp `` /* 167-byte string literal not displayed */
	GracePeriod    bool                   `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StatusResponse) Descriptor deprecated

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

Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.

func (*StatusResponse) GetConfiguredAt

func (x *StatusResponse) GetConfiguredAt() *timestamppb.Timestamp

func (*StatusResponse) GetCustomerName

func (x *StatusResponse) GetCustomerName() string

func (*StatusResponse) GetDeploymentAt

func (x *StatusResponse) GetDeploymentAt() *timestamppb.Timestamp

func (*StatusResponse) GetDeploymentId

func (x *StatusResponse) GetDeploymentId() string

func (*StatusResponse) GetDeploymentType

func (x *StatusResponse) GetDeploymentType() string

func (*StatusResponse) GetGracePeriod

func (x *StatusResponse) GetGracePeriod() bool

func (*StatusResponse) GetLicenseId

func (x *StatusResponse) GetLicenseId() string

func (*StatusResponse) GetLicenseType

func (x *StatusResponse) GetLicenseType() string

func (*StatusResponse) GetLicensedPeriod

func (x *StatusResponse) GetLicensedPeriod() *DateRange

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) ProtoReflect

func (x *StatusResponse) ProtoReflect() protoreflect.Message

func (*StatusResponse) Reset

func (x *StatusResponse) Reset()

func (*StatusResponse) String

func (x *StatusResponse) String() string

type TelemetryRequest

type TelemetryRequest struct {
	// contains filtered or unexported fields
}

func (*TelemetryRequest) Descriptor deprecated

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

Deprecated: Use TelemetryRequest.ProtoReflect.Descriptor instead.

func (*TelemetryRequest) ProtoMessage

func (*TelemetryRequest) ProtoMessage()

func (*TelemetryRequest) ProtoReflect

func (x *TelemetryRequest) ProtoReflect() protoreflect.Message

func (*TelemetryRequest) Reset

func (x *TelemetryRequest) Reset()

func (*TelemetryRequest) String

func (x *TelemetryRequest) String() string

type TelemetryResponse

type TelemetryResponse struct {
	TelemetryEnabled bool   `` /* 188-byte string literal not displayed */
	TelemetryUrl     string `` /* 167-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TelemetryResponse) Descriptor deprecated

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

Deprecated: Use TelemetryResponse.ProtoReflect.Descriptor instead.

func (*TelemetryResponse) GetTelemetryEnabled

func (x *TelemetryResponse) GetTelemetryEnabled() bool

func (*TelemetryResponse) GetTelemetryUrl

func (x *TelemetryResponse) GetTelemetryUrl() string

func (*TelemetryResponse) ProtoMessage

func (*TelemetryResponse) ProtoMessage()

func (*TelemetryResponse) ProtoReflect

func (x *TelemetryResponse) ProtoReflect() protoreflect.Message

func (*TelemetryResponse) Reset

func (x *TelemetryResponse) Reset()

func (*TelemetryResponse) String

func (x *TelemetryResponse) String() string

type UnimplementedLicenseControlServiceServer

type UnimplementedLicenseControlServiceServer struct {
}

UnimplementedLicenseControlServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLicenseControlServiceServer) GetDeploymentID

func (*UnimplementedLicenseControlServiceServer) License

func (*UnimplementedLicenseControlServiceServer) Policy

func (*UnimplementedLicenseControlServiceServer) Status

func (*UnimplementedLicenseControlServiceServer) Telemetry

func (*UnimplementedLicenseControlServiceServer) Update

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"`
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetForce

func (x *UpdateRequest) GetForce() bool

func (*UpdateRequest) GetLicenseData

func (x *UpdateRequest) GetLicenseData() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

func (x *UpdateRequest) ProtoReflect() protoreflect.Message

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

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 */
	// contains filtered or unexported fields
}

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) GetDuplicate

func (x *UpdateResponse) GetDuplicate() bool

func (*UpdateResponse) GetMessage

func (x *UpdateResponse) GetMessage() string

func (*UpdateResponse) GetUpdated

func (x *UpdateResponse) GetUpdated() bool

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

func (x *UpdateResponse) ProtoReflect() protoreflect.Message

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

Jump to

Keyboard shortcuts

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