sessions

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_controller_api_resources_sessions_v1_session_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Connection added in v0.0.13

type Connection struct {

	// client_tcp_address of the connection
	ClientTcpAddress string `` // @gotags: `class:"public"`
	/* 126-byte string literal not displayed */
	// client_tcp_port of the connection
	ClientTcpPort uint32 `protobuf:"varint,4,opt,name=client_tcp_port,json=clientTcpPort,proto3" json:"client_tcp_port,omitempty" class:"public"` // @gotags: `class:"public"`
	// endpoint_tcp_address of the connection
	EndpointTcpAddress string `` // @gotags: `class:"public"`
	/* 132-byte string literal not displayed */
	// endpoint_tcp_port of the connection
	EndpointTcpPort uint32 `protobuf:"varint,6,opt,name=endpoint_tcp_port,json=endpointTcpPort,proto3" json:"endpoint_tcp_port,omitempty" class:"public"` // @gotags: `class:"public"`
	// bytes_up of the connection
	BytesUp int64 `protobuf:"varint,7,opt,name=bytes_up,json=bytesUp,proto3" json:"bytes_up,omitempty" class:"public"` // @gotags: `class:"public"`
	// bytes_down of the connection
	BytesDown int64 `protobuf:"varint,8,opt,name=bytes_down,json=bytesDown,proto3" json:"bytes_down,omitempty" class:"public"` // @gotags: `class:"public"`
	// closed_reason of the connection
	ClosedReason string `protobuf:"bytes,9,opt,name=closed_reason,json=closedReason,proto3" json:"closed_reason,omitempty" class:"public"` // @gotags: `class:"public"`
	// contains filtered or unexported fields
}

Connection contains information about a specific connection in a session

func (*Connection) Descriptor deprecated added in v0.0.13

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

Deprecated: Use Connection.ProtoReflect.Descriptor instead.

func (*Connection) GetBytesDown added in v0.0.13

func (x *Connection) GetBytesDown() int64

func (*Connection) GetBytesUp added in v0.0.13

func (x *Connection) GetBytesUp() int64

func (*Connection) GetClientTcpAddress added in v0.0.13

func (x *Connection) GetClientTcpAddress() string

func (*Connection) GetClientTcpPort added in v0.0.13

func (x *Connection) GetClientTcpPort() uint32

func (*Connection) GetClosedReason added in v0.0.13

func (x *Connection) GetClosedReason() string

func (*Connection) GetEndpointTcpAddress added in v0.0.13

func (x *Connection) GetEndpointTcpAddress() string

func (*Connection) GetEndpointTcpPort added in v0.0.13

func (x *Connection) GetEndpointTcpPort() uint32

func (*Connection) ProtoMessage added in v0.0.13

func (*Connection) ProtoMessage()

func (*Connection) ProtoReflect added in v0.0.13

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

func (*Connection) Reset added in v0.0.13

func (x *Connection) Reset()

func (*Connection) String added in v0.0.13

func (x *Connection) String() string

type Session

