Documentation ¶
Index ¶
- type ChannelRecording
- type Client
- func (c *Client) ApiClient() *api.Client
- func (c *Client) Delete(ctx context.Context, id string, opt ...Option) (*SessionRecordingDeleteResult, error)
- 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) ListNextPage(ctx context.Context, currentPage *SessionRecordingListResult, opt ...Option) (*SessionRecordingListResult, error)
- func (c *Client) ReApplyStoragePolicy(ctx context.Context, contentId string, opt ...Option) (*SessionRecordingReadResult, error)
- func (c *Client) Read(ctx context.Context, id string, opt ...Option) (*SessionRecordingReadResult, error)
- type ConnectionRecording
- type Credential
- func (pt *Credential) GetJsonCredentialAttributes() (*JsonCredentialAttributes, error)
- func (pt *Credential) GetSshPrivateKeyCredentialAttributes() (*SshPrivateKeyCredentialAttributes, error)
- func (pt *Credential) GetUsernamePasswordCredentialAttributes() (*UsernamePasswordCredentialAttributes, error)
- type CredentialLibrary
- type CredentialStore
- type Host
- type HostCatalog
- type JsonCredentialAttributes
- type Option
- type SessionRecording
- type SessionRecordingDeleteResult
- type SessionRecordingListResult
- func (n SessionRecordingListResult) GetEstItemCount() uint
- func (n SessionRecordingListResult) GetItems() []*SessionRecording
- func (n SessionRecordingListResult) GetListToken() string
- func (n SessionRecordingListResult) GetRemovedIds() []string
- func (n SessionRecordingListResult) GetResponse() *api.Response
- func (n SessionRecordingListResult) GetResponseType() string
- type SessionRecordingReadResult
- type SshPrivateKeyCredentialAttributes
- type SshTargetAttributes
- type StaticHostAttributes
- type Target
- type User
- type UsernamePasswordCredentialAttributes
- type ValuesAtTime
- type VaultCredentialLibraryAttributes
- type VaultCredentialStoreAttributes
- type VaultSSHCertificateCredentialLibraryAttributes
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.
func (*Client) ListNextPage ¶ added in v0.0.53
func (c *Client) ListNextPage(ctx context.Context, currentPage *SessionRecordingListResult, opt ...Option) (*SessionRecordingListResult, error)
func (*Client) ReApplyStoragePolicy ¶ added in v0.0.45
func (c *Client) ReApplyStoragePolicy(ctx context.Context, contentId string, opt ...Option) (*SessionRecordingReadResult, error)
ReApplyStoragePolicy will reapply a storage policy to a session recording.
type ConnectionRecording ¶
type ConnectionRecording 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"` ChannelRecordings []*ChannelRecording `json:"channel_recordings,omitempty"` }
type Credential ¶ added in v0.0.40
type Credential struct { Id string `json:"id,omitempty"` CredentialStore *CredentialStore `json:"credential_store,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Purposes []string `json:"purposes,omitempty"` Type string `json:"type,omitempty"` Attributes map[string]interface{} `json:"attributes,omitempty"` }
func (*Credential) GetJsonCredentialAttributes ¶ added in v0.0.40
func (pt *Credential) GetJsonCredentialAttributes() (*JsonCredentialAttributes, error)
func (*Credential) GetSshPrivateKeyCredentialAttributes ¶ added in v0.0.40
func (pt *Credential) GetSshPrivateKeyCredentialAttributes() (*SshPrivateKeyCredentialAttributes, error)
func (*Credential) GetUsernamePasswordCredentialAttributes ¶ added in v0.0.40
func (pt *Credential) GetUsernamePasswordCredentialAttributes() (*UsernamePasswordCredentialAttributes, error)
type CredentialLibrary ¶ added in v0.0.40
type CredentialLibrary struct { Id string `json:"id,omitempty"` CredentialStore *CredentialStore `json:"credential_store,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Purposes []string `json:"purposes,omitempty"` Type string `json:"type,omitempty"` Attributes map[string]interface{} `json:"attributes,omitempty"` }
func (*CredentialLibrary) GetVaultCredentialLibraryAttributes ¶ added in v0.0.40
func (pt *CredentialLibrary) GetVaultCredentialLibraryAttributes() (*VaultCredentialLibraryAttributes, error)
func (*CredentialLibrary) GetVaultSSHCertificateCredentialLibraryAttributes ¶ added in v0.0.40
func (pt *CredentialLibrary) GetVaultSSHCertificateCredentialLibraryAttributes() (*VaultSSHCertificateCredentialLibraryAttributes, error)
type CredentialStore ¶ added in v0.0.40
type CredentialStore struct { Id string `json:"id,omitempty"` ScopeId string `json:"scope_id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Type string `json:"type,omitempty"` Attributes map[string]interface{} `json:"attributes,omitempty"` }
func (*CredentialStore) GetVaultCredentialStoreAttributes ¶ added in v0.0.40
func (pt *CredentialStore) GetVaultCredentialStoreAttributes() (*VaultCredentialStoreAttributes, error)
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"` ExternalName string `json:"external_name,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 JsonCredentialAttributes ¶ added in v0.0.40
type JsonCredentialAttributes struct {
ObjectHmac string `json:"object_hmac,omitempty"`
}
func AttributesMapToJsonCredentialAttributes ¶ added in v0.0.40
func AttributesMapToJsonCredentialAttributes(in map[string]any) (*JsonCredentialAttributes, error)
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 the 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 WithClientDirectedPagination ¶ added in v0.0.53
WithClientDirectedPagination tells the List function to return only the first page, if more pages are available
func WithListToken ¶ added in v0.0.44
WithListToken tells the API to use the provided list token for listing operations on this resource.
func WithPageSize ¶ added in v0.0.53
WithPageSize controls the size of pages used during List
func WithRecursive ¶
WithRecursive tells the API to use recursion for listing operations on this resource
func WithResourcePathOverride ¶ added in v0.0.53
WithResourcePathOverride tells the API to use the provided resource path
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"` RetainUntil time.Time `json:"retain_until,omitempty"` DeleteAfter time.Time `json:"delete_after,omitempty"` }
type SessionRecordingDeleteResult ¶ added in v0.0.45
func (SessionRecordingDeleteResult) GetItem ¶ added in v0.0.45
func (n SessionRecordingDeleteResult) GetItem() any
GetItem will always be nil for SessionRecordingDeleteResult
func (SessionRecordingDeleteResult) GetResponse ¶ added in v0.0.45
func (n SessionRecordingDeleteResult) GetResponse() *api.Response
type SessionRecordingListResult ¶
type SessionRecordingListResult struct { Items []*SessionRecording `json:"items,omitempty"` EstItemCount uint `json:"est_item_count,omitempty"` RemovedIds []string `json:"removed_ids,omitempty"` ListToken string `json:"list_token,omitempty"` ResponseType string `json:"response_type,omitempty"` Response *api.Response // contains filtered or unexported fields }
func (SessionRecordingListResult) GetEstItemCount ¶ added in v0.0.44
func (n SessionRecordingListResult) GetEstItemCount() uint
func (SessionRecordingListResult) GetItems ¶
func (n SessionRecordingListResult) GetItems() []*SessionRecording
func (SessionRecordingListResult) GetListToken ¶ added in v0.0.44
func (n SessionRecordingListResult) GetListToken() string
func (SessionRecordingListResult) GetRemovedIds ¶ added in v0.0.44
func (n SessionRecordingListResult) GetRemovedIds() []string
func (SessionRecordingListResult) GetResponse ¶
func (n SessionRecordingListResult) GetResponse() *api.Response
func (SessionRecordingListResult) GetResponseType ¶ added in v0.0.44
func (n SessionRecordingListResult) GetResponseType() string
type SessionRecordingReadResult ¶
type SessionRecordingReadResult struct { Item *SessionRecording Response *api.Response }
func (SessionRecordingReadResult) GetItem ¶
func (n SessionRecordingReadResult) GetItem() *SessionRecording
func (SessionRecordingReadResult) GetResponse ¶
func (n SessionRecordingReadResult) GetResponse() *api.Response
type SshPrivateKeyCredentialAttributes ¶ added in v0.0.40
type SshPrivateKeyCredentialAttributes struct { Username string `json:"username,omitempty"` PrivateKeyHmac string `json:"private_key_hmac,omitempty"` PrivateKeyPassphraseHmac string `json:"private_key_passphrase_hmac,omitempty"` }
func AttributesMapToSshPrivateKeyCredentialAttributes ¶ added in v0.0.40
func AttributesMapToSshPrivateKeyCredentialAttributes(in map[string]any) (*SshPrivateKeyCredentialAttributes, error)
type SshTargetAttributes ¶
type SshTargetAttributes struct { DefaultPort uint32 `json:"default_port,omitempty"` DefaultClientPort uint32 `json:"default_client_port,omitempty"` }
func AttributesMapToSshTargetAttributes ¶
func AttributesMapToSshTargetAttributes(in map[string]any) (*SshTargetAttributes, error)
type StaticHostAttributes ¶
type StaticHostAttributes struct {
Address string `json:"address,omitempty"`
}
func AttributesMapToStaticHostAttributes ¶
func AttributesMapToStaticHostAttributes(in map[string]any) (*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)
type UsernamePasswordCredentialAttributes ¶ added in v0.0.40
type UsernamePasswordCredentialAttributes struct { Username string `json:"username,omitempty"` PasswordHmac string `json:"password_hmac,omitempty"` }
func AttributesMapToUsernamePasswordCredentialAttributes ¶ added in v0.0.40
func AttributesMapToUsernamePasswordCredentialAttributes(in map[string]any) (*UsernamePasswordCredentialAttributes, error)
type ValuesAtTime ¶
type ValuesAtTime struct { User *User `json:"user,omitempty"` Target *Target `json:"target,omitempty"` Host *Host `json:"host,omitempty"` Credentials []*Credential `json:"credentials,omitempty"` CredentialLibraries []*CredentialLibrary `json:"credential_libraries,omitempty"` }
type VaultCredentialLibraryAttributes ¶ added in v0.0.40
type VaultCredentialLibraryAttributes struct { Path string `json:"path,omitempty"` HttpMethod string `json:"http_method,omitempty"` HttpRequestBody string `json:"http_request_body,omitempty"` }
func AttributesMapToVaultCredentialLibraryAttributes ¶ added in v0.0.40
func AttributesMapToVaultCredentialLibraryAttributes(in map[string]any) (*VaultCredentialLibraryAttributes, error)
type VaultCredentialStoreAttributes ¶ added in v0.0.40
type VaultCredentialStoreAttributes struct { Address string `json:"address,omitempty"` Namespace string `json:"namespace,omitempty"` TlsServerName string `json:"tls_server_name,omitempty"` TlsSkipVerify bool `json:"tls_skip_verify,omitempty"` WorkerFilter string `json:"worker_filter,omitempty"` }
func AttributesMapToVaultCredentialStoreAttributes ¶ added in v0.0.40
func AttributesMapToVaultCredentialStoreAttributes(in map[string]any) (*VaultCredentialStoreAttributes, error)
type VaultSSHCertificateCredentialLibraryAttributes ¶ added in v0.0.40
type VaultSSHCertificateCredentialLibraryAttributes struct { Path string `json:"path,omitempty"` Username string `json:"username,omitempty"` KeyType string `json:"key_type,omitempty"` KeyBits uint32 `json:"key_bits,omitempty"` Ttl string `json:"ttl,omitempty"` CriticalOptions map[string]string `json:"critical_options,omitempty"` Extensions map[string]string `json:"extensions,omitempty"` AdditionalValidPrincipals []string `json:"additional_valid_principals,omitempty"` }
func AttributesMapToVaultSSHCertificateCredentialLibraryAttributes ¶ added in v0.0.40
func AttributesMapToVaultSSHCertificateCredentialLibraryAttributes(in map[string]any) (*VaultSSHCertificateCredentialLibraryAttributes, error)
Source Files ¶
- channel_recording.gen.go
- connection_recording.gen.go
- credential.gen.go
- credential_library.gen.go
- credential_store.gen.go
- custom.go
- host.gen.go
- host_catalog.gen.go
- json_credential_attributes.gen.go
- option.gen.go
- session_recording.gen.go
- ssh_private_key_credential_attributes.gen.go
- ssh_target_attributes.gen.go
- static_host_attributes.gen.go
- target.gen.go
- user.gen.go
- username_password_credential_attributes.gen.go
- values_at_time.gen.go
- vault_credential_library_attributes.gen.go
- vault_credential_store_attributes.gen.go
- vault_ssh_certificate_credential_library_attributes.gen.go