Documentation ¶
Index ¶
- Variables
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetAuthTokenId() string
- func (x *Session) GetAuthorizedActions() []string
- func (x *Session) GetCertificate() []byte
- func (x *Session) GetCreatedTime() *timestamppb.Timestamp
- func (x *Session) GetEndpoint() string
- func (x *Session) GetExpirationTime() *timestamppb.Timestamp
- func (x *Session) GetHostId() string
- func (x *Session) GetHostSetId() string
- func (x *Session) GetId() string
- func (x *Session) GetScope() *scopes.ScopeInfo
- func (x *Session) GetScopeId() string
- func (x *Session) GetStates() []*SessionState
- func (x *Session) GetStatus() string
- func (x *Session) GetTargetId() string
- func (x *Session) GetTerminationReason() string
- func (x *Session) GetType() string
- func (x *Session) GetUpdatedTime() *timestamppb.Timestamp
- func (x *Session) GetUserId() string
- func (x *Session) GetVersion() uint32
- func (x *Session) GetWorkerInfo() []*WorkerInfo
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type SessionState
- func (*SessionState) Descriptor() ([]byte, []int)deprecated
- func (x *SessionState) GetEndTime() *timestamppb.Timestamp
- func (x *SessionState) GetStartTime() *timestamppb.Timestamp
- func (x *SessionState) GetStatus() string
- func (*SessionState) ProtoMessage()
- func (x *SessionState) ProtoReflect() protoreflect.Message
- func (x *SessionState) Reset()
- func (x *SessionState) String() string
- type WorkerInfo
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 Session ¶
type Session struct { // Output only. The ID of the Session. Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty"` // 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"` // 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"` // Output only. The time this resource was last updated. UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty"` // 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"` // Output only. Type of the Session (e.g. tcp). Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty"` // Output only. After this time the connection will be expired, e.g. forcefully terminated. ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,100,opt,name=expiration_time,proto3" json:"expiration_time,omitempty"` // 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"` // 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"` // 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"` // Output only. The Host used by the Session. HostId string `protobuf:"bytes,140,opt,name=host_id,proto3" json:"host_id,omitempty"` // Output only. The Scope of the Session. ScopeId string `protobuf:"bytes,150,opt,name=scope_id,proto3" json:"scope_id,omitempty"` // 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"` // 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"` // Output only. Worker information given to the client. WorkerInfo []*WorkerInfo `protobuf:"bytes,190,rep,name=worker_info,proto3" json:"worker_info,omitempty"` // Output only. The certificate generated for the session. Raw DER bytes. Certificate []byte `protobuf:"bytes,200,opt,name=certificate,proto3" json:"certificate,omitempty"` // Output only. If the session is terminated, this provides a short description as to why. TerminationReason string `protobuf:"bytes,210,opt,name=termination_reason,proto3" json:"termination_reason,omitempty"` // 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"` // contains filtered or unexported fields }
Session contains all fields related to a Session resource
func (*Session) Descriptor
deprecated
func (*Session) GetAuthTokenId ¶
func (*Session) GetAuthorizedActions ¶
func (*Session) GetCertificate ¶
func (*Session) GetCreatedTime ¶
func (x *Session) GetCreatedTime() *timestamppb.Timestamp
func (*Session) GetEndpoint ¶
func (*Session) GetExpirationTime ¶
func (x *Session) GetExpirationTime() *timestamppb.Timestamp
func (*Session) GetHostSetId ¶
func (*Session) GetScopeId ¶
func (*Session) GetStates ¶
func (x *Session) GetStates() []*SessionState
func (*Session) GetTargetId ¶
func (*Session) GetTerminationReason ¶
func (*Session) GetUpdatedTime ¶
func (x *Session) GetUpdatedTime() *timestamppb.Timestamp
func (*Session) GetVersion ¶
func (*Session) GetWorkerInfo ¶
func (x *Session) GetWorkerInfo() []*WorkerInfo
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
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"` // Output only. The time the Session entered this state. StartTime *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=start_time,proto3" json:"start_time,omitempty"` // 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"` // 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
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 }
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.