workers

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_controller_api_resources_workers_v1_worker_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Worker

type Worker struct {

	// Output only. The ID of the User.
	Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"`
	// The ID of the Scope this resource is in.
	ScopeId string `protobuf:"bytes,20,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. Scope information for this resource.
	Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
	// Optional name for identification purposes. Can only be set through the API
	// for `pki`-type workers; read-only for `kms`-type workers.
	Name *wrapperspb.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
	// Optional user-set description for identification purposes. Can only be set
	// through the API for `pki`-type workers; read-only for `kms`-type workers.
	Description *wrapperspb.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
	// Output only. The time this resource was created.
	CreatedTime *timestamppb.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The time this resource was last updated.
	UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty" class:"public"` // @gotags: `class:"public"`
	// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
	// The mutation will fail if the version does not match the latest known good version.
	Version uint32 `protobuf:"varint,80,opt,name=version,proto3" json:"version,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The address that this worker is reachable at, as sourced from
	// the worker's configuration file.
	Address string `protobuf:"bytes,90,opt,name=address,proto3" json:"address,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The deduplicated union of the tags reported by the worker from
	// its configuration and any tags added through other means.  This is used
	// when applying worker filters.
	CanonicalTags map[string]*structpb.ListValue `` // @gotags: `class:"public"`
	/* 186-byte string literal not displayed */
	// Output only. The tags set in the worker's configuration file.
	ConfigTags map[string]*structpb.ListValue `` // @gotags: `class:"public"`
	/* 180-byte string literal not displayed */
	// Output only. The time this worker daemon last reported its status.
	LastStatusTime *timestamppb.Timestamp `protobuf:"bytes,140,opt,name=last_status_time,proto3" json:"last_status_time,omitempty" class:"public"` // @gotags: `class:"public"`
	// worker_generated_auth_token is input only. Supports the worker led node
	// enrollment flow where this credentials token is produced by a worker. This
	// token is a base58 encoded types.FetchNodeCredentialsRequest from
	// https://github.com/hashicorp/nodeenrollment
	WorkerGeneratedAuthToken *wrapperspb.StringValue `protobuf:"bytes,150,opt,name=worker_generated_auth_token,proto3" json:"worker_generated_auth_token,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The number of connections that this worker is currently handling.
	ActiveConnectionCount *wrapperspb.UInt32Value `protobuf:"bytes,160,opt,name=active_connection_count,proto3" json:"active_connection_count,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The type of the worker, denoted by how it authenticates: `pki`
	// or `kms`.
	Type string `protobuf:"bytes,170,opt,name=type,proto3" json:"type,omitempty"`
	// Output only. The api tags set for the worker.
	ApiTags map[string]*structpb.ListValue `` // @gotags: `class:"public"`
	/* 174-byte string literal not displayed */
	// Output only. The available actions on this resource for the requester.
	AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public"` // @gotags: `class:"public"`
	// contains filtered or unexported fields
}

Worker contains all fields related to a Worker resource

func (*Worker) Descriptor deprecated

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

Deprecated: Use Worker.ProtoReflect.Descriptor instead.

func (*Worker) GetActiveConnectionCount

func (x *Worker) GetActiveConnectionCount() *wrapperspb.UInt32Value

func (*Worker) GetAddress

func (x *Worker) GetAddress() string

func (*Worker) GetApiTags added in v0.0.18

func (x *Worker) GetApiTags() map[string]*structpb.ListValue

func (*Worker) GetAuthorizedActions

func (x *Worker) GetAuthorizedActions() []string

func (*Worker) GetCanonicalTags

func (x *Worker) GetCanonicalTags() map[string]*structpb.ListValue

func (*Worker) GetConfigTags

func (x *Worker) GetConfigTags() map[string]*structpb.ListValue

func (*Worker) GetCreatedTime

func (x *Worker) GetCreatedTime() *timestamppb.Timestamp

func (*Worker) GetDescription

func (x *Worker) GetDescription() *wrapperspb.StringValue

func (*Worker) GetId

func (x *Worker) GetId() string

func (*Worker) GetLastStatusTime

func (x *Worker) GetLastStatusTime() *timestamppb.Timestamp

func (*Worker) GetName

func (x *Worker) GetName() *wrapperspb.StringValue

func (*Worker) GetScope

func (x *Worker) GetScope() *scopes.ScopeInfo

func (*Worker) GetScopeId

func (x *Worker) GetScopeId() string

func (*Worker) GetType

func (x *Worker) GetType() string

func (*Worker) GetUpdatedTime

func (x *Worker) GetUpdatedTime() *timestamppb.Timestamp

func (*Worker) GetVersion

func (x *Worker) GetVersion() uint32

func (*Worker) GetWorkerGeneratedAuthToken

func (x *Worker) GetWorkerGeneratedAuthToken() *wrapperspb.StringValue

func (*Worker) ProtoMessage

func (*Worker) ProtoMessage()

func (*Worker) ProtoReflect

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

func (*Worker) Reset

func (x *Worker) Reset()

func (*Worker) String

func (x *Worker) String() string

Jump to

Keyboard shortcuts

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