targets

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

Documentation

Index

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 CredentialSource

type CredentialSource struct {

	// The ID of the Credential. May be empty if the credential is dynamically generated from a library.
	Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The name of the Credential source.
	Name string `protobuf:"bytes,20,opt,name=name,proto3" json:"name,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The description of the Credential source.
	Description string `protobuf:"bytes,30,opt,name=description,proto3" json:"description,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The Credential Store to which this Credential source belongs.
	CredentialStoreId string `protobuf:"bytes,40,opt,name=credential_store_id,proto3" json:"credential_store_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The type of the credential source (e.g. "vault"; not the type of the credential itself).
	Type string `protobuf:"bytes,60,opt,name=type,proto3" json:"type,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The type of the credential, empty if unspecified.
	CredentialType string `protobuf:"bytes,70,opt,name=credential_type,json=credentialType,proto3" json:"credential_type,omitempty" class:"public"` // @gotags: `class:"public"`
	// contains filtered or unexported fields
}

func (*CredentialSource) Descriptor deprecated

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

Deprecated: Use CredentialSource.ProtoReflect.Descriptor instead.

func (*CredentialSource) GetCredentialStoreId

func (x *CredentialSource) GetCredentialStoreId() string

func (*CredentialSource) GetCredentialType added in v0.0.13

func (x *CredentialSource) GetCredentialType() string

func (*CredentialSource) GetDescription

func (x *CredentialSource) GetDescription() string

func (*CredentialSource) GetId

func (x *CredentialSource) GetId() string

func (*CredentialSource) GetName

func (x *CredentialSource) GetName() string

func (*CredentialSource) GetType

func (x *CredentialSource) GetType() string

func (*CredentialSource) ProtoMessage

func (*CredentialSource) ProtoMessage()

func (*CredentialSource) ProtoReflect

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

func (*CredentialSource) Reset

func (x *CredentialSource) Reset()

func (*CredentialSource) String

func (x *CredentialSource) String() string

type HostSource

type HostSource struct {

	// Output only. The ID of the Host Set.
	Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The Host Catalog to which this Host Source belongs.
	HostCatalogId string `protobuf:"bytes,20,opt,name=host_catalog_id,proto3" json:"host_catalog_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// contains filtered or unexported fields
}

func (*HostSource) Descriptor deprecated

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

Deprecated: Use HostSource.ProtoReflect.Descriptor instead.

func (*HostSource) GetHostCatalogId

func (x *HostSource) GetHostCatalogId() string

func (*HostSource) GetId

func (x *HostSource) GetId() string

func (*HostSource) ProtoMessage

func (*HostSource) ProtoMessage()

func (*HostSource) ProtoReflect

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

func (*HostSource) Reset

func (x *HostSource) Reset()

func (*HostSource) String

func (x *HostSource) String() string

type SessionAuthorization

type SessionAuthorization struct {

	// Output only. The ID of the Session.
	SessionId string `protobuf:"bytes,10,opt,name=session_id,proto3" json:"session_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The ID of the Target authorizing this Session.
	TargetId string `protobuf:"bytes,20,opt,name=target_id,proto3" json:"target_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"`
	// Output only. The time this resource was created.
	CreatedTime *timestamppb.Timestamp `protobuf:"bytes,40,opt,name=created_time,proto3" json:"created_time,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The User for which this Session was authorized.
	UserId string `protobuf:"bytes,50,opt,name=user_id,proto3" json:"user_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The Host Set containing the Host being used for this Session.
	HostSetId string `protobuf:"bytes,60,opt,name=host_set_id,proto3" json:"host_set_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The Host whose address is being used as the endpoint for this Session.
	HostId string `protobuf:"bytes,70,opt,name=host_id,proto3" json:"host_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. Type of the Session (e.g. tcp, ssh, etc.).
	Type string `protobuf:"bytes,80,opt,name=type,proto3" json:"type,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The marshaled SessionAuthorizationData message containing all information that the proxy needs.
	AuthorizationToken string `protobuf:"bytes,90,opt,name=authorization_token,proto3" json:"authorization_token,omitempty" class:"secret"` // @gotags: `class:"secret"`
	// Output only. The endpoint address that the worker will connect to, useful for setting TLS parameters.
	Endpoint string `protobuf:"bytes,100,opt,name=endpoint,proto3" json:"endpoint,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The credentials for this session.
	Credentials []*SessionCredential `protobuf:"bytes,110,rep,name=credentials,proto3" json:"credentials,omitempty"`
	// contains filtered or unexported fields
}

