Documentation
¶
Index ¶
- type MarmotClient
- type MarmotEndpoint
- func (m *MarmotEndpoint) AddUserRole(userID string, roleName string) error
- func (m *MarmotEndpoint) AuthLogin(userID, password string) (*api.AuthLoginResponse, error)
- func (m *MarmotEndpoint) AuthLogout() error
- func (m *MarmotEndpoint) AuthMe() (*api.AuthMe, error)
- func (m *MarmotEndpoint) AuthzCheck(request api.AuthzCheckRequest) (*api.AuthzCheckResponse, error)
- func (m *MarmotEndpoint) ChangeUserPassword(userID string, request api.PasswordChangeRequest) error
- func (m *MarmotEndpoint) CreateGateway(spec api.Gateway) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) CreateImage(spec api.Image) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) CreateLoadBalancer(spec api.ApplicationLoadBalancer) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) CreateNetworkLoadBalancer(spec api.NetworkLoadBalancer) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) CreateServer(spec api.Server) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) CreateUser(user api.User) (*api.User, error)
- func (m *MarmotEndpoint) CreateUserApiKey(userID string, request api.ApiKeyCreateRequest) (*api.ApiKey, string, error)
- func (m *MarmotEndpoint) CreateVirtualNetwork(spec api.VirtualNetwork) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) CreateVolume(spec api.Volume) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) CreateVpnGateway(spec api.VpnGateway) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) DeleteGatewayById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) DeleteImageById(key string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) DeleteLoadBalancerById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) DeleteNetworkLoadBalancerById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) DeleteServerById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) DeleteUserApiKey(userID string, apiKeyID string) error
- func (m *MarmotEndpoint) DeleteUserById(userID string) error
- func (m *MarmotEndpoint) DeleteUserRole(userID string, roleName string) error
- func (m *MarmotEndpoint) DeleteVirtualNetworkById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) DeleteVolumeById(key string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) DeleteVpnGatewayById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) DownloadImageQcow2ById(key string) ([]byte, error)
- func (m *MarmotEndpoint) GetGatewayById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetGatewayCertById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetGateways() ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetImages() ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetIpAddressesByNetworkId(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetIpNetworksByVirtualNetworkId(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetLoadBalancerById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetLoadBalancers() ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetMarmotCluster() ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetMarmotStatus() ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetNetworkLoadBalancerById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetNetworkLoadBalancers() ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetRoleByName(roleName string) (*api.Role, error)
- func (m *MarmotEndpoint) GetServerById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetServers() ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetUserById(userID string) (*api.User, error)
- func (m *MarmotEndpoint) GetVersion() (*api.Version, error)
- func (m *MarmotEndpoint) GetVirtualNetworkById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetVirtualNetworks() ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetVpnGatewayById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetVpnGatewayCertById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) GetVpnGateways() ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) ImportImageArchive(tgzPath string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) ListIpNetworks() ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) ListRoles() (api.Roles, error)
- func (m *MarmotEndpoint) ListUserApiKeys(userID string) (api.ApiKeys, error)
- func (m *MarmotEndpoint) ListUserRoles(userID string) (api.RoleNames, error)
- func (m *MarmotEndpoint) ListUsers() (api.Users, error)
- func (m *MarmotEndpoint) ListVolumes() ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) LockUserById(userID string) error
- func (m *MarmotEndpoint) MakeImageEntryFromRunningVMById(id, name string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) Ping() (int, []byte, *url.URL, error)
- func (m *MarmotEndpoint) SetAccessToken(token string)
- func (m *MarmotEndpoint) ShowImageById(key string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) ShowVolumeById(key string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) StartServerById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) StopServerById(id string) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) UnlockUserById(userID string) error
- func (m *MarmotEndpoint) UpdateGatewayById(id string, spec api.Gateway) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) UpdateImageById(key string, spec api.Image) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) UpdateLoadBalancerById(id string, spec api.ApplicationLoadBalancer) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) UpdateNetworkLoadBalancerById(id string, spec api.NetworkLoadBalancer) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) UpdateServerById(id string, spec api.Server) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) UpdateUserById(userID string, user api.User) (*api.User, error)
- func (m *MarmotEndpoint) UpdateVirtualNetworkById(id string, spec api.VirtualNetwork) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) UpdateVolumeById(key string, spec api.Volume) ([]byte, *url.URL, error)
- func (m *MarmotEndpoint) UpdateVpnGatewayById(id string, spec api.VpnGateway) ([]byte, *url.URL, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarmotClient ¶
type MarmotClient struct {
NodeName string
}
type MarmotEndpoint ¶
type MarmotEndpoint struct {
Scheme string // Scheme for the endpoint, e.g., "http" or "https".
HostPort string
BasePath string // Base path for the API, e.g., "/api/v1".
InsecureSkipTLSVerify bool
AccessToken string
Client *http.Client // Specialized client.
}
func NewMarmotdEp ¶
func (*MarmotEndpoint) AddUserRole ¶ added in v0.25.0
func (m *MarmotEndpoint) AddUserRole(userID string, roleName string) error
func (*MarmotEndpoint) AuthLogin ¶ added in v0.25.0
func (m *MarmotEndpoint) AuthLogin(userID, password string) (*api.AuthLoginResponse, error)
func (*MarmotEndpoint) AuthLogout ¶ added in v0.25.0
func (m *MarmotEndpoint) AuthLogout() error
func (*MarmotEndpoint) AuthMe ¶ added in v0.25.0
func (m *MarmotEndpoint) AuthMe() (*api.AuthMe, error)
func (*MarmotEndpoint) AuthzCheck ¶ added in v0.25.0
func (m *MarmotEndpoint) AuthzCheck(request api.AuthzCheckRequest) (*api.AuthzCheckResponse, error)
func (*MarmotEndpoint) ChangeUserPassword ¶ added in v0.25.0
func (m *MarmotEndpoint) ChangeUserPassword(userID string, request api.PasswordChangeRequest) error
func (*MarmotEndpoint) CreateGateway ¶ added in v0.16.0
CreateGateway creates a gateway resource.
func (*MarmotEndpoint) CreateImage ¶ added in v0.11.0
イメージの作成
func (*MarmotEndpoint) CreateLoadBalancer ¶ added in v0.19.0
func (m *MarmotEndpoint) CreateLoadBalancer(spec api.ApplicationLoadBalancer) ([]byte, *url.URL, error)
func (*MarmotEndpoint) CreateNetworkLoadBalancer ¶ added in v0.20.0
func (m *MarmotEndpoint) CreateNetworkLoadBalancer(spec api.NetworkLoadBalancer) ([]byte, *url.URL, error)
func (*MarmotEndpoint) CreateServer ¶ added in v0.9.1
サーバーの作成
func (*MarmotEndpoint) CreateUser ¶ added in v0.25.0
func (*MarmotEndpoint) CreateUserApiKey ¶ added in v0.25.0
func (m *MarmotEndpoint) CreateUserApiKey(userID string, request api.ApiKeyCreateRequest) (*api.ApiKey, string, error)
func (*MarmotEndpoint) CreateVirtualNetwork ¶ added in v0.11.0
func (m *MarmotEndpoint) CreateVirtualNetwork(spec api.VirtualNetwork) ([]byte, *url.URL, error)
仮想プライベートネットワークの作成
func (*MarmotEndpoint) CreateVolume ¶ added in v0.9.1
ボリュームの作成
func (*MarmotEndpoint) CreateVpnGateway ¶ added in v0.17.0
func (m *MarmotEndpoint) CreateVpnGateway(spec api.VpnGateway) ([]byte, *url.URL, error)
func (*MarmotEndpoint) DeleteGatewayById ¶ added in v0.16.0
DeleteGatewayById requests deletion for a gateway resource.
func (*MarmotEndpoint) DeleteImageById ¶ added in v0.11.0
イメージの削除
func (*MarmotEndpoint) DeleteLoadBalancerById ¶ added in v0.19.0
func (*MarmotEndpoint) DeleteNetworkLoadBalancerById ¶ added in v0.20.0
func (*MarmotEndpoint) DeleteServerById ¶ added in v0.9.1
サーバーの削除
func (*MarmotEndpoint) DeleteUserApiKey ¶ added in v0.25.0
func (m *MarmotEndpoint) DeleteUserApiKey(userID string, apiKeyID string) error
func (*MarmotEndpoint) DeleteUserById ¶ added in v0.25.0
func (m *MarmotEndpoint) DeleteUserById(userID string) error
func (*MarmotEndpoint) DeleteUserRole ¶ added in v0.25.0
func (m *MarmotEndpoint) DeleteUserRole(userID string, roleName string) error
func (*MarmotEndpoint) DeleteVirtualNetworkById ¶ added in v0.11.0
仮想プライベートネットワークの削除
func (*MarmotEndpoint) DeleteVolumeById ¶ added in v0.9.1
ボリュームの削除
func (*MarmotEndpoint) DeleteVpnGatewayById ¶ added in v0.17.0
func (*MarmotEndpoint) DownloadImageQcow2ById ¶ added in v0.20.0
func (m *MarmotEndpoint) DownloadImageQcow2ById(key string) ([]byte, error)
イメージのQCOW2をダウンロードする
func (*MarmotEndpoint) GetGatewayById ¶ added in v0.16.0
GetGatewayById gets a gateway by ID.
func (*MarmotEndpoint) GetGatewayCertById ¶ added in v0.17.0
GetGatewayCertById downloads gateway cert profile as text/plain.
func (*MarmotEndpoint) GetGateways ¶ added in v0.16.0
func (m *MarmotEndpoint) GetGateways() ([]byte, *url.URL, error)
GetGateways gets all gateways.
func (*MarmotEndpoint) GetImages ¶ added in v0.11.0
func (m *MarmotEndpoint) GetImages() ([]byte, *url.URL, error)
イメージの一覧取得
func (*MarmotEndpoint) GetIpAddressesByNetworkId ¶ added in v0.11.4
指定したIPネットワークに割り当てられたIPアドレスの一覧を取得
func (*MarmotEndpoint) GetIpNetworksByVirtualNetworkId ¶ added in v0.11.4
指定した仮想ネットワークに割り当てられたIPネットワークの一覧を取得
func (*MarmotEndpoint) GetLoadBalancerById ¶ added in v0.19.0
func (*MarmotEndpoint) GetLoadBalancers ¶ added in v0.19.0
func (m *MarmotEndpoint) GetLoadBalancers() ([]byte, *url.URL, error)
func (*MarmotEndpoint) GetMarmotCluster ¶ added in v0.12.0
func (m *MarmotEndpoint) GetMarmotCluster() ([]byte, *url.URL, error)
クラスタ全体のホストステータスを取得
func (*MarmotEndpoint) GetMarmotStatus ¶ added in v0.11.6
func (m *MarmotEndpoint) GetMarmotStatus() ([]byte, *url.URL, error)
ホストのステータスを取得
func (*MarmotEndpoint) GetNetworkLoadBalancerById ¶ added in v0.20.0
func (*MarmotEndpoint) GetNetworkLoadBalancers ¶ added in v0.20.0
func (m *MarmotEndpoint) GetNetworkLoadBalancers() ([]byte, *url.URL, error)
func (*MarmotEndpoint) GetRoleByName ¶ added in v0.25.0
func (m *MarmotEndpoint) GetRoleByName(roleName string) (*api.Role, error)
func (*MarmotEndpoint) GetServerById ¶ added in v0.9.1
サーバーの詳細を取得
func (*MarmotEndpoint) GetServers ¶ added in v0.9.1
func (m *MarmotEndpoint) GetServers() ([]byte, *url.URL, error)
サーバーの一覧を取得、フィルターは、パラメータで指定するようにする
func (*MarmotEndpoint) GetUserById ¶ added in v0.25.0
func (m *MarmotEndpoint) GetUserById(userID string) (*api.User, error)
func (*MarmotEndpoint) GetVersion ¶
func (m *MarmotEndpoint) GetVersion() (*api.Version, error)
func (*MarmotEndpoint) GetVirtualNetworkById ¶ added in v0.11.0
仮想プライベートネットワークの詳細を取得
func (*MarmotEndpoint) GetVirtualNetworks ¶ added in v0.11.0
func (m *MarmotEndpoint) GetVirtualNetworks() ([]byte, *url.URL, error)
仮想プライベートネットワークの一覧を取得、フィルターは、パラメータで指定するようにする
func (*MarmotEndpoint) GetVpnGatewayById ¶ added in v0.17.0
func (*MarmotEndpoint) GetVpnGatewayCertById ¶ added in v0.17.0
func (*MarmotEndpoint) GetVpnGateways ¶ added in v0.17.0
func (m *MarmotEndpoint) GetVpnGateways() ([]byte, *url.URL, error)
func (*MarmotEndpoint) ImportImageArchive ¶ added in v0.20.0
tgzファイルをアップロードしてイメージをインポートする
func (*MarmotEndpoint) ListIpNetworks ¶ added in v0.11.4
func (m *MarmotEndpoint) ListIpNetworks() ([]byte, *url.URL, error)
全ての仮想ネットワークに割り当てられたIPネットワークの一覧を取得
func (*MarmotEndpoint) ListRoles ¶ added in v0.25.0
func (m *MarmotEndpoint) ListRoles() (api.Roles, error)
func (*MarmotEndpoint) ListUserApiKeys ¶ added in v0.25.0
func (m *MarmotEndpoint) ListUserApiKeys(userID string) (api.ApiKeys, error)
func (*MarmotEndpoint) ListUserRoles ¶ added in v0.25.0
func (m *MarmotEndpoint) ListUserRoles(userID string) (api.RoleNames, error)
func (*MarmotEndpoint) ListUsers ¶ added in v0.25.0
func (m *MarmotEndpoint) ListUsers() (api.Users, error)
func (*MarmotEndpoint) ListVolumes ¶ added in v0.9.1
func (m *MarmotEndpoint) ListVolumes() ([]byte, *url.URL, error)
ボリュームの一覧取得
func (*MarmotEndpoint) LockUserById ¶ added in v0.25.0
func (m *MarmotEndpoint) LockUserById(userID string) error
func (*MarmotEndpoint) MakeImageEntryFromRunningVMById ¶ added in v0.11.0
func (*MarmotEndpoint) SetAccessToken ¶ added in v0.25.0
func (m *MarmotEndpoint) SetAccessToken(token string)
func (*MarmotEndpoint) ShowImageById ¶ added in v0.11.0
イメージの詳細取得
func (*MarmotEndpoint) ShowVolumeById ¶ added in v0.9.1
ボリュームの詳細取得
func (*MarmotEndpoint) StartServerById ¶ added in v0.11.6
サーバーの起動
func (*MarmotEndpoint) StopServerById ¶ added in v0.11.6
サーバーの停止
func (*MarmotEndpoint) UnlockUserById ¶ added in v0.25.0
func (m *MarmotEndpoint) UnlockUserById(userID string) error
func (*MarmotEndpoint) UpdateGatewayById ¶ added in v0.16.0
UpdateGatewayById updates a gateway by ID.
func (*MarmotEndpoint) UpdateImageById ¶ added in v0.11.0
イメージの更新
func (*MarmotEndpoint) UpdateLoadBalancerById ¶ added in v0.19.0
func (m *MarmotEndpoint) UpdateLoadBalancerById(id string, spec api.ApplicationLoadBalancer) ([]byte, *url.URL, error)
func (*MarmotEndpoint) UpdateNetworkLoadBalancerById ¶ added in v0.20.0
func (m *MarmotEndpoint) UpdateNetworkLoadBalancerById(id string, spec api.NetworkLoadBalancer) ([]byte, *url.URL, error)
func (*MarmotEndpoint) UpdateServerById ¶ added in v0.9.1
サーバーの更新
func (*MarmotEndpoint) UpdateUserById ¶ added in v0.25.0
func (*MarmotEndpoint) UpdateVirtualNetworkById ¶ added in v0.11.0
func (m *MarmotEndpoint) UpdateVirtualNetworkById(id string, spec api.VirtualNetwork) ([]byte, *url.URL, error)
仮想プライベートネットワークの更新
func (*MarmotEndpoint) UpdateVolumeById ¶ added in v0.9.1
ボリュームの更新
func (*MarmotEndpoint) UpdateVpnGatewayById ¶ added in v0.17.0
func (m *MarmotEndpoint) UpdateVpnGatewayById(id string, spec api.VpnGateway) ([]byte, *url.URL, error)