Documentation ¶
Index ¶
- type APIClient
- func (api *APIClient) ApplicationEnviron(ctx context.Context, name, service string) (map[string]string, error)
- func (api *APIClient) ApplicationGetenv(ctx context.Context, name, service, key string) (string, error)
- func (api *APIClient) ApplicationSetenv(ctx context.Context, name, service string, env map[string]string) error
- func (api *APIClient) ApplicationUnsetenv(ctx context.Context, name, service string, keys ...string) error
- func (api *APIClient) Authenticate(ctx context.Context, username, password string) (token string, err error)
- func (cli *APIClient) ClientVersion() string
- func (api *APIClient) CreateApplication(ctx context.Context, opts types.CreateApplication, logger io.Writer) (*types.ApplicationInfo, error)
- func (api *APIClient) CreateService(ctx context.Context, logger io.Writer, app string, tags ...string) error
- func (api *APIClient) DeployApplication(ctx context.Context, name, branch string, logger io.Writer) error
- func (api *APIClient) Download(ctx context.Context, name string) (io.ReadCloser, error)
- func (api *APIClient) Dump(ctx context.Context, name string) (io.ReadCloser, error)
- func (api *APIClient) GetApplicationDeployments(ctx context.Context, name string) (*types.Deployments, error)
- func (api *APIClient) GetApplicationInfo(ctx context.Context, name string) (*types.ApplicationInfo, error)
- func (api *APIClient) GetApplications(ctx context.Context) ([]string, error)
- func (api *APIClient) GetInstalledPlugins(ctx context.Context, category manifest.Category) ([]*manifest.Plugin, error)
- func (api *APIClient) GetNamespace(ctx context.Context) (namespace string, err error)
- func (api *APIClient) GetPluginInfo(ctx context.Context, tag string) (*manifest.Plugin, error)
- func (api *APIClient) GetUserPlugins(ctx context.Context, category manifest.Category) ([]*manifest.Plugin, error)
- func (api *APIClient) InstallPlugin(ctx context.Context, body io.Reader) error
- func (api *APIClient) RemoveApplication(ctx context.Context, name string) error
- func (api *APIClient) RemoveNamespace(ctx context.Context, force bool) error
- func (api *APIClient) RemovePlugin(ctx context.Context, tag string) error
- func (api *APIClient) RemoveService(ctx context.Context, app, service string) error
- func (api *APIClient) RestartApplication(ctx context.Context, name string) error
- func (api *APIClient) Restore(ctx context.Context, name string, content io.Reader) error
- func (api *APIClient) ScaleApplication(ctx context.Context, name, scaling string) error
- func (api *APIClient) ServerVersion(ctx context.Context) (types.Version, error)
- func (api *APIClient) SetNamespace(ctx context.Context, namespace string) error
- func (api *APIClient) SetToken(token string)
- func (api *APIClient) StartApplication(ctx context.Context, name string) error
- func (api *APIClient) StopApplication(ctx context.Context, name string) error
- func (cli *APIClient) UpdateClientVersion(v string)
- func (api *APIClient) Upload(ctx context.Context, name string, content io.Reader, binary bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func NewAPIClient ¶
func (*APIClient) ApplicationEnviron ¶
func (*APIClient) ApplicationGetenv ¶
func (*APIClient) ApplicationSetenv ¶
func (*APIClient) ApplicationUnsetenv ¶
func (*APIClient) Authenticate ¶
func (*APIClient) ClientVersion ¶
func (*APIClient) CreateApplication ¶
func (api *APIClient) CreateApplication(ctx context.Context, opts types.CreateApplication, logger io.Writer) (*types.ApplicationInfo, error)
func (*APIClient) CreateService ¶
func (*APIClient) DeployApplication ¶
func (*APIClient) GetApplicationDeployments ¶
func (*APIClient) GetApplicationInfo ¶
func (*APIClient) GetApplications ¶
func (*APIClient) GetInstalledPlugins ¶
func (*APIClient) GetNamespace ¶
func (*APIClient) GetPluginInfo ¶
func (*APIClient) GetUserPlugins ¶
func (*APIClient) InstallPlugin ¶
func (*APIClient) RemoveApplication ¶
func (*APIClient) RemoveNamespace ¶
func (*APIClient) RemovePlugin ¶
func (*APIClient) RemoveService ¶
func (*APIClient) RestartApplication ¶
func (*APIClient) ScaleApplication ¶
func (*APIClient) ServerVersion ¶
func (*APIClient) SetNamespace ¶
func (*APIClient) StartApplication ¶
func (*APIClient) StopApplication ¶
func (*APIClient) UpdateClientVersion ¶
Click to show internal directories.
Click to hide internal directories.