SessionAuthorization contains all fields related to authorization for a Session. It's in the Targets package because it's returned by a Target's authorize action.

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() *timestamppb.Timestamp

func (*SessionAuthorization) GetCredentials

func (x *SessionAuthorization) GetCredentials() []*SessionCredential

func (*SessionAuthorization) GetEndpoint

func (x *SessionAuthorization) GetEndpoint() string

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 {

	// Output only. The ID of the session.
	SessionId string `protobuf:"bytes,10,opt,name=session_id,proto3" json:"session_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The ID of the Target authorizing this session.
	TargetId string `protobuf:"bytes,20,opt,name=target_id,proto3" json:"target_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. Scope information for this the Target that authorized this session.
	Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
	// Output only. The time this resource was created.
	CreatedTime *timestamppb.Timestamp `protobuf:"bytes,40,opt,name=created_time,proto3" json:"created_time,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. Type of the session (e.g. tcp, ssh, etc.).
	Type string `protobuf:"bytes,80,opt,name=type,proto3" json:"type,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The connection limit being applied to this session. -1 means unlimited. This is not actually enforced on the client side but it provides for better listener handling by including it.
	ConnectionLimit int32 `protobuf:"varint,90,opt,name=connection_limit,proto3" json:"connection_limit,omitempty"`
	// Output only. The certificate to use when connecting. Raw DER bytes.
	Certificate []byte `protobuf:"bytes,120,opt,name=certificate,proto3" json:"certificate,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
	// Output only. The private key to use when connecting. We are using Ed25519, so this is purely raw bytes, no marshaling.
	PrivateKey []byte `protobuf:"bytes,130,opt,name=private_key,proto3" json:"private_key,omitempty" class:"secret"` // @gotags: `class:"secret"`
	// Output only. The host ID...not used for security purposes, but for some special command handling (e.g. ssh host key aliasing).
	HostId string `protobuf:"bytes,140,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The endpoint, for some special command handling.
	Endpoint string `protobuf:"bytes,141,opt,name=endpoint,proto3" json:"endpoint,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. Worker information. The first worker in the array should be prioritized.
	WorkerInfo []*WorkerInfo `protobuf:"bytes,150,rep,name=worker_info,proto3" json:"worker_info,omitempty"`
	// Output only. A default port to listen on for client connections.
	DefaultClientPort uint32 `protobuf:"varint,160,opt,name=default_client_port,proto3" json:"default_client_port,omitempty" class:"public"` // @gotags: `class:"public"`
	// contains filtered or unexported fields
}

SessionAuthorizationData contains the fields needed by the proxy command to connect to a worker. It is marshaled inside the SessionAuthorization message.

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() *timestamppb.Timestamp

func (*SessionAuthorizationData) GetDefaultClientPort added in v0.0.32

func (x *SessionAuthorizationData) GetDefaultClientPort() uint32

func (*SessionAuthorizationData) GetEndpoint

func (x *SessionAuthorizationData) GetEndpoint() string

func (*SessionAuthorizationData) GetHostId

func (x *SessionAuthorizationData) GetHostId() string

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 SessionCredential

type SessionCredential struct {

	// Output only. The credential source information.
	CredentialSource *CredentialSource `protobuf:"bytes,1,opt,name=credential_source,json=credentialSource,proto3" json:"credential_source,omitempty"`
	// Output only. The secret of this credential base64 encoded.
	Secret *SessionSecret `protobuf:"bytes,20,opt,name=secret,proto3" json:"secret,omitempty"`
	// Output only. The fields of the strongly typed credential, empty if the credential type of the
	// credential source is unspecified.
	Credential *structpb.Struct `protobuf:"bytes,40,opt,name=credential,proto3" json:"credential,omitempty"`
	// contains filtered or unexported fields
}

Credential information for a session.

func (*SessionCredential) Descriptor deprecated

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

Deprecated: Use SessionCredential.ProtoReflect.Descriptor instead.

func (*SessionCredential) GetCredential added in v0.0.13

func (x *SessionCredential) GetCredential() *structpb.Struct

func (*SessionCredential) GetCredentialSource

func (x *SessionCredential) GetCredentialSource() *CredentialSource

func (*SessionCredential) GetSecret

func (x *SessionCredential) GetSecret() *SessionSecret

func (*SessionCredential) ProtoMessage

func (*SessionCredential) ProtoMessage()

func (*SessionCredential) ProtoReflect

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

func (*SessionCredential) Reset

func (x *SessionCredential) Reset()

func (*SessionCredential) String

func (x *SessionCredential) String() string

type SessionSecret

type SessionSecret struct {

	// Output only. The base64-encoded value representing the raw bytes from the
	// credential provider.
	Raw string `protobuf:"bytes,10,opt,name=raw,proto3" json:"raw,omitempty" class:"secret"` // @gotags: `class:"secret"`
	// Output only. The decoded raw string, if a JSON object.
	Decoded *structpb.Struct `protobuf:"bytes,20,opt,name=decoded,proto3" json:"decoded,omitempty"`
	// contains filtered or unexported fields
}

The actual secret for a session credential.

func (*SessionSecret) Descriptor deprecated

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

Deprecated: Use SessionSecret.ProtoReflect.Descriptor instead.

func (*SessionSecret) GetDecoded

func (x *SessionSecret) GetDecoded() *structpb.Struct

func (*SessionSecret) GetRaw

func (x *SessionSecret) GetRaw() string

func (*SessionSecret) ProtoMessage

func (*SessionSecret) ProtoMessage()

func (*SessionSecret) ProtoReflect

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

func (*SessionSecret) Reset

func (x *SessionSecret) Reset()

func (*SessionSecret) String

func (x *SessionSecret) String() string

type SshPrivateKeyCredential added in v0.0.18

type SshPrivateKeyCredential struct {

	// Username of the credential
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
	// Private key of the credential
	PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty" class:"secret"` // @gotags: `class:"secret"`
	// The optional passphrase of the private_key
	PrivateKeyPassphrase string `` // @gotags: `class:"secret"`
	/* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

The layout of the struct for "credential" field in SessionCredential for a ssh_private_key credential type.

func (*SshPrivateKeyCredential) Descriptor deprecated added in v0.0.18

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

Deprecated: Use SshPrivateKeyCredential.ProtoReflect.Descriptor instead.

func (*SshPrivateKeyCredential) GetPrivateKey added in v0.0.18

func (x *SshPrivateKeyCredential) GetPrivateKey() string

func (*SshPrivateKeyCredential) GetPrivateKeyPassphrase added in v0.0.19

func (x *SshPrivateKeyCredential) GetPrivateKeyPassphrase() string

func (*SshPrivateKeyCredential) GetUsername added in v0.0.18

func (x *SshPrivateKeyCredential) GetUsername() string

func (*SshPrivateKeyCredential) ProtoMessage added in v0.0.18

func (*SshPrivateKeyCredential) ProtoMessage()

func (*SshPrivateKeyCredential) ProtoReflect added in v0.0.18

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

func (*SshPrivateKeyCredential) Reset added in v0.0.18

func (x *SshPrivateKeyCredential) Reset()

func (*SshPrivateKeyCredential) String added in v0.0.18

func (x *SshPrivateKeyCredential) String() string

type SshTargetAttributes added in v0.0.18

type SshTargetAttributes struct {

	// The default SSH port that will be used when connecting to the endpoint unless overridden by a Host Set or Host.
	// If this is not specified the DefaultPort will be 22.
	DefaultPort *wrapperspb.UInt32Value `protobuf:"bytes,10,opt,name=default_port,proto3" json:"default_port,omitempty" class:"public"` // @gotags: `class:"public"`
	// The default TCP port that will be listened on by the client's local proxy.
	DefaultClientPort *wrapperspb.UInt32Value `protobuf:"bytes,20,opt,name=default_client_port,proto3" json:"default_client_port,omitempty" class:"public"` // @gotags: `class:"public"`
	// PublicId of the storage bucket associated with the target
	StorageBucketId *wrapperspb.StringValue `protobuf:"bytes,30,opt,name=storage_bucket_id,proto3" json:"storage_bucket_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// A boolean indicating if session recording has been enabled
	EnableSessionRecording *wrapperspb.BoolValue `protobuf:"bytes,40,opt,name=enable_session_recording,proto3" json:"enable_session_recording,omitempty" class:"public"` // @gotags: `class:"public"`
	// contains filtered or unexported fields
}

SshTargetAttributes contains attributes relevant to Targets of type "ssh"

func (*SshTargetAttributes) Descriptor deprecated added in v0.0.18

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

Deprecated: Use SshTargetAttributes.ProtoReflect.Descriptor instead.

func (*SshTargetAttributes) GetDefaultClientPort added in v0.0.32

func (x *SshTargetAttributes) GetDefaultClientPort() *wrapperspb.UInt32Value

func (*SshTargetAttributes) GetDefaultPort added in v0.0.18

func (x *SshTargetAttributes) GetDefaultPort() *wrapperspb.UInt32Value

func (*SshTargetAttributes) GetEnableSessionRecording added in v0.0.33

func (x *SshTargetAttributes) GetEnableSessionRecording() *wrapperspb.BoolValue

func (*SshTargetAttributes) GetStorageBucketId added in v0.0.33

func (x *SshTargetAttributes) GetStorageBucketId() *wrapperspb.StringValue

func (*SshTargetAttributes) ProtoMessage added in v0.0.18

func (*SshTargetAttributes) ProtoMessage()

func (*SshTargetAttributes) ProtoReflect added in v0.0.18

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

func (*SshTargetAttributes) Reset added in v0.0.18

func (x *SshTargetAttributes) Reset()

func (*SshTargetAttributes) String added in v0.0.18

func (x *SshTargetAttributes) String() string

type Target

type Target struct {

	// Output only. The ID of the resource.
	Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"`
	// The Scope of of this resource. This must be defined for creation of this resource, but is otherwise output only.
	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"`
	// Required name for identification purposes.
	Name *wrapperspb.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty" class:"public"` // @gotags: `class:"public"`
	// Optional user-set description for identification purposes.
	Description *wrapperspb.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty" class:"public"` // @gotags: `class:"public"`
	// 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"`
	// The type of the Target.
	Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The IDs of the Host Sources associated with this Target.
	HostSourceIds []string `protobuf:"bytes,420,rep,name=host_source_ids,proto3" json:"host_source_ids,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The Host Sources associated with this Target.
	HostSources []*HostSource `protobuf:"bytes,430,rep,name=host_sources,proto3" json:"host_sources,omitempty"`
	// Maximum total lifetime of a created Session, in seconds.
	SessionMaxSeconds *wrapperspb.UInt32Value `protobuf:"bytes,120,opt,name=session_max_seconds,proto3" json:"session_max_seconds,omitempty" class:"public"` // @gotags: `class:"public"`
	// Maximum number of connections allowed in a Session.  Unlimited is indicated by the value -1.
	SessionConnectionLimit *wrapperspb.Int32Value `protobuf:"bytes,130,opt,name=session_connection_limit,proto3" json:"session_connection_limit,omitempty" class:"public"` // @gotags: `class:"public"`
	// Optional boolean expression to filter the workers that are allowed to satisfy this request.
	// Deprecated; use egress or ingress worker filters instead.
	//
	// Deprecated: Marked as deprecated in controller/api/resources/targets/v1/target.proto.
	WorkerFilter *wrapperspb.StringValue `protobuf:"bytes,140,opt,name=worker_filter,proto3" json:"worker_filter,omitempty" class:"public"` // @gotags: `class:"public"`
	// Optional boolean expressions to filter the egress workers that are allowed to satisfy this request.
	EgressWorkerFilter *wrapperspb.StringValue `protobuf:"bytes,160,opt,name=egress_worker_filter,proto3" json:"egress_worker_filter,omitempty" class:"public"` // @gotags: `class:"public"`
	// Optional boolean expressions to filter the ingress workers that are allowed to satisfy this request.
	// Unsupported on OSS.
	IngressWorkerFilter *wrapperspb.StringValue `protobuf:"bytes,170,opt,name=ingress_worker_filter,proto3" json:"ingress_worker_filter,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The IDs of the application credential source ids associated with this Target.
	// Deprecated use "brokered_credential_source_ids" instead.
	//
	// Deprecated: Marked as deprecated in controller/api/resources/targets/v1/target.proto.
	ApplicationCredentialSourceIds []string `` // @gotags: `class:"public"`
	/* 136-byte string literal not displayed */
	// Output only. The application credential sources associated with this Target.
	// Deprecated use "brokered_credential_sources" instead.
	//
	// Deprecated: Marked as deprecated in controller/api/resources/targets/v1/target.proto.
	ApplicationCredentialSources []*CredentialSource `protobuf:"bytes,410,rep,name=application_credential_sources,proto3" json:"application_credential_sources,omitempty"`
	// Output only. The IDs of the brokered credential source ids associated with this Target.
	BrokeredCredentialSourceIds []string `` // @gotags: `class:"public"`
	/* 130-byte string literal not displayed */
	// Output only. The brokered credential sources associated with this Target.
	BrokeredCredentialSources []*CredentialSource `protobuf:"bytes,450,rep,name=brokered_credential_sources,proto3" json:"brokered_credential_sources,omitempty"`
	// Output only. The IDs of the injected application credential source ids associated with this Target.
	InjectedApplicationCredentialSourceIds []string `` // @gotags: `class:"public"`
	/* 154-byte string literal not displayed */
	// Output only. The injected application credential sources associated with this Target.
	InjectedApplicationCredentialSources []*CredentialSource `` /* 133-byte string literal not displayed */
	// Types that are assignable to Attrs:
	//
	//	*Target_Attributes
	//	*Target_TcpTargetAttributes
	//	*Target_SshTargetAttributes
	Attrs isTarget_Attrs `protobuf_oneof:"attrs"`
	// Output only. The available actions on this resource for this user.
	AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public"` // @gotags: `class:"public"`
	// Optional string value that represents a network resource and is used when establishing a session.
	Address *wrapperspb.StringValue `protobuf:"bytes,540,opt,name=address,proto3" json:"address,omitempty" class:"public"` // @gotags: `class:"public"`
	// contains filtered or unexported fields
}

