enterprise

package
v2.9.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 30 Imported by: 1

Documentation

Overview

Package enterprise is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	API_Activate_FullMethodName          = "/enterprise_v2.API/Activate"
	API_GetState_FullMethodName          = "/enterprise_v2.API/GetState"
	API_GetActivationCode_FullMethodName = "/enterprise_v2.API/GetActivationCode"
	API_Heartbeat_FullMethodName         = "/enterprise_v2.API/Heartbeat"
	API_Deactivate_FullMethodName        = "/enterprise_v2.API/Deactivate"
	API_Pause_FullMethodName             = "/enterprise_v2.API/Pause"
	API_Unpause_FullMethodName           = "/enterprise_v2.API/Unpause"
	API_PauseStatus_FullMethodName       = "/enterprise_v2.API/PauseStatus"
)

Variables

View Source
var (
	State_name = map[int32]string{
		0: "NONE",
		1: "ACTIVE",
		2: "EXPIRED",
		3: "HEARTBEAT_FAILED",
	}
	State_value = map[string]int32{
		"NONE":             0,
		"ACTIVE":           1,
		"EXPIRED":          2,
		"HEARTBEAT_FAILED": 3,
	}
)

Enum value maps for State.

View Source
var (
	PauseStatusResponse_PauseStatus_name = map[int32]string{
		0: "UNPAUSED",
		1: "PARTIALLY_PAUSED",
		2: "PAUSED",
	}
	PauseStatusResponse_PauseStatus_value = map[string]int32{
		"UNPAUSED":         0,
		"PARTIALLY_PAUSED": 1,
		"PAUSED":           2,
	}
)

Enum value maps for PauseStatusResponse_PauseStatus.

View Source
var API_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "enterprise_v2.API",
	HandlerType: (*APIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Activate",
			Handler:    _API_Activate_Handler,
		},
		{
			MethodName: "GetState",
			Handler:    _API_GetState_Handler,
		},
		{
			MethodName: "GetActivationCode",
			Handler:    _API_GetActivationCode_Handler,
		},
		{
			MethodName: "Heartbeat",
			Handler:    _API_Heartbeat_Handler,
		},
		{
			MethodName: "Deactivate",
			Handler:    _API_Deactivate_Handler,
		},
		{
			MethodName: "Pause",
			Handler:    _API_Pause_Handler,
		},
		{
			MethodName: "Unpause",
			Handler:    _API_Unpause_Handler,
		},
		{
			MethodName: "PauseStatus",
			Handler:    _API_PauseStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "enterprise/enterprise.proto",
}

API_ServiceDesc is the grpc.ServiceDesc for API service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_enterprise_enterprise_proto protoreflect.FileDescriptor

Functions

func RegisterAPIHandler added in v2.8.0

func RegisterAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAPIHandler registers the http handlers for service API to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAPIHandlerClient added in v2.8.0

func RegisterAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client APIClient) error

RegisterAPIHandlerClient registers the http handlers for service API to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "APIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "APIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "APIClient" to call the correct interceptors.

func RegisterAPIHandlerFromEndpoint added in v2.8.0

func RegisterAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAPIHandlerFromEndpoint is same as RegisterAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAPIHandlerServer added in v2.8.0

func RegisterAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server APIServer) error

RegisterAPIHandlerServer registers the http handlers for service API to "mux". UnaryRPC :call APIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAPIHandlerFromEndpoint instead.

func RegisterAPIServer

func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)

Types

type APIClient

type APIClient interface {
	// Provide a Pachyderm enterprise token, enabling Pachyderm enterprise
	// features, such as the Pachyderm Dashboard and Auth system
	Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error)
	GetState(ctx context.Context, in *GetStateRequest, opts ...grpc.CallOption) (*GetStateResponse, error)
	GetActivationCode(ctx context.Context, in *GetActivationCodeRequest, opts ...grpc.CallOption) (*GetActivationCodeResponse, error)
	// Heartbeat is used in testing to trigger a heartbeat on demand. Normally this happens
	// on a timer.
	Heartbeat(ctx context.Context, in *HeartbeatRequest, opts ...grpc.CallOption) (*HeartbeatResponse, error)
	// Deactivate removes a cluster's enterprise activation
	// token and sets its enterprise state to NONE.
	Deactivate(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error)
	// Pause pauses the cluster.
	Pause(ctx context.Context, in *PauseRequest, opts ...grpc.CallOption) (*PauseResponse, error)
	// Unpause unpauses the cluser.
	Unpause(ctx context.Context, in *UnpauseRequest, opts ...grpc.CallOption) (*UnpauseResponse, error)
	PauseStatus(ctx context.Context, in *PauseStatusRequest, opts ...grpc.CallOption) (*PauseStatusResponse, error)
}

APIClient is the client API for API service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAPIClient

func NewAPIClient(cc grpc.ClientConnInterface) APIClient

type APIServer

type APIServer interface {
	// Provide a Pachyderm enterprise token, enabling Pachyderm enterprise
	// features, such as the Pachyderm Dashboard and Auth system
	Activate(context.Context, *ActivateRequest) (*ActivateResponse, error)
	GetState(context.Context, *GetStateRequest) (*GetStateResponse, error)
	GetActivationCode(context.Context, *GetActivationCodeRequest) (*GetActivationCodeResponse, error)
	// Heartbeat is used in testing to trigger a heartbeat on demand. Normally this happens
	// on a timer.
	Heartbeat(context.Context, *HeartbeatRequest) (*HeartbeatResponse, error)
	// Deactivate removes a cluster's enterprise activation
	// token and sets its enterprise state to NONE.
	Deactivate(context.Context, *DeactivateRequest) (*DeactivateResponse, error)
	// Pause pauses the cluster.
	Pause(context.Context, *PauseRequest) (*PauseResponse, error)
	// Unpause unpauses the cluser.
	Unpause(context.Context, *UnpauseRequest) (*UnpauseResponse, error)
	PauseStatus(context.Context, *PauseStatusRequest) (*PauseStatusResponse, error)
	// contains filtered or unexported methods
}

APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility

type ActivateRequest

type ActivateRequest struct {
	LicenseServer string `protobuf:"bytes,1,opt,name=license_server,json=licenseServer,proto3" json:"license_server,omitempty"`
	Id            string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Secret        string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivateRequest) Descriptor deprecated

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

Deprecated: Use ActivateRequest.ProtoReflect.Descriptor instead.

func (*ActivateRequest) GetId

func (x *ActivateRequest) GetId() string

