Documentation ¶
Index ¶
- Variables
- type Worker
- func (*Worker) Descriptor() ([]byte, []int)deprecated
- func (x *Worker) GetActiveConnectionCount() *wrapperspb.UInt32Value
- func (x *Worker) GetAddress() string
- func (x *Worker) GetApiTags() map[string]*structpb.ListValue
- func (x *Worker) GetAuthorizedActions() []string
- func (x *Worker) GetCanonicalTags() map[string]*structpb.ListValue
- func (x *Worker) GetConfigTags() map[string]*structpb.ListValue
- func (x *Worker) GetCreatedTime() *timestamppb.Timestamp
- func (x *Worker) GetDescription() *wrapperspb.StringValue
- func (x *Worker) GetId() string
- func (x *Worker) GetLastStatusTime() *timestamppb.Timestamp
- func (x *Worker) GetName() *wrapperspb.StringValue
- func (x *Worker) GetScope() *scopes.ScopeInfo
- func (x *Worker) GetScopeId() string
- func (x *Worker) GetType() string
- func (x *Worker) GetUpdatedTime() *timestamppb.Timestamp
- func (x *Worker) GetVersion() uint32
- func (x *Worker) GetWorkerGeneratedAuthToken() *wrapperspb.StringValue
- func (*Worker) ProtoMessage()
- func (x *Worker) ProtoReflect() protoreflect.Message
- func (x *Worker) Reset()
- func (x *Worker) String() string
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) GetActiveConnectionCount ¶
func (x *Worker) GetActiveConnectionCount() *wrapperspb.UInt32Value
func (*Worker) GetAddress ¶
func (*Worker) GetApiTags ¶ added in v0.0.18
func (*Worker) GetAuthorizedActions ¶
func (*Worker) GetCanonicalTags ¶
func (*Worker) GetCreatedTime ¶
func (x *Worker) GetCreatedTime() *timestamppb.Timestamp
func (*Worker) GetDescription ¶
func (x *Worker) GetDescription() *wrapperspb.StringValue
func (*Worker) GetLastStatusTime ¶
func (x *Worker) GetLastStatusTime() *timestamppb.Timestamp
func (*Worker) GetName ¶
func (x *Worker) GetName() *wrapperspb.StringValue
func (*Worker) GetScopeId ¶
func (*Worker) GetUpdatedTime ¶
func (x *Worker) GetUpdatedTime() *timestamppb.Timestamp
func (*Worker) GetVersion ¶
func (*Worker) GetWorkerGeneratedAuthToken ¶
func (x *Worker) GetWorkerGeneratedAuthToken() *wrapperspb.StringValue
func (*Worker) ProtoMessage ¶
func (*Worker) ProtoMessage()
func (*Worker) ProtoReflect ¶
func (x *Worker) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.