Target contains all fields related to a Target resource

func (*Target) Descriptor deprecated

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

Deprecated: Use Target.ProtoReflect.Descriptor instead.

func (*Target) GetAddress added in v0.0.29

func (x *Target) GetAddress() *wrapperspb.StringValue

func (*Target) GetApplicationCredentialSourceIds deprecated

func (x *Target) GetApplicationCredentialSourceIds() []string

Deprecated: Marked as deprecated in controller/api/resources/targets/v1/target.proto.

func (*Target) GetApplicationCredentialSources deprecated

func (x *Target) GetApplicationCredentialSources() []*CredentialSource

Deprecated: Marked as deprecated in controller/api/resources/targets/v1/target.proto.

func (*Target) GetAttributes

func (x *Target) GetAttributes() *structpb.Struct

func (*Target) GetAttrs added in v0.0.15

func (m *Target) GetAttrs() isTarget_Attrs

func (*Target) GetAuthorizedActions

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

func (*Target) GetBrokeredCredentialSourceIds added in v0.0.18

func (x *Target) GetBrokeredCredentialSourceIds() []string

func (*Target) GetBrokeredCredentialSources added in v0.0.18

func (x *Target) GetBrokeredCredentialSources() []*CredentialSource

func (*Target) GetCreatedTime

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

