Documentation
¶
Index ¶
- Variables
- type HostSet
- type SessionAuthorization
- func (*SessionAuthorization) Descriptor() ([]byte, []int)deprecated
- func (x *SessionAuthorization) GetAuthorizationToken() string
- func (x *SessionAuthorization) GetCreatedTime() *timestamp.Timestamp
- func (x *SessionAuthorization) GetHostId() string
- func (x *SessionAuthorization) GetHostSetId() string
- func (x *SessionAuthorization) GetScope() *scopes.ScopeInfo
- func (x *SessionAuthorization) GetSessionId() string
- func (x *SessionAuthorization) GetTargetId() string
- func (x *SessionAuthorization) GetType() string
- func (x *SessionAuthorization) GetUserId() string
- func (*SessionAuthorization) ProtoMessage()
- func (x *SessionAuthorization) ProtoReflect() protoreflect.Message
- func (x *SessionAuthorization) Reset()
- func (x *SessionAuthorization) String() string
- type SessionAuthorizationData
- func (*SessionAuthorizationData) Descriptor() ([]byte, []int)deprecated
- func (x *SessionAuthorizationData) GetCertificate() []byte
- func (x *SessionAuthorizationData) GetConnectionLimit() int32
- func (x *SessionAuthorizationData) GetCreatedTime() *timestamp.Timestamp
- func (x *SessionAuthorizationData) GetPrivateKey() []byte
- func (x *SessionAuthorizationData) GetScope() *scopes.ScopeInfo
- func (x *SessionAuthorizationData) GetSessionId() string
- func (x *SessionAuthorizationData) GetTargetId() string
- func (x *SessionAuthorizationData) GetType() string
- func (x *SessionAuthorizationData) GetWorkerInfo() []*WorkerInfo
- func (*SessionAuthorizationData) ProtoMessage()
- func (x *SessionAuthorizationData) ProtoReflect() protoreflect.Message
- func (x *SessionAuthorizationData) Reset()
- func (x *SessionAuthorizationData) String() string
- type Target
- func (*Target) Descriptor() ([]byte, []int)deprecated
- func (x *Target) GetAttributes() *_struct.Struct
- func (x *Target) GetCreatedTime() *timestamp.Timestamp
- func (x *Target) GetDescription() *wrappers.StringValue
- func (x *Target) GetHostSetIds() []string
- func (x *Target) GetHostSets() []*HostSet
- func (x *Target) GetId() string
- func (x *Target) GetName() *wrappers.StringValue
- func (x *Target) GetScope() *scopes.ScopeInfo
- func (x *Target) GetScopeId() string
- func (x *Target) GetSessionConnectionLimit() *wrappers.Int32Value
- func (x *Target) GetSessionMaxSeconds() *wrappers.UInt32Value
- func (x *Target) GetType() string
- func (x *Target) GetUpdatedTime() *timestamp.Timestamp
- func (x *Target) GetVersion() uint32
- func (*Target) ProtoMessage()
- func (x *Target) ProtoReflect() protoreflect.Message
- func (x *Target) Reset()
- func (x *Target) String() string
- type TcpTargetAttributes
- func (*TcpTargetAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *TcpTargetAttributes) GetDefaultPort() *wrappers.UInt32Value
- func (*TcpTargetAttributes) ProtoMessage()
- func (x *TcpTargetAttributes) ProtoReflect() protoreflect.Message
- func (x *TcpTargetAttributes) Reset()
- func (x *TcpTargetAttributes) String() string
- type WorkerInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var File_controller_api_resources_targets_v1_target_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type HostSet ¶
type HostSet struct { Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty"` HostCatalogId string `protobuf:"bytes,20,opt,name=host_catalog_id,json=hostCatalogId,proto3" json:"host_catalog_id,omitempty"` // contains filtered or unexported fields }
func (*HostSet) Descriptor
deprecated
func (*HostSet) GetHostCatalogId ¶
func (*HostSet) ProtoMessage ¶
func (*HostSet) ProtoMessage()
func (*HostSet) ProtoReflect ¶
func (x *HostSet) ProtoReflect() protoreflect.Message
type SessionAuthorization ¶
type SessionAuthorization struct { // The ID of the session // Output only. SessionId string `protobuf:"bytes,10,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // The id of the target authorizing this session. This must be defined for // creation of this resource, but is otherwise read only. // Output only. TargetId string `protobuf:"bytes,20,opt,name=target_id,proto3" json:"target_id,omitempty"` // Scope information for this resource // Output only. Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"` // The time this resource was created // Output only. CreatedTime *timestamp.Timestamp `protobuf:"bytes,40,opt,name=created_time,proto3" json:"created_time,omitempty"` // The user ID associated with the resource // Output only. UserId string `protobuf:"bytes,50,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // The host set ID associated with the resource // Output only. HostSetId string `protobuf:"bytes,60,opt,name=host_set_id,json=hostSetId,proto3" json:"host_set_id,omitempty"` // The host ID associated with the resource. // Output only. HostId string `protobuf:"bytes,70,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty"` // Type of the session (e.g. tcp, ssh, etc.) // Output only. Type string `protobuf:"bytes,80,opt,name=type,proto3" json:"type,omitempty"` // The marshaled SessionAuthorizationData message containing all information // that the proxy needs. // Output only. AuthorizationToken string `protobuf:"bytes,90,opt,name=authorization_token,json=authorizationToken,proto3" json:"authorization_token,omitempty"` // contains filtered or unexported fields }
func (*SessionAuthorization) Descriptor
deprecated
func (*SessionAuthorization) Descriptor() ([]byte, []int)
Deprecated: Use SessionAuthorization.ProtoReflect.Descriptor instead.
func (*SessionAuthorization) GetAuthorizationToken ¶
func (x *SessionAuthorization) GetAuthorizationToken() string
func (*SessionAuthorization) GetCreatedTime ¶
func (x *SessionAuthorization) GetCreatedTime() *timestamp.Timestamp
func (*SessionAuthorization) GetHostId ¶
func (x *SessionAuthorization) GetHostId() string
func (*SessionAuthorization) GetHostSetId ¶
func (x *SessionAuthorization) GetHostSetId() string
func (*SessionAuthorization) GetScope ¶
func (x *SessionAuthorization) GetScope() *scopes.ScopeInfo
func (*SessionAuthorization) GetSessionId ¶
func (x *SessionAuthorization) GetSessionId() string
func (*SessionAuthorization) GetTargetId ¶
func (x *SessionAuthorization) GetTargetId() string
func (*SessionAuthorization) GetType ¶
func (x *SessionAuthorization) GetType() string
func (*SessionAuthorization) GetUserId ¶
func (x *SessionAuthorization) GetUserId() string
func (*SessionAuthorization) ProtoMessage ¶
func (*SessionAuthorization) ProtoMessage()
func (*SessionAuthorization) ProtoReflect ¶
func (x *SessionAuthorization) ProtoReflect() protoreflect.Message
func (*SessionAuthorization) Reset ¶
func (x *SessionAuthorization) Reset()
func (*SessionAuthorization) String ¶
func (x *SessionAuthorization) String() string
type SessionAuthorizationData ¶
type SessionAuthorizationData struct { // The ID of the session // Output only. SessionId string `protobuf:"bytes,10,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // The id of the target authorizing this session. This must be defined for // creation of this resource, but is otherwise read only. // Output only. TargetId string `protobuf:"bytes,20,opt,name=target_id,proto3" json:"target_id,omitempty"` // Scope information for this resource // Output only. Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"` // The time this resource was created // Output only. CreatedTime *timestamp.Timestamp `protobuf:"bytes,40,opt,name=created_time,proto3" json:"created_time,omitempty"` // Type of the session (e.g. tcp, ssh, etc.) // Output only. Type string `protobuf:"bytes,80,opt,name=type,proto3" json:"type,omitempty"` // Connection limit. -1 means unlimited. This is not actually enforced on // the client side but it provides for better listener handling by including // it. // Output only. ConnectionLimit int32 `protobuf:"varint,90,opt,name=connection_limit,json=connectionLimit,proto3" json:"connection_limit,omitempty"` // The certificate to use when connecting (or if using custom certs, to // serve as the "login"). Raw DER bytes. // Output only. Certificate []byte `protobuf:"bytes,120,opt,name=certificate,proto3" json:"certificate,omitempty"` // The private key to use when connecting (or if using custom certs, to pass // as the "password"). We are using Ed25519 so this is purely raw bytes, no // marshaling. // Output only. PrivateKey []byte `protobuf:"bytes,130,opt,name=private_key,proto3" json:"private_key,omitempty"` // Worker information. The first worker in the array should be prioritized. // Output only. WorkerInfo []*WorkerInfo `protobuf:"bytes,150,rep,name=worker_info,proto3" json:"worker_info,omitempty"` // contains filtered or unexported fields }
SessionAuthorization contains all fields related to authorization for a session. It's in the Targets API because it's returned by a target authorize action.
func (*SessionAuthorizationData) Descriptor
deprecated
func (*SessionAuthorizationData) Descriptor() ([]byte, []int)
Deprecated: Use SessionAuthorizationData.ProtoReflect.Descriptor instead.
func (*SessionAuthorizationData) GetCertificate ¶
func (x *SessionAuthorizationData) GetCertificate() []byte
func (*SessionAuthorizationData) GetConnectionLimit ¶
func (x *SessionAuthorizationData) GetConnectionLimit() int32
func (*SessionAuthorizationData) GetCreatedTime ¶
func (x *SessionAuthorizationData) GetCreatedTime() *timestamp.Timestamp
func (*SessionAuthorizationData) GetPrivateKey ¶
func (x *SessionAuthorizationData) GetPrivateKey() []byte
func (*SessionAuthorizationData) GetScope ¶
func (x *SessionAuthorizationData) GetScope() *scopes.ScopeInfo
func (*SessionAuthorizationData) GetSessionId ¶
func (x *SessionAuthorizationData) GetSessionId() string
func (*SessionAuthorizationData) GetTargetId ¶
func (x *SessionAuthorizationData) GetTargetId() string
func (*SessionAuthorizationData) GetType ¶
func (x *SessionAuthorizationData) GetType() string
func (*SessionAuthorizationData) GetWorkerInfo ¶
func (x *SessionAuthorizationData) GetWorkerInfo() []*WorkerInfo
func (*SessionAuthorizationData) ProtoMessage ¶
func (*SessionAuthorizationData) ProtoMessage()
func (*SessionAuthorizationData) ProtoReflect ¶
func (x *SessionAuthorizationData) ProtoReflect() protoreflect.Message
func (*SessionAuthorizationData) Reset ¶
func (x *SessionAuthorizationData) Reset()
func (*SessionAuthorizationData) String ¶
func (x *SessionAuthorizationData) String() string
type Target ¶
type Target struct { // The ID of the resource // Output only. Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty"` // The id of the parent of this resource. This must be defined for creation of this resource, but is otherwise // read only. ScopeId string `protobuf:"bytes,20,opt,name=scope_id,proto3" json:"scope_id,omitempty"` // Scope information for this resource // Output only. Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"` // Required name for identification purposes Name *wrappers.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty"` // Optional user-set description for identification purposes Description *wrappers.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty"` // The time this resource was created // Output only. CreatedTime *timestamp.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty"` // The time this resource was last updated. // Output only. UpdatedTime *timestamp.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty"` // The version can be used in subsequent write requests to ensure this // resource has not changed and to fail the write if it has. Version uint32 `protobuf:"varint,80,opt,name=version,proto3" json:"version,omitempty"` Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty"` // The ids of the host sets that make up this target. HostSetIds []string `protobuf:"bytes,100,rep,name=host_set_ids,json=hostSetIds,proto3" json:"host_set_ids,omitempty"` // The host sets that make up this target. // Output only. HostSets []*HostSet `protobuf:"bytes,110,rep,name=host_sets,json=hostSets,proto3" json:"host_sets,omitempty"` // Maximum total lifetime of a created session, in seconds SessionMaxSeconds *wrappers.UInt32Value `protobuf:"bytes,120,opt,name=session_max_seconds,json=sessionMaxSeconds,proto3" json:"session_max_seconds,omitempty"` // Maximum number of connections in a session SessionConnectionLimit *wrappers.Int32Value `` /* 131-byte string literal not displayed */ // The attributes that are applied for the specific Target type. Attributes *_struct.Struct `protobuf:"bytes,200,opt,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
Target contains all fields related to a Target resource
func (*Target) Descriptor
deprecated
func (*Target) GetAttributes ¶
func (*Target) GetCreatedTime ¶
func (*Target) GetDescription ¶
func (x *Target) GetDescription() *wrappers.StringValue
func (*Target) GetHostSetIds ¶
func (*Target) GetHostSets ¶
func (*Target) GetName ¶
func (x *Target) GetName() *wrappers.StringValue
func (*Target) GetScopeId ¶
func (*Target) GetSessionConnectionLimit ¶
func (x *Target) GetSessionConnectionLimit() *wrappers.Int32Value
func (*Target) GetSessionMaxSeconds ¶
func (x *Target) GetSessionMaxSeconds() *wrappers.UInt32Value
func (*Target) GetUpdatedTime ¶
func (*Target) GetVersion ¶
func (*Target) ProtoMessage ¶
func (*Target) ProtoMessage()
func (*Target) ProtoReflect ¶
func (x *Target) ProtoReflect() protoreflect.Message
type TcpTargetAttributes ¶
type TcpTargetAttributes struct { DefaultPort *wrappers.UInt32Value `protobuf:"bytes,10,opt,name=default_port,json=defaultPort,proto3" json:"default_port,omitempty"` // contains filtered or unexported fields }
func (*TcpTargetAttributes) Descriptor
deprecated
func (*TcpTargetAttributes) Descriptor() ([]byte, []int)
Deprecated: Use TcpTargetAttributes.ProtoReflect.Descriptor instead.
func (*TcpTargetAttributes) GetDefaultPort ¶
func (x *TcpTargetAttributes) GetDefaultPort() *wrappers.UInt32Value
func (*TcpTargetAttributes) ProtoMessage ¶
func (*TcpTargetAttributes) ProtoMessage()
func (*TcpTargetAttributes) ProtoReflect ¶
func (x *TcpTargetAttributes) ProtoReflect() protoreflect.Message
func (*TcpTargetAttributes) Reset ¶
func (x *TcpTargetAttributes) Reset()
func (*TcpTargetAttributes) String ¶
func (x *TcpTargetAttributes) String() string
type WorkerInfo ¶
type WorkerInfo struct { // The address of the worker Address string `protobuf:"bytes,10,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
WorkerInfo contains information about workers, returned in SessionAuthorization
func (*WorkerInfo) Descriptor
deprecated
func (*WorkerInfo) Descriptor() ([]byte, []int)
Deprecated: Use WorkerInfo.ProtoReflect.Descriptor instead.
func (*WorkerInfo) GetAddress ¶
func (x *WorkerInfo) GetAddress() string
func (*WorkerInfo) ProtoMessage ¶
func (*WorkerInfo) ProtoMessage()
func (*WorkerInfo) ProtoReflect ¶
func (x *WorkerInfo) ProtoReflect() protoreflect.Message
func (*WorkerInfo) Reset ¶
func (x *WorkerInfo) Reset()
func (*WorkerInfo) String ¶
func (x *WorkerInfo) String() string
Click to show internal directories.
Click to hide internal directories.