licenseccl

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package licenseccl is a generated protocol buffer package.

It is generated from these files:

cockroach/pkg/ccl/utilccl/licenseccl/license.proto

It has these top-level messages:

License

Index

Constants

View Source
const LicensePrefix = "crl-0-"

LicensePrefix is a prefix on license strings to make them easily recognized.

Variables

View Source
var (
	ErrInvalidLengthLicense = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLicense   = fmt.Errorf("proto: integer overflow")
)
View Source
var License_Type_name = map[int32]string{
	0: "NonCommercial",
	1: "Enterprise",
	2: "Evaluation",
}
View Source
var License_Type_value = map[string]int32{
	"NonCommercial": 0,
	"Enterprise":    1,
	"Evaluation":    2,
}

Functions

This section is empty.

Types

type License

type License struct {
	ClusterID         []github_com_cockroachdb_cockroach_pkg_util_uuid.UUID `` /* 134-byte string literal not displayed */
	ValidUntilUnixSec int64                                                 `protobuf:"varint,2,opt,name=valid_until_unix_sec,json=validUntilUnixSec,proto3" json:"valid_until_unix_sec,omitempty"`
	Type              License_Type                                          `protobuf:"varint,3,opt,name=type,proto3,enum=cockroach.ccl.utilccl.licenseccl.License_Type" json:"type,omitempty"`
	OrganizationName  string                                                `protobuf:"bytes,4,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"`
}

func Decode

func Decode(s string) (*License, error)

Decode attempts to read a base64 encoded License.

func (*License) Check

func (l *License) Check(at time.Time, cluster uuid.UUID, org, feature string) error

Check returns an error if the license is empty or not currently valid.

func (*License) Descriptor

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

func (License) Encode

func (l License) Encode() (string, error)

Encode serializes the License as a base64 string.

func (*License) Marshal

func (m *License) Marshal() (dAtA []byte, err error)

func (*License) MarshalTo

func (m *License) MarshalTo(dAtA []byte) (int, error)

func (*License) ProtoMessage

func (*License) ProtoMessage()

func (*License) Reset

func (m *License) Reset()

func (*License) Size

func (m *License) Size() (n int)

func (*License) String

func (m *License) String() string

func (*License) Unmarshal

func (m *License) Unmarshal(dAtA []byte) error

type License_Type

type License_Type int32
const (
	License_NonCommercial License_Type = 0
	License_Enterprise    License_Type = 1
	License_Evaluation    License_Type = 2
)

func (License_Type) EnumDescriptor

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

func (License_Type) String

func (x License_Type) String() string

Jump to

Keyboard shortcuts

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