func (*Target) GetDescription

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

func (*Target) GetEgressWorkerFilter added in v0.0.27

func (x *Target) GetEgressWorkerFilter() *wrapperspb.StringValue

func (*Target) GetHostSourceIds

func (x *Target) GetHostSourceIds() []string

func (*Target) GetHostSources

func (x *Target) GetHostSources() []*HostSource

func (*Target) GetId

func (x *Target) GetId() string

func (*Target) GetIngressWorkerFilter added in v0.0.27

func (x *Target) GetIngressWorkerFilter() *wrapperspb.StringValue

func (*Target) GetInjectedApplicationCredentialSourceIds added in v0.0.18

func (x *Target) GetInjectedApplicationCredentialSourceIds() []string

func (*Target) GetInjectedApplicationCredentialSources added in v0.0.18

func (x *Target) GetInjectedApplicationCredentialSources() []*CredentialSource

func (*Target) GetName

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

func (*Target) GetScope

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

func (*Target) GetScopeId

func (x *Target) GetScopeId() string

func (*Target) GetSessionConnectionLimit

func (x *Target) GetSessionConnectionLimit() *wrapperspb.Int32Value

func (*Target) GetSessionMaxSeconds

func (x *Target) GetSessionMaxSeconds() *wrapperspb.UInt32Value