func (*ActivateRequest) GetLicenseServer

func (x *ActivateRequest) GetLicenseServer() string

func (*ActivateRequest) GetSecret

func (x *ActivateRequest) GetSecret() string

func (*ActivateRequest) MarshalLogObject

func (x *ActivateRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*ActivateRequest) ProtoMessage

func (*ActivateRequest) ProtoMessage()

func (*ActivateRequest) ProtoReflect added in v2.7.0

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

func (*ActivateRequest) Reset

func (x *ActivateRequest) Reset()

func (*ActivateRequest) String

func (x *ActivateRequest) String() string

func (*ActivateRequest) Validate added in v2.8.0

func (m *ActivateRequest) Validate() error

Validate checks the field values on ActivateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ActivateRequest) ValidateAll added in v2.8.0

func (m *ActivateRequest) ValidateAll() error

ValidateAll checks the field values on ActivateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ActivateRequestMultiError, or nil if none found.

type ActivateRequestMultiError added in v2.8.0

type ActivateRequestMultiError []error

ActivateRequestMultiError is an error wrapping multiple validation errors returned by ActivateRequest.ValidateAll() if the designated constraints aren't met.

func (ActivateRequestMultiError) AllErrors added in v2.8.0

func (m ActivateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ActivateRequestMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type ActivateRequestValidationError added in v2.8.0

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

ActivateRequestValidationError is the validation error returned by ActivateRequest.Validate if the designated constraints aren't met.

func (ActivateRequestValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (ActivateRequestValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (ActivateRequestValidationError) ErrorName added in v2.8.0

func (e ActivateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ActivateRequestValidationError) Field added in v2.8.0

Field function returns field value.

func (ActivateRequestValidationError) Key added in v2.8.0

Key function returns key value.

func (ActivateRequestValidationError) Reason added in v2.8.0

Reason function returns reason value.

type ActivateResponse

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

func (*ActivateResponse) Descriptor deprecated

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

Deprecated: Use ActivateResponse.ProtoReflect.Descriptor instead.

func (*ActivateResponse) MarshalLogObject

func (x *ActivateResponse) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*ActivateResponse) ProtoMessage

func (*ActivateResponse) ProtoMessage()

func (*ActivateResponse) ProtoReflect added in v2.7.0

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

func (*ActivateResponse) Reset

func (x *ActivateResponse) Reset()

func (*ActivateResponse) String

func (x *ActivateResponse) String() string

func (*ActivateResponse) Validate added in v2.8.0

func (m *ActivateResponse) Validate() error

Validate checks the field values on ActivateResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ActivateResponse) ValidateAll added in v2.8.0

func (m *ActivateResponse) ValidateAll() error

ValidateAll checks the field values on ActivateResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ActivateResponseMultiError, or nil if none found.

type ActivateResponseMultiError added in v2.8.0

type ActivateResponseMultiError []error

ActivateResponseMultiError is an error wrapping multiple validation errors returned by ActivateResponse.ValidateAll() if the designated constraints aren't met.

func (ActivateResponseMultiError) AllErrors added in v2.8.0

func (m ActivateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ActivateResponseMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type ActivateResponseValidationError added in v2.8.0

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

ActivateResponseValidationError is the validation error returned by ActivateResponse.Validate if the designated constraints aren't met.

func (ActivateResponseValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (ActivateResponseValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (ActivateResponseValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (ActivateResponseValidationError) Field added in v2.8.0

Field function returns field value.

func (ActivateResponseValidationError) Key added in v2.8.0

Key function returns key value.

func (ActivateResponseValidationError) Reason added in v2.8.0

Reason function returns reason value.

type DeactivateRequest

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

func (*DeactivateRequest) Descriptor deprecated

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

Deprecated: Use DeactivateRequest.ProtoReflect.Descriptor instead.

func (*DeactivateRequest) MarshalLogObject

func (x *DeactivateRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*DeactivateRequest) ProtoMessage

func (*DeactivateRequest) ProtoMessage()

func (*DeactivateRequest) ProtoReflect added in v2.7.0

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

func (*DeactivateRequest) Reset

func (x *DeactivateRequest) Reset()

func (*DeactivateRequest) String

func (x *DeactivateRequest) String() string

func (*DeactivateRequest) Validate added in v2.8.0

func (m *DeactivateRequest) Validate() error

Validate checks the field values on DeactivateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeactivateRequest) ValidateAll added in v2.8.0

func (m *DeactivateRequest) ValidateAll() error

ValidateAll checks the field values on DeactivateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeactivateRequestMultiError, or nil if none found.

type DeactivateRequestMultiError added in v2.8.0

type DeactivateRequestMultiError []error

DeactivateRequestMultiError is an error wrapping multiple validation errors returned by DeactivateRequest.ValidateAll() if the designated constraints aren't met.

func (DeactivateRequestMultiError) AllErrors added in v2.8.0

func (m DeactivateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeactivateRequestMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type DeactivateRequestValidationError added in v2.8.0

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

DeactivateRequestValidationError is the validation error returned by DeactivateRequest.Validate if the designated constraints aren't met.

func (DeactivateRequestValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (DeactivateRequestValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (DeactivateRequestValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (DeactivateRequestValidationError) Field added in v2.8.0

Field function returns field value.

func (DeactivateRequestValidationError) Key added in v2.8.0

Key function returns key value.

func (DeactivateRequestValidationError) Reason added in v2.8.0

Reason function returns reason value.

type DeactivateResponse

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

func (*DeactivateResponse) Descriptor deprecated

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

Deprecated: Use DeactivateResponse.ProtoReflect.Descriptor instead.

func (*DeactivateResponse) MarshalLogObject

func (x *DeactivateResponse) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*DeactivateResponse) ProtoMessage

func (*DeactivateResponse) ProtoMessage()

func (*DeactivateResponse) ProtoReflect added in v2.7.0

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

func (*DeactivateResponse) Reset

func (x *DeactivateResponse) Reset()

func (*DeactivateResponse) String

func (x *DeactivateResponse) String() string

func (*DeactivateResponse) Validate added in v2.8.0

func (m *DeactivateResponse) Validate() error

Validate checks the field values on DeactivateResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeactivateResponse) ValidateAll added in v2.8.0

func (m *DeactivateResponse) ValidateAll() error

ValidateAll checks the field values on DeactivateResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeactivateResponseMultiError, or nil if none found.

type DeactivateResponseMultiError added in v2.8.0

type DeactivateResponseMultiError []error

DeactivateResponseMultiError is an error wrapping multiple validation errors returned by DeactivateResponse.ValidateAll() if the designated constraints aren't met.

func (DeactivateResponseMultiError) AllErrors added in v2.8.0

func (m DeactivateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeactivateResponseMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type DeactivateResponseValidationError added in v2.8.0

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

DeactivateResponseValidationError is the validation error returned by DeactivateResponse.Validate if the designated constraints aren't met.

func (DeactivateResponseValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (DeactivateResponseValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (DeactivateResponseValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (DeactivateResponseValidationError) Field added in v2.8.0

Field function returns field value.

func (DeactivateResponseValidationError) Key added in v2.8.0

Key function returns key value.

func (DeactivateResponseValidationError) Reason added in v2.8.0

Reason function returns reason value.

type EnterpriseConfig

type EnterpriseConfig struct {

	// license_server is the address of the grpc license service
	LicenseServer string `protobuf:"bytes,1,opt,name=license_server,json=licenseServer,proto3" json:"license_server,omitempty"`
	// id is the unique identifier for this pachd, which is registered
	// with the license service
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// secret is a shared secret between this pachd and the license service
	Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

EnterpriseConfig is the configuration we store for heartbeating to the license server.

func (*EnterpriseConfig) Descriptor deprecated

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

Deprecated: Use EnterpriseConfig.ProtoReflect.Descriptor instead.

func (*EnterpriseConfig) GetId

func (x *EnterpriseConfig) GetId() string

func (*EnterpriseConfig) GetLicenseServer

func (x *EnterpriseConfig) GetLicenseServer() string

func (*EnterpriseConfig) GetSecret

func (x *EnterpriseConfig) GetSecret() string

func (*EnterpriseConfig) MarshalLogObject

func (x *EnterpriseConfig) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*EnterpriseConfig) ProtoMessage

func (*EnterpriseConfig) ProtoMessage()

func (*EnterpriseConfig) ProtoReflect added in v2.7.0

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

func (*EnterpriseConfig) Reset

func (x *EnterpriseConfig) Reset()

func (*EnterpriseConfig) String

func (x *EnterpriseConfig) String() string

func (*EnterpriseConfig) Validate added in v2.8.0

func (m *EnterpriseConfig) Validate() error

Validate checks the field values on EnterpriseConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EnterpriseConfig) ValidateAll added in v2.8.0

func (m *EnterpriseConfig) ValidateAll() error

ValidateAll checks the field values on EnterpriseConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnterpriseConfigMultiError, or nil if none found.

type EnterpriseConfigMultiError added in v2.8.0

type EnterpriseConfigMultiError []error

EnterpriseConfigMultiError is an error wrapping multiple validation errors returned by EnterpriseConfig.ValidateAll() if the designated constraints aren't met.

func (EnterpriseConfigMultiError) AllErrors added in v2.8.0

func (m EnterpriseConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EnterpriseConfigMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type EnterpriseConfigValidationError added in v2.8.0

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

EnterpriseConfigValidationError is the validation error returned by EnterpriseConfig.Validate if the designated constraints aren't met.

func (EnterpriseConfigValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (EnterpriseConfigValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (EnterpriseConfigValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (EnterpriseConfigValidationError) Field added in v2.8.0

Field function returns field value.

func (EnterpriseConfigValidationError) Key added in v2.8.0

Key function returns key value.

func (EnterpriseConfigValidationError) Reason added in v2.8.0

Reason function returns reason value.

type EnterpriseRecord

type EnterpriseRecord struct {

	// license is the cached LicenseRecord retrieved from the most recent
	// heartbeat to the license server.
	License *LicenseRecord `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"`
	// last_heartbeat is the timestamp of the last successful heartbeat
	// to the license server
	LastHeartbeat *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_heartbeat,json=lastHeartbeat,proto3" json:"last_heartbeat,omitempty"`
	// heartbeat_failed is set if the license is still valid, but
	// the pachd is no longer registered with an enterprise server.
	// This is the same as the expired state, where auth is locked
	// but not disabled.
	HeartbeatFailed bool `protobuf:"varint,3,opt,name=heartbeat_failed,json=heartbeatFailed,proto3" json:"heartbeat_failed,omitempty"`
	// contains filtered or unexported fields
}

EnterpriseRecord is a protobuf we cache in etcd to store the enterprise status.

func (*EnterpriseRecord) Descriptor deprecated

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

Deprecated: Use EnterpriseRecord.ProtoReflect.Descriptor instead.

func (*EnterpriseRecord) GetHeartbeatFailed

func (x *EnterpriseRecord) GetHeartbeatFailed() bool

func (*EnterpriseRecord) GetLastHeartbeat

func (x *EnterpriseRecord) GetLastHeartbeat() *timestamppb.Timestamp

func (*EnterpriseRecord) GetLicense

func (x *EnterpriseRecord) GetLicense() *LicenseRecord

func (*EnterpriseRecord) MarshalLogObject

func (x *EnterpriseRecord) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*EnterpriseRecord) ProtoMessage

func (*EnterpriseRecord) ProtoMessage()

func (*EnterpriseRecord) ProtoReflect added in v2.7.0

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

func (*EnterpriseRecord) Reset

func (x *EnterpriseRecord) Reset()

func (*EnterpriseRecord) String

func (x *EnterpriseRecord) String() string

func (*EnterpriseRecord) Validate added in v2.8.0

func (m *EnterpriseRecord) Validate() error

Validate checks the field values on EnterpriseRecord with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EnterpriseRecord) ValidateAll added in v2.8.0

func (m *EnterpriseRecord) ValidateAll() error

ValidateAll checks the field values on EnterpriseRecord with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnterpriseRecordMultiError, or nil if none found.

type EnterpriseRecordMultiError added in v2.8.0

type EnterpriseRecordMultiError []error

EnterpriseRecordMultiError is an error wrapping multiple validation errors returned by EnterpriseRecord.ValidateAll() if the designated constraints aren't met.

func (EnterpriseRecordMultiError) AllErrors added in v2.8.0

func (m EnterpriseRecordMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EnterpriseRecordMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type EnterpriseRecordValidationError added in v2.8.0

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

EnterpriseRecordValidationError is the validation error returned by EnterpriseRecord.Validate if the designated constraints aren't met.

func (EnterpriseRecordValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (EnterpriseRecordValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (EnterpriseRecordValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (EnterpriseRecordValidationError) Field added in v2.8.0

Field function returns field value.

func (EnterpriseRecordValidationError) Key added in v2.8.0

Key function returns key value.

func (EnterpriseRecordValidationError) Reason added in v2.8.0

Reason function returns reason value.

type GetActivationCodeRequest

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

func (*GetActivationCodeRequest) Descriptor deprecated

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

Deprecated: Use GetActivationCodeRequest.ProtoReflect.Descriptor instead.

func (*GetActivationCodeRequest) MarshalLogObject

func (x *GetActivationCodeRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*GetActivationCodeRequest) ProtoMessage

func (*GetActivationCodeRequest) ProtoMessage()

func (*GetActivationCodeRequest) ProtoReflect added in v2.7.0

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

func (*GetActivationCodeRequest) Reset

func (x *GetActivationCodeRequest) Reset()

func (*GetActivationCodeRequest) String

func (x *GetActivationCodeRequest) String() string

func (*GetActivationCodeRequest) Validate added in v2.8.0

func (m *GetActivationCodeRequest) Validate() error

Validate checks the field values on GetActivationCodeRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetActivationCodeRequest) ValidateAll added in v2.8.0

func (m *GetActivationCodeRequest) ValidateAll() error

ValidateAll checks the field values on GetActivationCodeRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetActivationCodeRequestMultiError, or nil if none found.

type GetActivationCodeRequestMultiError added in v2.8.0

type GetActivationCodeRequestMultiError []error

GetActivationCodeRequestMultiError is an error wrapping multiple validation errors returned by GetActivationCodeRequest.ValidateAll() if the designated constraints aren't met.

func (GetActivationCodeRequestMultiError) AllErrors added in v2.8.0

func (m GetActivationCodeRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetActivationCodeRequestMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type GetActivationCodeRequestValidationError added in v2.8.0

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

GetActivationCodeRequestValidationError is the validation error returned by GetActivationCodeRequest.Validate if the designated constraints aren't met.

func (GetActivationCodeRequestValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (GetActivationCodeRequestValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (GetActivationCodeRequestValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (GetActivationCodeRequestValidationError) Field added in v2.8.0

Field function returns field value.

func (GetActivationCodeRequestValidationError) Key added in v2.8.0

Key function returns key value.

func (GetActivationCodeRequestValidationError) Reason added in v2.8.0

Reason function returns reason value.

type GetActivationCodeResponse

type GetActivationCodeResponse struct {
	State          State      `protobuf:"varint,1,opt,name=state,proto3,enum=enterprise_v2.State" json:"state,omitempty"`
	Info           *TokenInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	ActivationCode string     `protobuf:"bytes,3,opt,name=activation_code,json=activationCode,proto3" json:"activation_code,omitempty"`
	// contains filtered or unexported fields
}

func (*GetActivationCodeResponse) Descriptor deprecated

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

Deprecated: Use GetActivationCodeResponse.ProtoReflect.Descriptor instead.

func (*GetActivationCodeResponse) GetActivationCode

func (x *GetActivationCodeResponse) GetActivationCode() string

func (*GetActivationCodeResponse) GetInfo

func (x *GetActivationCodeResponse) GetInfo() *TokenInfo

func (*GetActivationCodeResponse) GetState

func (x *GetActivationCodeResponse) GetState() State

func (*GetActivationCodeResponse) MarshalLogObject

func (x *GetActivationCodeResponse) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*GetActivationCodeResponse) ProtoMessage

func (*GetActivationCodeResponse) ProtoMessage()

func (*GetActivationCodeResponse) ProtoReflect added in v2.7.0

func (*GetActivationCodeResponse) Reset

func (x *GetActivationCodeResponse) Reset()

func (*GetActivationCodeResponse) String

func (x *GetActivationCodeResponse) String() string

func (*GetActivationCodeResponse) Validate added in v2.8.0

func (m *GetActivationCodeResponse) Validate() error

Validate checks the field values on GetActivationCodeResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetActivationCodeResponse) ValidateAll added in v2.8.0

func (m *GetActivationCodeResponse) ValidateAll() error

ValidateAll checks the field values on GetActivationCodeResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetActivationCodeResponseMultiError, or nil if none found.

type GetActivationCodeResponseMultiError added in v2.8.0

type GetActivationCodeResponseMultiError []error

GetActivationCodeResponseMultiError is an error wrapping multiple validation errors returned by GetActivationCodeResponse.ValidateAll() if the designated constraints aren't met.

func (GetActivationCodeResponseMultiError) AllErrors added in v2.8.0

AllErrors returns a list of validation violation errors.

func (GetActivationCodeResponseMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type GetActivationCodeResponseValidationError added in v2.8.0

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

GetActivationCodeResponseValidationError is the validation error returned by GetActivationCodeResponse.Validate if the designated constraints aren't met.

func (GetActivationCodeResponseValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (GetActivationCodeResponseValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (GetActivationCodeResponseValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (GetActivationCodeResponseValidationError) Field added in v2.8.0

Field function returns field value.

func (GetActivationCodeResponseValidationError) Key added in v2.8.0

Key function returns key value.

func (GetActivationCodeResponseValidationError) Reason added in v2.8.0

Reason function returns reason value.

type GetStateRequest

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

func (*GetStateRequest) Descriptor deprecated

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

Deprecated: Use GetStateRequest.ProtoReflect.Descriptor instead.

func (*GetStateRequest) MarshalLogObject

func (x *GetStateRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*GetStateRequest) ProtoMessage

func (*GetStateRequest) ProtoMessage()

func (*GetStateRequest) ProtoReflect added in v2.7.0

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

func (*GetStateRequest) Reset

func (x *GetStateRequest) Reset()

func (*GetStateRequest) String

func (x *GetStateRequest) String() string

func (*GetStateRequest) Validate added in v2.8.0

func (m *GetStateRequest) Validate() error

Validate checks the field values on GetStateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetStateRequest) ValidateAll added in v2.8.0

func (m *GetStateRequest) ValidateAll() error

ValidateAll checks the field values on GetStateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetStateRequestMultiError, or nil if none found.

type GetStateRequestMultiError added in v2.8.0

type GetStateRequestMultiError []error

GetStateRequestMultiError is an error wrapping multiple validation errors returned by GetStateRequest.ValidateAll() if the designated constraints aren't met.

func (GetStateRequestMultiError) AllErrors added in v2.8.0

func (m GetStateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetStateRequestMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type GetStateRequestValidationError added in v2.8.0

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

GetStateRequestValidationError is the validation error returned by GetStateRequest.Validate if the designated constraints aren't met.

func (GetStateRequestValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (GetStateRequestValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (GetStateRequestValidationError) ErrorName added in v2.8.0

func (e GetStateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetStateRequestValidationError) Field added in v2.8.0

Field function returns field value.

func (GetStateRequestValidationError) Key added in v2.8.0

Key function returns key value.

func (GetStateRequestValidationError) Reason added in v2.8.0

Reason function returns reason value.

type GetStateResponse

type GetStateResponse struct {
	State State      `protobuf:"varint,1,opt,name=state,proto3,enum=enterprise_v2.State" json:"state,omitempty"`
	Info  *TokenInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// activation_code will always be an empty string,
	// call GetEnterpriseCode to get the activation code
	ActivationCode string `protobuf:"bytes,3,opt,name=activation_code,json=activationCode,proto3" json:"activation_code,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStateResponse) Descriptor deprecated

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

Deprecated: Use GetStateResponse.ProtoReflect.Descriptor instead.

func (*GetStateResponse) GetActivationCode

func (x *GetStateResponse) GetActivationCode() string

func (*GetStateResponse) GetInfo

func (x *GetStateResponse) GetInfo() *TokenInfo

func (*GetStateResponse) GetState

func (x *GetStateResponse) GetState() State

func (*GetStateResponse) MarshalLogObject

func (x *GetStateResponse) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*GetStateResponse) ProtoMessage

func (*GetStateResponse) ProtoMessage()

func (*GetStateResponse) ProtoReflect added in v2.7.0

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

func (*GetStateResponse) Reset

func (x *GetStateResponse) Reset()

func (*GetStateResponse) String

func (x *GetStateResponse) String() string

func (*GetStateResponse) Validate added in v2.8.0

func (m *GetStateResponse) Validate() error

Validate checks the field values on GetStateResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetStateResponse) ValidateAll added in v2.8.0

func (m *GetStateResponse) ValidateAll() error

ValidateAll checks the field values on GetStateResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetStateResponseMultiError, or nil if none found.

type GetStateResponseMultiError added in v2.8.0

type GetStateResponseMultiError []error

GetStateResponseMultiError is an error wrapping multiple validation errors returned by GetStateResponse.ValidateAll() if the designated constraints aren't met.

func (GetStateResponseMultiError) AllErrors added in v2.8.0

func (m GetStateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetStateResponseMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type GetStateResponseValidationError added in v2.8.0

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

GetStateResponseValidationError is the validation error returned by GetStateResponse.Validate if the designated constraints aren't met.

func (GetStateResponseValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (GetStateResponseValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (GetStateResponseValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (GetStateResponseValidationError) Field added in v2.8.0

Field function returns field value.

func (GetStateResponseValidationError) Key added in v2.8.0

Key function returns key value.

func (GetStateResponseValidationError) Reason added in v2.8.0

Reason function returns reason value.

type HeartbeatRequest

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

Heartbeat in the enterprise service just triggers a heartbeat for testing purposes. The RPC used to communicate with the license service is defined in the license service.

func (*HeartbeatRequest) Descriptor deprecated

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

Deprecated: Use HeartbeatRequest.ProtoReflect.Descriptor instead.

func (*HeartbeatRequest) MarshalLogObject

func (x *HeartbeatRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*HeartbeatRequest) ProtoMessage

func (*HeartbeatRequest) ProtoMessage()

func (*HeartbeatRequest) ProtoReflect added in v2.7.0

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

func (*HeartbeatRequest) Reset

func (x *HeartbeatRequest) Reset()

func (*HeartbeatRequest) String

func (x *HeartbeatRequest) String() string

func (*HeartbeatRequest) Validate added in v2.8.0

func (m *HeartbeatRequest) Validate() error

Validate checks the field values on HeartbeatRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HeartbeatRequest) ValidateAll added in v2.8.0

func (m *HeartbeatRequest) ValidateAll() error

ValidateAll checks the field values on HeartbeatRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HeartbeatRequestMultiError, or nil if none found.

type HeartbeatRequestMultiError added in v2.8.0

type HeartbeatRequestMultiError []error

HeartbeatRequestMultiError is an error wrapping multiple validation errors returned by HeartbeatRequest.ValidateAll() if the designated constraints aren't met.

func (HeartbeatRequestMultiError) AllErrors added in v2.8.0

func (m HeartbeatRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeartbeatRequestMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type HeartbeatRequestValidationError added in v2.8.0

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

HeartbeatRequestValidationError is the validation error returned by HeartbeatRequest.Validate if the designated constraints aren't met.

func (HeartbeatRequestValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (HeartbeatRequestValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (HeartbeatRequestValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (HeartbeatRequestValidationError) Field added in v2.8.0

Field function returns field value.

func (HeartbeatRequestValidationError) Key added in v2.8.0

Key function returns key value.

func (HeartbeatRequestValidationError) Reason added in v2.8.0

Reason function returns reason value.

type HeartbeatResponse

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

func (*HeartbeatResponse) Descriptor deprecated

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

Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead.

func (*HeartbeatResponse) MarshalLogObject

func (x *HeartbeatResponse) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*HeartbeatResponse) ProtoMessage

func (*HeartbeatResponse) ProtoMessage()

func (*HeartbeatResponse) ProtoReflect added in v2.7.0

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

func (*HeartbeatResponse) Reset

func (x *HeartbeatResponse) Reset()

func (*HeartbeatResponse) String

func (x *HeartbeatResponse) String() string

func (*HeartbeatResponse) Validate added in v2.8.0

func (m *HeartbeatResponse) Validate() error

Validate checks the field values on HeartbeatResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HeartbeatResponse) ValidateAll added in v2.8.0

func (m *HeartbeatResponse) ValidateAll() error

ValidateAll checks the field values on HeartbeatResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HeartbeatResponseMultiError, or nil if none found.

type HeartbeatResponseMultiError added in v2.8.0

type HeartbeatResponseMultiError []error

HeartbeatResponseMultiError is an error wrapping multiple validation errors returned by HeartbeatResponse.ValidateAll() if the designated constraints aren't met.

func (HeartbeatResponseMultiError) AllErrors added in v2.8.0

func (m HeartbeatResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeartbeatResponseMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type HeartbeatResponseValidationError added in v2.8.0

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

HeartbeatResponseValidationError is the validation error returned by HeartbeatResponse.Validate if the designated constraints aren't met.

func (HeartbeatResponseValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (HeartbeatResponseValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (HeartbeatResponseValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (HeartbeatResponseValidationError) Field added in v2.8.0

Field function returns field value.

func (HeartbeatResponseValidationError) Key added in v2.8.0

Key function returns key value.

func (HeartbeatResponseValidationError) Reason added in v2.8.0

Reason function returns reason value.

type LicenseRecord

type LicenseRecord struct {
	ActivationCode string                 `protobuf:"bytes,1,opt,name=activation_code,json=activationCode,proto3" json:"activation_code,omitempty"`
	Expires        *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"`
	// contains filtered or unexported fields
}

LicenseRecord is the record we store in etcd for a Pachyderm enterprise token that has been provided to a Pachyderm license server

func (*LicenseRecord) Descriptor deprecated

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

Deprecated: Use LicenseRecord.ProtoReflect.Descriptor instead.

func (*LicenseRecord) GetActivationCode

func (x *LicenseRecord) GetActivationCode() string

func (*LicenseRecord) GetExpires

func (x *LicenseRecord) GetExpires() *timestamppb.Timestamp

func (*LicenseRecord) MarshalLogObject

func (x *LicenseRecord) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*LicenseRecord) ProtoMessage

func (*LicenseRecord) ProtoMessage()

func (*LicenseRecord) ProtoReflect added in v2.7.0

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

func (*LicenseRecord) Reset

func (x *LicenseRecord) Reset()

func (*LicenseRecord) String

func (x *LicenseRecord) String() string

func (*LicenseRecord) Validate added in v2.8.0

func (m *LicenseRecord) Validate() error

Validate checks the field values on LicenseRecord with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LicenseRecord) ValidateAll added in v2.8.0

func (m *LicenseRecord) ValidateAll() error

ValidateAll checks the field values on LicenseRecord with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LicenseRecordMultiError, or nil if none found.

type LicenseRecordMultiError added in v2.8.0

type LicenseRecordMultiError []error

LicenseRecordMultiError is an error wrapping multiple validation errors returned by LicenseRecord.ValidateAll() if the designated constraints aren't met.

func (LicenseRecordMultiError) AllErrors added in v2.8.0

func (m LicenseRecordMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LicenseRecordMultiError) Error added in v2.8.0

func (m LicenseRecordMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LicenseRecordValidationError added in v2.8.0

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

LicenseRecordValidationError is the validation error returned by LicenseRecord.Validate if the designated constraints aren't met.

func (LicenseRecordValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (LicenseRecordValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (LicenseRecordValidationError) ErrorName added in v2.8.0

func (e LicenseRecordValidationError) ErrorName() string

ErrorName returns error name.

func (LicenseRecordValidationError) Field added in v2.8.0

Field function returns field value.

func (LicenseRecordValidationError) Key added in v2.8.0

Key function returns key value.

func (LicenseRecordValidationError) Reason added in v2.8.0

Reason function returns reason value.

type PauseRequest

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

func (*PauseRequest) Descriptor deprecated

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

Deprecated: Use PauseRequest.ProtoReflect.Descriptor instead.

func (*PauseRequest) MarshalLogObject

func (x *PauseRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*PauseRequest) ProtoMessage

func (*PauseRequest) ProtoMessage()

func (*PauseRequest) ProtoReflect added in v2.7.0

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

func (*PauseRequest) Reset

func (x *PauseRequest) Reset()

func (*PauseRequest) String

func (x *PauseRequest) String() string

func (*PauseRequest) Validate added in v2.8.0

func (m *PauseRequest) Validate() error

Validate checks the field values on PauseRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PauseRequest) ValidateAll added in v2.8.0

func (m *PauseRequest) ValidateAll() error

ValidateAll checks the field values on PauseRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PauseRequestMultiError, or nil if none found.

type PauseRequestMultiError added in v2.8.0

type PauseRequestMultiError []error

PauseRequestMultiError is an error wrapping multiple validation errors returned by PauseRequest.ValidateAll() if the designated constraints aren't met.

func (PauseRequestMultiError) AllErrors added in v2.8.0

func (m PauseRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PauseRequestMultiError) Error added in v2.8.0

func (m PauseRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PauseRequestValidationError added in v2.8.0

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

PauseRequestValidationError is the validation error returned by PauseRequest.Validate if the designated constraints aren't met.

func (PauseRequestValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (PauseRequestValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (PauseRequestValidationError) ErrorName added in v2.8.0

func (e PauseRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PauseRequestValidationError) Field added in v2.8.0

Field function returns field value.

func (PauseRequestValidationError) Key added in v2.8.0

Key function returns key value.

func (PauseRequestValidationError) Reason added in v2.8.0

Reason function returns reason value.

type PauseResponse

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

func (*PauseResponse) Descriptor deprecated

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

Deprecated: Use PauseResponse.ProtoReflect.Descriptor instead.

func (*PauseResponse) MarshalLogObject

func (x *PauseResponse) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*PauseResponse) ProtoMessage

func (*PauseResponse) ProtoMessage()

func (*PauseResponse) ProtoReflect added in v2.7.0

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

func (*PauseResponse) Reset

func (x *PauseResponse) Reset()

func (*PauseResponse) String

func (x *PauseResponse) String() string

func (*PauseResponse) Validate added in v2.8.0

func (m *PauseResponse) Validate() error

Validate checks the field values on PauseResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PauseResponse) ValidateAll added in v2.8.0

func (m *PauseResponse) ValidateAll() error

ValidateAll checks the field values on PauseResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PauseResponseMultiError, or nil if none found.

type PauseResponseMultiError added in v2.8.0

type PauseResponseMultiError []error

PauseResponseMultiError is an error wrapping multiple validation errors returned by PauseResponse.ValidateAll() if the designated constraints aren't met.

func (PauseResponseMultiError) AllErrors added in v2.8.0

func (m PauseResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PauseResponseMultiError) Error added in v2.8.0

func (m PauseResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PauseResponseValidationError added in v2.8.0

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

PauseResponseValidationError is the validation error returned by PauseResponse.Validate if the designated constraints aren't met.

func (PauseResponseValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (PauseResponseValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (PauseResponseValidationError) ErrorName added in v2.8.0

func (e PauseResponseValidationError) ErrorName() string

ErrorName returns error name.

func (PauseResponseValidationError) Field added in v2.8.0

Field function returns field value.

func (PauseResponseValidationError) Key added in v2.8.0

Key function returns key value.

func (PauseResponseValidationError) Reason added in v2.8.0

Reason function returns reason value.

type PauseStatusRequest

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

func (*PauseStatusRequest) Descriptor deprecated

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

Deprecated: Use PauseStatusRequest.ProtoReflect.Descriptor instead.

func (*PauseStatusRequest) MarshalLogObject

func (x *PauseStatusRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*PauseStatusRequest) ProtoMessage

func (*PauseStatusRequest) ProtoMessage()

func (*PauseStatusRequest) ProtoReflect added in v2.7.0

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

func (*PauseStatusRequest) Reset

func (x *PauseStatusRequest) Reset()

func (*PauseStatusRequest) String

func (x *PauseStatusRequest) String() string

func (*PauseStatusRequest) Validate added in v2.8.0

func (m *PauseStatusRequest) Validate() error

Validate checks the field values on PauseStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PauseStatusRequest) ValidateAll added in v2.8.0

func (m *PauseStatusRequest) ValidateAll() error

ValidateAll checks the field values on PauseStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PauseStatusRequestMultiError, or nil if none found.

type PauseStatusRequestMultiError added in v2.8.0

type PauseStatusRequestMultiError []error

PauseStatusRequestMultiError is an error wrapping multiple validation errors returned by PauseStatusRequest.ValidateAll() if the designated constraints aren't met.

func (PauseStatusRequestMultiError) AllErrors added in v2.8.0

func (m PauseStatusRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PauseStatusRequestMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type PauseStatusRequestValidationError added in v2.8.0

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

PauseStatusRequestValidationError is the validation error returned by PauseStatusRequest.Validate if the designated constraints aren't met.

func (PauseStatusRequestValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (PauseStatusRequestValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (PauseStatusRequestValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (PauseStatusRequestValidationError) Field added in v2.8.0

Field function returns field value.

func (PauseStatusRequestValidationError) Key added in v2.8.0

Key function returns key value.

func (PauseStatusRequestValidationError) Reason added in v2.8.0

Reason function returns reason value.

type PauseStatusResponse

type PauseStatusResponse struct {
	Status PauseStatusResponse_PauseStatus `protobuf:"varint,1,opt,name=status,proto3,enum=enterprise_v2.PauseStatusResponse_PauseStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*PauseStatusResponse) Descriptor deprecated

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

Deprecated: Use PauseStatusResponse.ProtoReflect.Descriptor instead.

func (*PauseStatusResponse) GetStatus

func (*PauseStatusResponse) MarshalLogObject

func (x *PauseStatusResponse) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*PauseStatusResponse) ProtoMessage

func (*PauseStatusResponse) ProtoMessage()

func (*PauseStatusResponse) ProtoReflect added in v2.7.0

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

func (*PauseStatusResponse) Reset

func (x *PauseStatusResponse) Reset()

func (*PauseStatusResponse) String

func (x *PauseStatusResponse) String() string

func (*PauseStatusResponse) Validate added in v2.8.0

func (m *PauseStatusResponse) Validate() error

Validate checks the field values on PauseStatusResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PauseStatusResponse) ValidateAll added in v2.8.0

func (m *PauseStatusResponse) ValidateAll() error

ValidateAll checks the field values on PauseStatusResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PauseStatusResponseMultiError, or nil if none found.

type PauseStatusResponseMultiError added in v2.8.0

type PauseStatusResponseMultiError []error

PauseStatusResponseMultiError is an error wrapping multiple validation errors returned by PauseStatusResponse.ValidateAll() if the designated constraints aren't met.

func (PauseStatusResponseMultiError) AllErrors added in v2.8.0

func (m PauseStatusResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PauseStatusResponseMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type PauseStatusResponseValidationError added in v2.8.0

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

PauseStatusResponseValidationError is the validation error returned by PauseStatusResponse.Validate if the designated constraints aren't met.

func (PauseStatusResponseValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (PauseStatusResponseValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (PauseStatusResponseValidationError) ErrorName added in v2.8.0

ErrorName returns error name.

func (PauseStatusResponseValidationError) Field added in v2.8.0

Field function returns field value.

func (PauseStatusResponseValidationError) Key added in v2.8.0

Key function returns key value.

func (PauseStatusResponseValidationError) Reason added in v2.8.0

Reason function returns reason value.

type PauseStatusResponse_PauseStatus

type PauseStatusResponse_PauseStatus int32
const (
	PauseStatusResponse_UNPAUSED         PauseStatusResponse_PauseStatus = 0
	PauseStatusResponse_PARTIALLY_PAUSED PauseStatusResponse_PauseStatus = 1
	PauseStatusResponse_PAUSED           PauseStatusResponse_PauseStatus = 2
)

func (PauseStatusResponse_PauseStatus) Descriptor added in v2.7.0

func (PauseStatusResponse_PauseStatus) Enum added in v2.7.0

func (PauseStatusResponse_PauseStatus) EnumDescriptor deprecated

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

Deprecated: Use PauseStatusResponse_PauseStatus.Descriptor instead.

func (PauseStatusResponse_PauseStatus) Number added in v2.7.0

func (PauseStatusResponse_PauseStatus) String

func (PauseStatusResponse_PauseStatus) Type added in v2.7.0

type State

type State int32
const (
	State_NONE             State = 0
	State_ACTIVE           State = 1
	State_EXPIRED          State = 2
	State_HEARTBEAT_FAILED State = 3
)

func (State) Descriptor added in v2.7.0

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum added in v2.7.0

func (x State) Enum() *State

func (State) EnumDescriptor deprecated

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

Deprecated: Use State.Descriptor instead.

func (State) Number added in v2.7.0

func (x State) Number() protoreflect.EnumNumber

func (State) String

func (x State) String() string

func (State) Type added in v2.7.0

func (State) Type() protoreflect.EnumType

type TokenInfo

type TokenInfo struct {

	// expires indicates when the current token expires (unset if there is no
	// current token)
	Expires *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=expires,proto3" json:"expires,omitempty"`
	// contains filtered or unexported fields
}

TokenInfo contains information about the currently active enterprise token

func (*TokenInfo) Descriptor deprecated

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

Deprecated: Use TokenInfo.ProtoReflect.Descriptor instead.

func (*TokenInfo) GetExpires

func (x *TokenInfo) GetExpires() *timestamppb.Timestamp

func (*TokenInfo) MarshalLogObject

func (x *TokenInfo) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*TokenInfo) ProtoMessage

func (*TokenInfo) ProtoMessage()

func (*TokenInfo) ProtoReflect added in v2.7.0

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

func (*TokenInfo) Reset

func (x *TokenInfo) Reset()

func (*TokenInfo) String

func (x *TokenInfo) String() string

func (*TokenInfo) Validate added in v2.8.0

func (m *TokenInfo) Validate() error

Validate checks the field values on TokenInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TokenInfo) ValidateAll added in v2.8.0

func (m *TokenInfo) ValidateAll() error

ValidateAll checks the field values on TokenInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TokenInfoMultiError, or nil if none found.

type TokenInfoMultiError added in v2.8.0

type TokenInfoMultiError []error

TokenInfoMultiError is an error wrapping multiple validation errors returned by TokenInfo.ValidateAll() if the designated constraints aren't met.

func (TokenInfoMultiError) AllErrors added in v2.8.0

func (m TokenInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TokenInfoMultiError) Error added in v2.8.0

func (m TokenInfoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TokenInfoValidationError added in v2.8.0

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

TokenInfoValidationError is the validation error returned by TokenInfo.Validate if the designated constraints aren't met.

func (TokenInfoValidationError) Cause added in v2.8.0

func (e TokenInfoValidationError) Cause() error

Cause function returns cause value.

func (TokenInfoValidationError) Error added in v2.8.0

func (e TokenInfoValidationError) Error() string

Error satisfies the builtin error interface

func (TokenInfoValidationError) ErrorName added in v2.8.0

func (e TokenInfoValidationError) ErrorName() string

ErrorName returns error name.

func (TokenInfoValidationError) Field added in v2.8.0

func (e TokenInfoValidationError) Field() string

Field function returns field value.

func (TokenInfoValidationError) Key added in v2.8.0

Key function returns key value.

func (TokenInfoValidationError) Reason added in v2.8.0

func (e TokenInfoValidationError) Reason() string

Reason function returns reason value.

type UnimplementedAPIServer

type UnimplementedAPIServer struct {
}

UnimplementedAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedAPIServer) Activate

func (UnimplementedAPIServer) Deactivate

func (UnimplementedAPIServer) GetState

func (UnimplementedAPIServer) Heartbeat

func (UnimplementedAPIServer) Pause

func (UnimplementedAPIServer) PauseStatus

func (UnimplementedAPIServer) Unpause

type UnpauseRequest

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

func (*UnpauseRequest) Descriptor deprecated

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

Deprecated: Use UnpauseRequest.ProtoReflect.Descriptor instead.

func (*UnpauseRequest) MarshalLogObject

func (x *UnpauseRequest) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*UnpauseRequest) ProtoMessage

func (*UnpauseRequest) ProtoMessage()

func (*UnpauseRequest) ProtoReflect added in v2.7.0

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

func (*UnpauseRequest) Reset

func (x *UnpauseRequest) Reset()

func (*UnpauseRequest) String

func (x *UnpauseRequest) String() string

func (*UnpauseRequest) Validate added in v2.8.0

func (m *UnpauseRequest) Validate() error

Validate checks the field values on UnpauseRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UnpauseRequest) ValidateAll added in v2.8.0

func (m *UnpauseRequest) ValidateAll() error

ValidateAll checks the field values on UnpauseRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UnpauseRequestMultiError, or nil if none found.

type UnpauseRequestMultiError added in v2.8.0

type UnpauseRequestMultiError []error

UnpauseRequestMultiError is an error wrapping multiple validation errors returned by UnpauseRequest.ValidateAll() if the designated constraints aren't met.

func (UnpauseRequestMultiError) AllErrors added in v2.8.0

func (m UnpauseRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnpauseRequestMultiError) Error added in v2.8.0

func (m UnpauseRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UnpauseRequestValidationError added in v2.8.0

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

UnpauseRequestValidationError is the validation error returned by UnpauseRequest.Validate if the designated constraints aren't met.

func (UnpauseRequestValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (UnpauseRequestValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (UnpauseRequestValidationError) ErrorName added in v2.8.0

func (e UnpauseRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UnpauseRequestValidationError) Field added in v2.8.0

Field function returns field value.

func (UnpauseRequestValidationError) Key added in v2.8.0

Key function returns key value.

func (UnpauseRequestValidationError) Reason added in v2.8.0

Reason function returns reason value.

type UnpauseResponse

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

func (*UnpauseResponse) Descriptor deprecated

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

Deprecated: Use UnpauseResponse.ProtoReflect.Descriptor instead.

func (*UnpauseResponse) MarshalLogObject

func (x *UnpauseResponse) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*UnpauseResponse) ProtoMessage

func (*UnpauseResponse) ProtoMessage()

func (*UnpauseResponse) ProtoReflect added in v2.7.0

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

func (*UnpauseResponse) Reset

func (x *UnpauseResponse) Reset()

func (*UnpauseResponse) String

func (x *UnpauseResponse) String() string

func (*UnpauseResponse) Validate added in v2.8.0

func (m *UnpauseResponse) Validate() error

Validate checks the field values on UnpauseResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UnpauseResponse) ValidateAll added in v2.8.0

func (m *UnpauseResponse) ValidateAll() error

ValidateAll checks the field values on UnpauseResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UnpauseResponseMultiError, or nil if none found.

type UnpauseResponseMultiError added in v2.8.0

type UnpauseResponseMultiError []error

UnpauseResponseMultiError is an error wrapping multiple validation errors returned by UnpauseResponse.ValidateAll() if the designated constraints aren't met.

func (UnpauseResponseMultiError) AllErrors added in v2.8.0

func (m UnpauseResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnpauseResponseMultiError) Error added in v2.8.0

Error returns a concatenation of all the error messages it wraps.

type UnpauseResponseValidationError added in v2.8.0

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

UnpauseResponseValidationError is the validation error returned by UnpauseResponse.Validate if the designated constraints aren't met.

func (UnpauseResponseValidationError) Cause added in v2.8.0

Cause function returns cause value.

func (UnpauseResponseValidationError) Error added in v2.8.0

Error satisfies the builtin error interface

func (UnpauseResponseValidationError) ErrorName added in v2.8.0

func (e UnpauseResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UnpauseResponseValidationError) Field added in v2.8.0

Field function returns field value.

func (UnpauseResponseValidationError) Key added in v2.8.0

Key function returns key value.

func (UnpauseResponseValidationError) Reason added in v2.8.0

Reason function returns reason value.

type UnsafeAPIServer added in v2.7.0

type UnsafeAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServer will result in compilation errors.

Jump to

Keyboard shortcuts

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