Documentation
¶
Index ¶
- type ChannelRecording
- type Client
- func (c *Client) ApiClient() *api.Client
- func (c *Client) Download(ctx context.Context, contentId string, opt ...Option) (io.ReadCloser, error)
- func (c *Client) List(ctx context.Context, scopeId string, opt ...Option) (*SessionRecordingListResult, error)
- func (c *Client) Read(ctx context.Context, id string, opt ...Option) (*SessionRecordingReadResult, error)
- type ConnectionRecording
- type Host
- type HostCatalog
- type Option
- type SessionRecording
- type SessionRecordingListResult
- type SessionRecordingReadResult
- type SshTargetAttributes
- type StaticHostAttributes
- type Target
- type User
- type ValuesAtTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelRecording ¶
type ChannelRecording struct {
Id string `json:"id,omitempty"`
BytesUp uint64 `json:"bytes_up,string,omitempty"`
BytesDown uint64 `json:"bytes_down,string,omitempty"`
CreatedTime time.Time `json:"created_time,omitempty"`
UpdatedTime time.Time `json:"updated_time,omitempty"`
StartTime time.Time `json:"start_time,omitempty"`
EndTime time.Time `json:"end_time,omitempty"`
Duration api.Duration `json:"duration,omitempty"`
MimeTypes []string `json:"mime_types,omitempty"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for this collection
func NewClient ¶
Creates a new client for this collection. The submitted API client is cloned; modifications to it after generating this client will not have effect. If you need to make changes to the underlying API client, use ApiClient() to access it.
func (*Client) Download ¶
func (c *Client) Download(ctx context.Context, contentId string, opt ...Option) (io.ReadCloser, error)
Download will of course download the request session recording resource. Currently it always requests a mime-type of asciicast.
type ConnectionRecording ¶
type ConnectionRecording struct {
Id string `json:"id,omitempty"`
ConnectionId string `json:"connection_id,omitempty"`
BytesUp uint64 `json:"bytes_up,string,omitempty"`
BytesDown uint64 `json:"bytes_down,string,omitempty"`
CreatedTime time.Time `json:"created_time,omitempty"`
UpdatedTime time.Time `json:"updated_time,omitempty"`
StartTime time.Time `json:"start_time,omitempty"`
EndTime time.Time `json:"end_time,omitempty"`
Duration api.Duration `json:"duration,omitempty"`
MimeTypes []string `json:"mime_types,omitempty"`
ChannelRecordings []*ChannelRecording `json:"channel_recordings,omitempty"`
}
type Host ¶
type Host struct {
Id string `json:"id,omitempty"`
HostCatalog *HostCatalog `json:"host_catalog,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Type string `json:"type,omitempty"`
Attributes map[string]interface{} `json:"attributes,omitempty"`
ExternalId string `json:"external_id,omitempty"`
}
func (*Host) GetStaticHostAttributes ¶
func (pt *Host) GetStaticHostAttributes() (*StaticHostAttributes, error)
type HostCatalog ¶
type HostCatalog struct {
Id string `json:"id,omitempty"`
Scope *scopes.ScopeInfo `json:"scope,omitempty"`
PluginId string `json:"plugin_id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Type string `json:"type,omitempty"`
Attributes map[string]interface{} `json:"attributes,omitempty"`
}
type Option ¶
type Option func(*options)
Option is a func that sets optional attributes for a call. This does not need to be used directly, but instead option arguments are built from the functions in this package. WithX options set a value to that given in the argument; DefaultX options indicate that the value should be set to its default. When an API call is made options are processed in ther order they appear in the function call, so for a given argument X, a succession of WithX or DefaultX calls will result in the last call taking effect.
func WithRecursive ¶
WithRecursive tells the API to use recursion for listing operations on this resource
func WithSkipCurlOutput ¶
WithSkipCurlOutput tells the API to not use the current call for cURL output. Useful for when we need to look up versions.
type SessionRecording ¶
type SessionRecording struct {
Id string `json:"id,omitempty"`
Scope *scopes.ScopeInfo `json:"scope,omitempty"`
SessionId string `json:"session_id,omitempty"`
StorageBucketId string `json:"storage_bucket_id,omitempty"`
BytesUp uint64 `json:"bytes_up,string,omitempty"`
BytesDown uint64 `json:"bytes_down,string,omitempty"`
CreatedTime time.Time `json:"created_time,omitempty"`
UpdatedTime time.Time `json:"updated_time,omitempty"`
StartTime time.Time `json:"start_time,omitempty"`
EndTime time.Time `json:"end_time,omitempty"`
Duration api.Duration `json:"duration,omitempty"`
Type string `json:"type,omitempty"`
State string `json:"state,omitempty"`
ErrorDetails string `json:"error_details,omitempty"`
MimeTypes []string `json:"mime_types,omitempty"`
Endpoint string `json:"endpoint,omitempty"`
ConnectionRecordings []*ConnectionRecording `json:"connection_recordings,omitempty"`
CreateTimeValues *ValuesAtTime `json:"create_time_values,omitempty"`
AuthorizedActions []string `json:"authorized_actions,omitempty"`
// contains filtered or unexported fields
}
type SessionRecordingListResult ¶
type SessionRecordingListResult struct {
Items []*SessionRecording
// contains filtered or unexported fields
}
func (SessionRecordingListResult) GetItems ¶
func (n SessionRecordingListResult) GetItems() []*SessionRecording
func (SessionRecordingListResult) GetResponse ¶
func (n SessionRecordingListResult) GetResponse() *api.Response
type SessionRecordingReadResult ¶
type SessionRecordingReadResult struct {
Item *SessionRecording
// contains filtered or unexported fields
}
func (SessionRecordingReadResult) GetItem ¶
func (n SessionRecordingReadResult) GetItem() *SessionRecording
func (SessionRecordingReadResult) GetResponse ¶
func (n SessionRecordingReadResult) GetResponse() *api.Response
type SshTargetAttributes ¶
type SshTargetAttributes struct {
DefaultPort uint32 `json:"default_port,omitempty"`
}
func AttributesMapToSshTargetAttributes ¶
func AttributesMapToSshTargetAttributes(in map[string]interface{}) (*SshTargetAttributes, error)
type StaticHostAttributes ¶
type StaticHostAttributes struct {
Address string `json:"address,omitempty"`
}
func AttributesMapToStaticHostAttributes ¶
func AttributesMapToStaticHostAttributes(in map[string]interface{}) (*StaticHostAttributes, error)
type Target ¶
type Target struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Scope *scopes.ScopeInfo `json:"scope,omitempty"`
SessionMaxSeconds uint32 `json:"session_max_seconds,omitempty"`
SessionConnectionLimit int32 `json:"session_connection_limit,omitempty"`
WorkerFilter string `json:"worker_filter,omitempty"`
EgressWorkerFilter string `json:"egress_worker_filter,omitempty"`
IngressWorkerFilter string `json:"ingress_worker_filter,omitempty"`
Type string `json:"type,omitempty"`
Attributes map[string]interface{} `json:"attributes,omitempty"`
}
func (*Target) GetSshTargetAttributes ¶
func (pt *Target) GetSshTargetAttributes() (*SshTargetAttributes, error)