type Session struct {

	// Output only. The ID of the Session.
	Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// Output only. The ID of the Target that created this Session.
	TargetId string `protobuf:"bytes,20,opt,name=target_id,proto3" json:"target_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// 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,60,opt,name=created_time,proto3" json:"created_time,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// 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" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// Version is used when canceling this Session to ensure that the operation is acting on a known session state.
	Version uint32 `protobuf:"varint,80,opt,name=version,proto3" json:"version,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. Type of the Session (e.g. tcp).
	Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// Output only. After this time the connection will be expired, e.g. forcefully terminated.
	ExpirationTime *timestamppb.Timestamp `` // @gotags: `class:"public" eventstream:"observation"`
	/* 126-byte string literal not displayed */
	// Output only. The ID of the Auth Token used to authenticate.
	AuthTokenId string `protobuf:"bytes,110,opt,name=auth_token_id,proto3" json:"auth_token_id,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The ID of the User that requested the Session.
	UserId string `protobuf:"bytes,120,opt,name=user_id,proto3" json:"user_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// Output only. The Host Set sourcing the Host for this Session.
	HostSetId string `protobuf:"bytes,130,opt,name=host_set_id,proto3" json:"host_set_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// Output only. The Host used by the Session.
	HostId string `protobuf:"bytes,140,opt,name=host_id,proto3" json:"host_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// Output only. The Scope of the Session.
	ScopeId string `protobuf:"bytes,150,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// Output only. The endpoint of the Session; that is, the address to which the worker is proxying data.
	Endpoint string `protobuf:"bytes,160,opt,name=endpoint,proto3" json:"endpoint,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. The states of this Session in descending order from the current state to the first.
	States []*SessionState `protobuf:"bytes,170,rep,name=states,proto3" json:"states,omitempty"`
	// Output only. The current status of this Session.
	Status string `protobuf:"bytes,180,opt,name=status,proto3" json:"status,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// Output only. The certificate generated for the session. Raw DER bytes.
	Certificate []byte `protobuf:"bytes,200,opt,name=certificate,proto3" json:"certificate,omitempty" class:"public"` // @gotags: `class:"public"`
	// Output only. If the session is terminated, this provides a short description as to why.
	TerminationReason string `` // @gotags: `class:"public" eventstream:"observation"`
	/* 132-byte string literal not displayed */
	// 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"`
	// Output only. The associated connections with this session.
	Connections []*Connection `protobuf:"bytes,310,rep,name=connections,proto3" json:"connections,omitempty"`
	// contains filtered or unexported fields
}

Session contains all fields related to a Session resource

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetAuthTokenId

func (x *Session) GetAuthTokenId() string

func (*Session) GetAuthorizedActions

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

func (*Session) GetCertificate

func (x *Session) GetCertificate() []byte

func (*Session) GetConnections added in v0.0.13

func (x *Session) GetConnections() []*Connection

func (*Session) GetCreatedTime

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

func (*Session) GetEndpoint

func (x *Session) GetEndpoint() string

func (*Session) GetExpirationTime

func (x *Session) GetExpirationTime() *timestamppb.Timestamp

func (*Session) GetHostId

func (x *Session) GetHostId() string

func (*Session) GetHostSetId

func (x *Session) GetHostSetId() string

func (*Session) GetId

func (x *Session) GetId() string

func (*Session) GetScope

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

func (*Session) GetScopeId

func (x *Session) GetScopeId() string

func (*Session) GetStates

func (x *Session) GetStates() []*SessionState

func (*Session) GetStatus

func (x *Session) GetStatus() string

func (*Session) GetTargetId

func (x *Session) GetTargetId() string

func (*Session) GetTerminationReason

func (x *Session) GetTerminationReason() string

func (*Session) GetType

func (x *Session) GetType() string

func (*Session) GetUpdatedTime

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

func (*Session) GetUserId

func (x *Session) GetUserId() string

func (*Session) GetVersion

func (x *Session) GetVersion() uint32

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

type SessionState

type SessionState struct {

	// The status of the Session, e.g. "pending", "active", "canceling", "terminated".
	Status string `protobuf:"bytes,10,opt,name=status,proto3" json:"status,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// Output only. The time the Session entered this state.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=start_time,proto3" json:"start_time,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// Output only. The time the Session stopped being in this state.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,30,opt,name=end_time,proto3" json:"end_time,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
	// contains filtered or unexported fields
}

func (*SessionState) Descriptor deprecated

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

Deprecated: Use SessionState.ProtoReflect.Descriptor instead.

func (*SessionState) GetEndTime

func (x *SessionState) GetEndTime() *timestamppb.Timestamp

func (*SessionState) GetStartTime

func (x *SessionState) GetStartTime() *timestamppb.Timestamp

func (*SessionState) GetStatus

func (x *SessionState) GetStatus() string

func (*SessionState) ProtoMessage

func (*SessionState) ProtoMessage()

func (*SessionState) ProtoReflect

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

func (*SessionState) Reset

func (x *SessionState) Reset()

func (*SessionState) String

func (x *SessionState) String() string

Jump to

Keyboard shortcuts

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