func (*Target) GetSshTargetAttributes added in v0.0.18

func (x *Target) GetSshTargetAttributes() *SshTargetAttributes

func (*Target) GetTcpTargetAttributes added in v0.0.15

func (x *Target) GetTcpTargetAttributes() *TcpTargetAttributes

func (*Target) GetType

func (x *Target) GetType() string

func (*Target) GetUpdatedTime

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

func (*Target) GetVersion

func (x *Target) GetVersion() uint32

func (*Target) GetWorkerFilter deprecated

func (x *Target) GetWorkerFilter() *wrapperspb.StringValue

Deprecated: Marked as deprecated in controller/api/resources/targets/v1/target.proto.

func (*Target) ProtoMessage

func (*Target) ProtoMessage()

func (*Target) ProtoReflect

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

func (*Target) Reset

func (x *Target) Reset()

func (*Target) String

func (x *Target) String() string

type Target_Attributes added in v0.0.15

type Target_Attributes struct {
	// The attributes that are applicable for the specific Target.
	Attributes *structpb.Struct `protobuf:"bytes,200,opt,name=attributes,proto3,oneof"`
}

type Target_SshTargetAttributes added in v0.0.18

type Target_SshTargetAttributes struct {
	SshTargetAttributes *SshTargetAttributes `protobuf:"bytes,202,opt,name=ssh_target_attributes,json=sshTargetAttributes,proto3,oneof"`
}

