targets

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

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 HostSet

type HostSet struct {

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

func (*HostSet) Descriptor deprecated

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

Deprecated: Use HostSet.ProtoReflect.Descriptor instead.

func (*HostSet) GetHostCatalogId

func (x *HostSet) GetHostCatalogId() string

func (*HostSet) GetId

func (x *HostSet) GetId() string

func (*HostSet) ProtoMessage

func (*HostSet) ProtoMessage()

func (*HostSet) ProtoReflect

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

func (*HostSet) Reset

func (x *HostSet) Reset()

func (*HostSet) String

func (x *HostSet) 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"`
	// Output only. The ID of the Target authorizing this Session.
	TargetId string `protobuf:"bytes,20,opt,name=target_id,proto3" json:"target_id,omitempty"`
	// 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 *timestamp.Timestamp `protobuf:"bytes,40,opt,name=created_time,proto3" json:"created_time,omitempty"`
	// Output only. The User for which this Session was authorized.
	UserId string `protobuf:"bytes,50,opt,name=user_id,proto3" json:"user_id,omitempty"`
	// 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"`
	// 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"`
	// Output only. Type of the Session (e.g. tcp, ssh, etc.).
	Type string `protobuf:"bytes,80,opt,name=type,proto3" json:"type,omitempty"`
	// 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"`
	// 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"`
	// 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() *timestamp.Timestamp

func (*SessionAuthorization) GetEndpoint added in v0.1.3

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"`
	// Output only. The ID of the Target authorizing this session.
	TargetId string `protobuf:"bytes,20,opt,name=target_id,proto3" json:"target_id,omitempty"`
	// 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 *timestamp.Timestamp `protobuf:"bytes,40,opt,name=created_time,proto3" json:"created_time,omitempty"`
	// Output only. Type of the session (e.g. tcp, ssh, etc.).
	Type string `protobuf:"bytes,80,opt,name=type,proto3" json:"type,omitempty"`
	// 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"`
	// 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"`
	// 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"`
	// Output only. The endpoint, for some special command handling.
	Endpoint string `protobuf:"bytes,141,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// 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"`
	// 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() *timestamp.Timestamp

func (*SessionAuthorizationData) GetEndpoint added in v0.1.3

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 Target

type Target struct {

	// Output only. The ID of the resource.
	Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty"`
	// 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"`
	// 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 *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"`
	// Output only. The time this resource was created.
	CreatedTime *timestamp.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty"`
	// Output only. The time this resource was last updated.
	UpdatedTime *timestamp.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty"`
	// 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"`
	// The type of the Target.
	Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty"`
	// The IDs of the Host Sets associated with this Target.
	HostSetIds []string `protobuf:"bytes,100,rep,name=host_set_ids,proto3" json:"host_set_ids,omitempty"`
	// Output only. The Host Sets associated with this Target.
	HostSets []*HostSet `protobuf:"bytes,110,rep,name=host_sets,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,proto3" json:"session_max_seconds,omitempty"`
	// Maximum number of connections allowed in a Session.  Unlimited is indicated by the value -1.
	SessionConnectionLimit *wrappers.Int32Value `protobuf:"bytes,130,opt,name=session_connection_limit,proto3" json:"session_connection_limit,omitempty"`
	// The attributes that are applicable for the specific Target.
	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) Descriptor() ([]byte, []int)

Deprecated: Use Target.ProtoReflect.Descriptor instead.

func (*Target) GetAttributes

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

func (*Target) GetCreatedTime

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

func (*Target) GetDescription

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

func (*Target) GetHostSetIds

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

func (*Target) GetHostSets

func (x *Target) GetHostSets() []*HostSet

func (*Target) GetId

func (x *Target) GetId() string

func (*Target) GetName

func (x *Target) GetName() *wrappers.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() *wrappers.Int32Value

func (*Target) GetSessionMaxSeconds

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

func (*Target) GetType

func (x *Target) GetType() string

func (*Target) GetUpdatedTime

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

func (*Target) GetVersion

func (x *Target) GetVersion() uint32

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 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 *wrappers.UInt32Value `protobuf:"bytes,10,opt,name=default_port,proto3" json:"default_port,omitempty"`
	// 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) 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 {

	// Output only. 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 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