Documentation
¶
Index ¶
- Constants
- type ArkPCloudAccount
- type ArkPCloudAccountCredentials
- type ArkPCloudAccountRemoteMachinesAccess
- type ArkPCloudAccountSecretManagement
- type ArkPCloudAccountSecretVersion
- type ArkPCloudAccountsFilter
- type ArkPCloudAccountsStats
- type ArkPCloudAddAccount
- type ArkPCloudChangeAccountCredentials
- type ArkPCloudDeleteAccount
- type ArkPCloudGenerateAccountCredentials
- type ArkPCloudGetAccount
- type ArkPCloudGetAccountCredentials
- type ArkPCloudLinkAccount
- type ArkPCloudListAccountSecretVersions
- type ArkPCloudReconcileAccountCredentials
- type ArkPCloudSetAccountNextCredentials
- type ArkPCloudUnlinkAccount
- type ArkPCloudUpdateAccount
- type ArkPCloudUpdateAccountCredentialsInVault
- type ArkPCloudVerifyAccountCredentials
Constants ¶
const ( Password = "password" Key = "key" )
Possible Secret Types
const ( Show = "show" Copy = "copy" Connect = "connect" )
Possible values for ActionType
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArkPCloudAccount ¶
type ArkPCloudAccount struct { AccountID string `json:"account_id" mapstructure:"account_id" desc:"ID of the account" flag:"account-id" validate:"required"` Status string `json:"status,omitempty" mapstructure:"status,omitempty" desc:"Status of the account" flag:"status"` CreatedTime int `json:"created_time,omitempty" mapstructure:"created_time,omitempty" desc:"Creation time of the account" flag:"created-time"` CategoryModificationTime int `` /* 178-byte string literal not displayed */ Name string `json:"name" mapstructure:"name" desc:"Name of the account" flag:"name" validate:"required"` SafeName string `json:"safe_name" mapstructure:"safe_name" desc:"Safe name to store the account in" flag:"safe-name" validate:"required"` PlatformID string `` /* 128-byte string literal not displayed */ Username string `json:"username,omitempty" mapstructure:"username,omitempty" desc:"Username of the account" flag:"username"` Address string `json:"address,omitempty" mapstructure:"address,omitempty" desc:"Address of the account" flag:"address"` SecretType string `` /* 163-byte string literal not displayed */ PlatformAccountProperties map[string]interface{} `` /* 210-byte string literal not displayed */ SecretManagement ArkPCloudAccountSecretManagement `` /* 140-byte string literal not displayed */ RemoteMachinesAccess ArkPCloudAccountRemoteMachinesAccess `` /* 166-byte string literal not displayed */ }
ArkPCloudAccount represents the full properties of an account.
type ArkPCloudAccountCredentials ¶
type ArkPCloudAccountCredentials struct { AccountID string `json:"account_id" mapstructure:"account_id" desc:"The id of the account" flag:"account-id" validate:"required"` Password string `json:"password" mapstructure:"password" desc:"The credentials" flag:"password" validate:"required"` }
ArkPCloudAccountCredentials represents the credentials of an account.
type ArkPCloudAccountRemoteMachinesAccess ¶
type ArkPCloudAccountRemoteMachinesAccess struct { RemoteMachines []string `` /* 157-byte string literal not displayed */ AccessRestrictedToRemoteMachines bool `` /* 229-byte string literal not displayed */ }
ArkPCloudAccountRemoteMachinesAccess represents the remote machine access properties of an account.
type ArkPCloudAccountSecretManagement ¶
type ArkPCloudAccountSecretManagement struct { AutomaticManagementEnabled bool `` /* 204-byte string literal not displayed */ ManualManagementReason string `` /* 176-byte string literal not displayed */ LastModifiedTime int `` /* 162-byte string literal not displayed */ }
ArkPCloudAccountSecretManagement represents the secret management properties of an account.
type ArkPCloudAccountSecretVersion ¶
type ArkPCloudAccountSecretVersion struct { IsTemporary bool `json:"is_temporary" mapstructure:"is_temporary" desc:"Whether the secret is permanent or temporary" flag:"is-temporary"` ModificationDate int `json:"modification_date" mapstructure:"modification_date" desc:"Modification time of the secret" flag:"modification-date"` ModifiedBy string `json:"modified_by" mapstructure:"modified_by" desc:"Username who modified the secret" flag:"modified-by"` VersionID int `json:"version_id" mapstructure:"version_id" desc:"Version ID of the secret" flag:"version-id"` }
ArkPCloudAccountSecretVersion represents the version details of an account secret.
type ArkPCloudAccountsFilter ¶
type ArkPCloudAccountsFilter struct { Search string `json:"search,omitempty" mapstructure:"search,omitempty" desc:"Search by string" flag:"search"` SearchType string `` /* 143-byte string literal not displayed */ Sort string `json:"sort,omitempty" mapstructure:"sort,omitempty" desc:"Sort results by given key" flag:"sort"` SafeName string `json:"safe_name,omitempty" mapstructure:"safe_name,omitempty" desc:"Safe name to filter by" flag:"safe-name"` Offset int `json:"offset,omitempty" mapstructure:"offset,omitempty" desc:"Offset to the accounts list" flag:"offset"` Limit int `json:"limit,omitempty" mapstructure:"limit,omitempty" desc:"Limit of results" flag:"limit"` }
ArkPCloudAccountsFilter represents the filter options for accounts.
type ArkPCloudAccountsStats ¶
type ArkPCloudAccountsStats struct { AccountsCount int `json:"accounts_count" mapstructure:"accounts_count" desc:"Overall accounts count" flag:"accounts-count"` AccountsCountByPlatformID map[string]int `` /* 155-byte string literal not displayed */ AccountsCountBySafeName map[string]int `` /* 147-byte string literal not displayed */ }
ArkPCloudAccountsStats represents the statistics of accounts.
type ArkPCloudAddAccount ¶
type ArkPCloudAddAccount struct { // Using inheritance on those for easier translation for CLI params ArkPCloudAccountSecretManagement `mapstructure:",squash"` ArkPCloudAccountRemoteMachinesAccess `mapstructure:",squash"` Secret string `json:"secret" mapstructure:"secret" desc:"The secret of the account" flag:"secret" validate:"required"` Name string `json:"name" mapstructure:"name,omitempty" desc:"Name of the account" flag:"name"` SafeName string `json:"safe_name" mapstructure:"safe_name" desc:"Safe name to store the account in" flag:"safe-name" validate:"required"` PlatformID string `` /* 128-byte string literal not displayed */ Username string `json:"username,omitempty" mapstructure:"username,omitempty" desc:"Username of the account" flag:"username"` Address string `json:"address,omitempty" mapstructure:"address,omitempty" desc:"Address of the account" flag:"address"` SecretType string `` /* 163-byte string literal not displayed */ PlatformAccountProperties map[string]interface{} `` /* 210-byte string literal not displayed */ }
ArkPCloudAddAccount represents the details required to add an account.
type ArkPCloudChangeAccountCredentials ¶
type ArkPCloudChangeAccountCredentials struct {
AccountID string `` /* 137-byte string literal not displayed */
}
ArkPCloudChangeAccountCredentials represents the details required to change account credentials.
type ArkPCloudDeleteAccount ¶
type ArkPCloudDeleteAccount struct {
AccountID string `json:"account_id" mapstructure:"account_id" desc:"The id of the account to delete" flag:"account-id" validate:"required"`
}
ArkPCloudDeleteAccount represents the details required to delete an account.
type ArkPCloudGenerateAccountCredentials ¶
type ArkPCloudGenerateAccountCredentials struct {
AccountID string `` /* 139-byte string literal not displayed */
}
ArkPCloudGenerateAccountCredentials represents the details required to generate account credentials.
type ArkPCloudGetAccount ¶
type ArkPCloudGetAccount struct {
AccountID string `json:"account_id" mapstructure:"account_id" desc:"The id of the account to retrieve" flag:"account-id" validate:"required"`
}
ArkPCloudGetAccount represents the details required to retrieve an account.
type ArkPCloudGetAccountCredentials ¶
type ArkPCloudGetAccountCredentials struct { AccountID string `` /* 142-byte string literal not displayed */ Reason string `json:"reason,omitempty" mapstructure:"reason,omitempty" desc:"Reason for retrieving the credentials" flag:"reason"` TicketingSystemName string `` /* 183-byte string literal not displayed */ TicketID string `` /* 133-byte string literal not displayed */ Version string `json:"version,omitempty" mapstructure:"version,omitempty" desc:"Version of the credentials to retrieve" flag:"version"` ActionType string `` /* 163-byte string literal not displayed */ Machine string `` /* 148-byte string literal not displayed */ }
ArkPCloudGetAccountCredentials represents the details required to retrieve account credentials.
type ArkPCloudLinkAccount ¶
type ArkPCloudLinkAccount struct { AccountID string `json:"account_id" mapstructure:"account_id" desc:"The id of the account to link" flag:"account-id" validate:"required"` Safe string `json:"safe" mapstructure:"safe" desc:"The safe in which the linked account is stored" flag:"safe" validate:"required"` ExtraPasswordIndex int `` /* 158-byte string literal not displayed */ Folder string `json:"folder" mapstructure:"folder" desc:"Folder of the linked account" flag:"folder" validate:"required"` Name string `json:"name" mapstructure:"name" desc:"The linked account name" flag:"name" validate:"required"` }
ArkPCloudLinkAccount represents the details required to link an account.
type ArkPCloudListAccountSecretVersions ¶
type ArkPCloudListAccountSecretVersions struct { AccountID string `` /* 146-byte string literal not displayed */ ShowTemporary bool `` /* 127-byte string literal not displayed */ }
ArkPCloudListAccountSecretVersions represents the details required to list account secret versions.
type ArkPCloudReconcileAccountCredentials ¶
type ArkPCloudReconcileAccountCredentials struct {
AccountID string `` /* 137-byte string literal not displayed */
}
ArkPCloudReconcileAccountCredentials represents the details required to mark an account for reconciliation.
type ArkPCloudSetAccountNextCredentials ¶
type ArkPCloudSetAccountNextCredentials struct { AccountID string `` /* 137-byte string literal not displayed */ NewCredentials string `` /* 127-byte string literal not displayed */ }
ArkPCloudSetAccountNextCredentials represents the details required to set the next credentials for an account.
type ArkPCloudUnlinkAccount ¶
type ArkPCloudUnlinkAccount struct { AccountID string `json:"account_id" mapstructure:"account_id" desc:"The id of the account to unlink" flag:"account-id" validate:"required"` ExtraPasswordIndex string `` /* 158-byte string literal not displayed */ }
ArkPCloudUnlinkAccount represents the details required to unlink an account.
type ArkPCloudUpdateAccount ¶
type ArkPCloudUpdateAccount struct { ArkPCloudAccountSecretManagement `mapstructure:",squash"` ArkPCloudAccountRemoteMachinesAccess `mapstructure:",squash"` Secret string `json:"secret" mapstructure:"secret" desc:"The secret of the account to update" flag:"secret"` AccountID string `json:"account_id" mapstructure:"account_id" desc:"The account id to update" flag:"account-id" validate:"required"` Name string `json:"name,omitempty" mapstructure:"name,omitempty" desc:"Name of the account to update" flag:"name"` Address string `json:"address,omitempty" mapstructure:"address,omitempty" desc:"Address of the account to update" flag:"address"` Username string `json:"username,omitempty" mapstructure:"username,omitempty" desc:"Username of the account to update" flag:"username"` PlatformID string `` /* 138-byte string literal not displayed */ PlatformAccountProperties map[string]interface{} `` /* 220-byte string literal not displayed */ }
ArkPCloudUpdateAccount represents the details required to update an account.
type ArkPCloudUpdateAccountCredentialsInVault ¶
type ArkPCloudUpdateAccountCredentialsInVault struct { AccountID string `` /* 137-byte string literal not displayed */ NewCredentials string `` /* 135-byte string literal not displayed */ }
ArkPCloudUpdateAccountCredentialsInVault represents the details required to update account credentials in the vault.
type ArkPCloudVerifyAccountCredentials ¶
type ArkPCloudVerifyAccountCredentials struct {
AccountID string `` /* 133-byte string literal not displayed */
}
ArkPCloudVerifyAccountCredentials represents the details required to verify account credentials.
Source Files
¶
- ark_pcloud_account.go
- ark_pcloud_account_credentials.go
- ark_pcloud_account_secret_version.go
- ark_pcloud_accounts_filter.go
- ark_pcloud_accounts_stats.go
- ark_pcloud_add_account.go
- ark_pcloud_change_account_credentials.go
- ark_pcloud_delete_account.go
- ark_pcloud_generate_account_credentials.go
- ark_pcloud_get_account.go
- ark_pcloud_get_account_credentials.go
- ark_pcloud_link_account.go
- ark_pcloud_list_account_secret_versions.go
- ark_pcloud_reconcile_account_credentials.go
- ark_pcloud_set_account_next_credentials.go
- ark_pcloud_unlink_account.go
- ark_pcloud_update_account.go
- ark_pcloud_update_account_credentials_in_vault.go
- ark_pcloud_verify_account_credentias.go