Documentation
¶
Index ¶
- Constants
- Variables
- type APIError
- type Client
- func (c *Client) CreateBackupStore(ctx context.Context, input *models.CreateBackupStoreInput) (*models.BackupStore, error)
- func (c *Client) CreateCloudAccount(ctx context.Context, account *models.CreateCloudAccountInput) (*models.CloudAccount, error)
- func (c *Client) CreateCluster(ctx context.Context, cluster *models.CreateClusterInput) (*models.Cluster, error)
- func (c *Client) CreateDatabase(ctx context.Context, database *models.CreateDatabaseInput) (*models.Database, error)
- func (c *Client) CreateSSHKey(ctx context.Context, sshKey *models.CreateSSHKeyInput) (*models.SSHKey, error)
- func (c *Client) DeleteBackupStore(ctx context.Context, id strfmt.UUID) error
- func (c *Client) DeleteCloudAccount(ctx context.Context, id strfmt.UUID) error
- func (c *Client) DeleteCluster(ctx context.Context, id strfmt.UUID) error
- func (c *Client) DeleteDatabase(ctx context.Context, id strfmt.UUID) error
- func (c *Client) DeleteSSHKey(ctx context.Context, id strfmt.UUID) error
- func (c *Client) GetAllClusters(ctx context.Context) ([]*models.Cluster, error)
- func (c *Client) GetBackupStore(ctx context.Context, id strfmt.UUID) (*models.BackupStore, error)
- func (c *Client) GetBackupStores(ctx context.Context, createdAfter, createdBefore *string, limit, offset *int64, ...) ([]*models.BackupStore, error)
- func (c *Client) GetCloudAccount(ctx context.Context, id strfmt.UUID) (*models.CloudAccount, error)
- func (c *Client) GetCloudAccounts(ctx context.Context) ([]*models.CloudAccount, error)
- func (c *Client) GetCluster(ctx context.Context, id strfmt.UUID) (*models.Cluster, error)
- func (c *Client) GetClusterNodeLogs(ctx context.Context, clusterID, nodeID strfmt.UUID, logName string, ...) ([]*models.ClusterNodeLogMessage, error)
- func (c *Client) GetClusterNodes(ctx context.Context, id strfmt.UUID, nearLat, nearLon, orderBy *string) ([]*models.ClusterNode, error)
- func (c *Client) GetDatabase(ctx context.Context, id strfmt.UUID) (*models.Database, error)
- func (c *Client) GetDatabases(ctx context.Context) ([]*models.Database, error)
- func (c *Client) GetSSHKey(ctx context.Context, id strfmt.UUID) (*models.SSHKey, error)
- func (c *Client) GetSSHKeys(ctx context.Context) ([]*models.SSHKey, error)
- func (c *Client) GetTasks(ctx context.Context, subjectID, subjectKind string, id, name *string, ...) ([]*models.Task, error)
- func (c *Client) OAuthToken(ctx context.Context, clientId, clientSecret, grantType string) (*operations.PostOauthTokenOKBody, error)
- func (c *Client) PollTaskStatus(ctx context.Context, config TaskPollingConfig) error
- func (c *Client) UpdateCluster(ctx context.Context, id strfmt.UUID, body *models.UpdateClusterInput) (*models.Cluster, error)
- func (c *Client) UpdateDatabase(ctx context.Context, id strfmt.UUID, body *models.UpdateDatabaseInput) (*models.Database, error)
- type GeneratedAPIError
- type KnownError
- type PgEdgeAPI
- type TaskPollingConfig
- type TransportConfig
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "localhost" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/" )
Variables ¶
var Default = NewHTTPClient(nil)
Default pg edge API HTTP client.
var DefaultSchemes = []string{"http"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateBackupStore ¶ added in v0.0.7
func (c *Client) CreateBackupStore(ctx context.Context, input *models.CreateBackupStoreInput) (*models.BackupStore, error)
func (*Client) CreateCloudAccount ¶ added in v0.0.7
func (c *Client) CreateCloudAccount(ctx context.Context, account *models.CreateCloudAccountInput) (*models.CloudAccount, error)
func (*Client) CreateCluster ¶
func (*Client) CreateDatabase ¶
func (*Client) CreateSSHKey ¶ added in v0.0.7
func (*Client) DeleteBackupStore ¶ added in v0.0.7
func (*Client) DeleteCloudAccount ¶ added in v0.0.7
func (*Client) DeleteCluster ¶
func (*Client) DeleteDatabase ¶
func (*Client) DeleteSSHKey ¶ added in v0.0.7
func (*Client) GetAllClusters ¶
func (*Client) GetBackupStore ¶ added in v0.0.7
func (*Client) GetBackupStores ¶ added in v0.0.7
func (*Client) GetCloudAccount ¶ added in v0.0.7
func (*Client) GetCloudAccounts ¶ added in v0.0.7
func (*Client) GetCluster ¶
func (*Client) GetClusterNodeLogs ¶ added in v0.0.7
func (c *Client) GetClusterNodeLogs(ctx context.Context, clusterID, nodeID strfmt.UUID, logName string, params *operations.GetClustersIDNodesNodeIDLogsLogNameParams) ([]*models.ClusterNodeLogMessage, error)
func (*Client) GetClusterNodes ¶ added in v0.0.7
func (*Client) GetDatabase ¶
func (*Client) GetDatabases ¶
func (*Client) GetSSHKeys ¶ added in v0.0.7
func (*Client) OAuthToken ¶
func (c *Client) OAuthToken(ctx context.Context, clientId, clientSecret, grantType string) (*operations.PostOauthTokenOKBody, error)
func (*Client) PollTaskStatus ¶ added in v0.0.26
func (c *Client) PollTaskStatus(ctx context.Context, config TaskPollingConfig) error
func (*Client) UpdateCluster ¶ added in v0.0.6
type GeneratedAPIError ¶ added in v0.0.26
type KnownError ¶ added in v0.0.26
type PgEdgeAPI ¶
type PgEdgeAPI struct { Operations operations.ClientService Transport runtime.ClientTransport }
PgEdgeAPI is a client for pg edge API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *PgEdgeAPI
New creates a new pg edge API client
func NewHTTPClient ¶
NewHTTPClient creates a new pg edge API HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *PgEdgeAPI
NewHTTPClientWithConfig creates a new pg edge API HTTP client, using a customizable transport config.
func (*PgEdgeAPI) SetTransport ¶
func (c *PgEdgeAPI) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client and all its subresources
type TaskPollingConfig ¶ added in v0.0.26
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
func (*TransportConfig) WithBasePath ¶
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
func (*TransportConfig) WithHost ¶
func (cfg *TransportConfig) WithHost(host string) *TransportConfig
WithHost overrides the default host, provided by the meta section of the spec file.
func (*TransportConfig) WithSchemes ¶
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig
WithSchemes overrides the default schemes, provided by the meta section of the spec file.