Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewWithOptions ¶
func NewWithOptions(ctx context.Context, opts NewClientOpts) (*Client, error)
func (*Client) GetManagedCluster ¶
func (c *Client) GetManagedCluster(ctx context.Context, orgSlug string, id string) (GetManagedClusterResponse, error)
func (*Client) ListManagedClusters ¶
func (c *Client) ListManagedClusters(ctx context.Context, orgSlug string) (ListManagedClustersResponse, error)
type GetManagedClusterPasswordResponse ¶
type GetManagedClusterPasswordResponse struct {
Status string `json:"status"`
Value string `json:"value"`
}
type GetManagedClusterResponse ¶
type GetManagedClusterResponse struct {
Data ManagedCluster `json:"data"`
Password GetManagedClusterPasswordResponse `json:"password"`
}
type ListManagedClustersResponse ¶
type ListManagedClustersResponse struct {
Data []ManagedCluster `json:"data"`
}
type ManagedCluster ¶
type ManagedCluster struct {
Id string `json:"id"`
Name string `json:"name"`
Region string `json:"region"`
Status string `json:"status"`
Plan string `json:"plan"`
Organization fly.Organization `json:"organization"`
IpAssignments ManagedClusterIpAssignments `json:"ip_assignments"`
}
type ManagedClusterIpAssignments ¶
type ManagedClusterIpAssignments struct {
Direct string `json:"direct"`
}
type NewClientOpts ¶
type NewClientOpts struct {
// optional, sent with requests
UserAgent string
// URL used when connecting via usermode wireguard.
BaseURL *url.URL
Tokens *tokens.Tokens
// optional:
Logger fly.Logger
// optional, used to construct the underlying HTTP client
Transport http.RoundTripper
}
Click to show internal directories.
Click to hide internal directories.