type Target_TcpTargetAttributes added in v0.0.15

type Target_TcpTargetAttributes struct {
	TcpTargetAttributes *TcpTargetAttributes `protobuf:"bytes,201,opt,name=tcp_target_attributes,json=tcpTargetAttributes,proto3,oneof"`
}

type TcpTargetAttributes

type TcpTargetAttributes struct {

	// The default TCP port that will be used when connecting to the endpoint unless overridden by a Host Set or Host.
	DefaultPort *wrapperspb.UInt32Value `protobuf:"bytes,10,opt,name=default_port,proto3" json:"default_port,omitempty" class:"public"` // @gotags: `class:"public"`
	// The default TCP port that will be listened on by the client's local proxy.
	DefaultClientPort *wrapperspb.UInt32Value `protobuf:"bytes,20,opt,name=default_client_port,proto3" json:"default_client_port,omitempty" class:"public"` // @gotags: `class:"public"`
	// contains filtered or unexported fields
}

TcpTargetAttributes contains attributes relevant to Targets of type "tcp"

func (*TcpTargetAttributes) Descriptor deprecated

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

Deprecated: Use TcpTargetAttributes.ProtoReflect.Descriptor instead.

func (*TcpTargetAttributes) GetDefaultClientPort added in v0.0.32

func (x *TcpTargetAttributes) GetDefaultClientPort() *wrapperspb.UInt32Value

func (*TcpTargetAttributes) GetDefaultPort

func (x *TcpTargetAttributes) GetDefaultPort() *wrapperspb.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 UsernamePasswordCredential added in v0.0.17

type UsernamePasswordCredential struct {

	// Username of the credential
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
	// Password of the credential
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" class:"secret"` // @gotags: `class:"secret"`
	// contains filtered or unexported fields
}

The layout of the struct for "credential" field in SessionCredential for a username_password credential type.

func (*UsernamePasswordCredential) Descriptor deprecated added in v0.0.17

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

Deprecated: Use UsernamePasswordCredential.ProtoReflect.Descriptor instead.

func (*UsernamePasswordCredential) GetPassword added in v0.0.17

func (x *UsernamePasswordCredential) GetPassword() string

func (*UsernamePasswordCredential) GetUsername added in v0.0.17

func (x *UsernamePasswordCredential) GetUsername() string

func (*UsernamePasswordCredential) ProtoMessage added in v0.0.17

func (*UsernamePasswordCredential) ProtoMessage()

func (*UsernamePasswordCredential) ProtoReflect added in v0.0.17

func (*UsernamePasswordCredential) Reset added in v0.0.17

func (x *UsernamePasswordCredential) Reset()

func (*UsernamePasswordCredential) String added in v0.0.17

func (x *UsernamePasswordCredential) String() string

type WorkerInfo

type WorkerInfo struct {

	// Output only. The address of the worker.
	Address string `protobuf:"bytes,10,opt,name=address,proto3" json:"address,omitempty" class:"public"` // @gotags: `class:"public"`
	// contains filtered or unexported fields
}

WorkerInfo contains information about workers, returned in to the client 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

Jump to

Keyboard shortcuts

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