Documentation ¶
Index ¶
- Constants
- type API
- func (s *API) CreateSSHKey(req *CreateSSHKeyRequest, opts ...scw.RequestOption) (*SSHKey, error)
- func (s *API) DeleteSSHKey(req *DeleteSSHKeyRequest, opts ...scw.RequestOption) error
- func (s *API) GetSSHKey(req *GetSSHKeyRequest, opts ...scw.RequestOption) (*SSHKey, error)
- func (s *API) ListSSHKeys(req *ListSSHKeysRequest, opts ...scw.RequestOption) (*ListSSHKeysResponse, error)
- func (s *API) UpdateSSHKey(req *UpdateSSHKeyRequest, opts ...scw.RequestOption) (*SSHKey, error)
- type CreateSSHKeyRequest
- type DeleteSSHKeyRequest
- type GetSSHKeyRequest
- type ListSSHKeysRequest
- type ListSSHKeysRequestOrderBy
- type ListSSHKeysResponse
- type SSHKey
- type SSHKeyCreationInfo
- type UpdateSSHKeyRequest
Constants ¶
View Source
const ( // ListSSHKeysRequestOrderByCreatedAtAsc is [insert doc]. ListSSHKeysRequestOrderByCreatedAtAsc = ListSSHKeysRequestOrderBy("created_at_asc") // ListSSHKeysRequestOrderByCreatedAtDesc is [insert doc]. ListSSHKeysRequestOrderByCreatedAtDesc = ListSSHKeysRequestOrderBy("created_at_desc") // ListSSHKeysRequestOrderByUpdatedAtAsc is [insert doc]. ListSSHKeysRequestOrderByUpdatedAtAsc = ListSSHKeysRequestOrderBy("updated_at_asc") // ListSSHKeysRequestOrderByUpdatedAtDesc is [insert doc]. ListSSHKeysRequestOrderByUpdatedAtDesc = ListSSHKeysRequestOrderBy("updated_at_desc") // ListSSHKeysRequestOrderByNameAsc is [insert doc]. ListSSHKeysRequestOrderByNameAsc = ListSSHKeysRequestOrderBy("name_asc") // ListSSHKeysRequestOrderByNameDesc is [insert doc]. ListSSHKeysRequestOrderByNameDesc = ListSSHKeysRequestOrderBy("name_desc") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API this API allows to manage your scaleway account
func (*API) CreateSSHKey ¶
func (s *API) CreateSSHKey(req *CreateSSHKeyRequest, opts ...scw.RequestOption) (*SSHKey, error)
CreateSSHKey create an SSH key
func (*API) DeleteSSHKey ¶
func (s *API) DeleteSSHKey(req *DeleteSSHKeyRequest, opts ...scw.RequestOption) error
DeleteSSHKey delete an SSH key
func (*API) GetSSHKey ¶
func (s *API) GetSSHKey(req *GetSSHKeyRequest, opts ...scw.RequestOption) (*SSHKey, error)
GetSSHKey get SSH key details
func (*API) ListSSHKeys ¶
func (s *API) ListSSHKeys(req *ListSSHKeysRequest, opts ...scw.RequestOption) (*ListSSHKeysResponse, error)
ListSSHKeys list all SSH keys
func (*API) UpdateSSHKey ¶
func (s *API) UpdateSSHKey(req *UpdateSSHKeyRequest, opts ...scw.RequestOption) (*SSHKey, error)
UpdateSSHKey update an SSH key
type CreateSSHKeyRequest ¶
type DeleteSSHKeyRequest ¶
type DeleteSSHKeyRequest struct {
SSHKeyID string `json:"-"`
}
type GetSSHKeyRequest ¶
type GetSSHKeyRequest struct {
SSHKeyID string `json:"-"`
}
type ListSSHKeysRequest ¶
type ListSSHKeysRequest struct { // OrderBy // // Default value: created_at_asc OrderBy ListSSHKeysRequestOrderBy `json:"-"` Page *int32 `json:"-"` PageSize *int32 `json:"-"` Name *string `json:"-"` OrganizationID *string `json:"-"` }
type ListSSHKeysRequestOrderBy ¶
type ListSSHKeysRequestOrderBy string
func (ListSSHKeysRequestOrderBy) MarshalJSON ¶
func (enum ListSSHKeysRequestOrderBy) MarshalJSON() ([]byte, error)
func (ListSSHKeysRequestOrderBy) String ¶
func (enum ListSSHKeysRequestOrderBy) String() string
func (*ListSSHKeysRequestOrderBy) UnmarshalJSON ¶
func (enum *ListSSHKeysRequestOrderBy) UnmarshalJSON(data []byte) error
type ListSSHKeysResponse ¶
type ListSSHKeysResponse struct { SSHKeys []*SSHKey `json:"ssh_keys"` TotalCount uint32 `json:"total_count"` }
func (*ListSSHKeysResponse) UnsafeAppend ¶
func (r *ListSSHKeysResponse) UnsafeAppend(res interface{}) (int, scw.SdkError)
UnsafeAppend should not be used Internal usage only
func (*ListSSHKeysResponse) UnsafeGetTotalCount ¶
func (r *ListSSHKeysResponse) UnsafeGetTotalCount() int
UnsafeGetTotalCount should not be used Internal usage only
type SSHKey ¶
type SSHKey struct { ID string `json:"id"` Name string `json:"name"` PublicKey string `json:"public_key"` Fingerprint string `json:"fingerprint"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` CreationInfo *SSHKeyCreationInfo `json:"creation_info"` OrganizationID string `json:"organization_id"` }
type SSHKeyCreationInfo ¶
type UpdateSSHKeyRequest ¶
Click to show internal directories.
Click to hide internal directories.