Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateApp(locator loc.Locator, reader io.Reader, labels map[string]string) (*app.Application, error)
- func (c *Client) CreateAppWithManifest(locator loc.Locator, manifest []byte, reader io.Reader, ...) (*app.Application, error)
- func (c *Client) CreateImportOperation(req *app.ImportRequest) (*storage.AppOperation, error)
- func (c *Client) Delete(endpoint string, params url.Values) (*roundtrip.Response, error)
- func (c *Client) DeleteApp(req app.DeleteRequest) error
- func (c *Client) DeleteAppHookJob(ctx context.Context, req app.DeleteAppHookJobRequest) error
- func (c *Client) ExportApp(req app.ExportAppRequest) error
- func (c *Client) FetchChart(locator loc.Locator) (io.ReadCloser, error)
- func (c *Client) FetchIndexFile() (io.Reader, error)
- func (c *Client) Get(endpoint string, params url.Values) (*roundtrip.Response, error)
- func (c *Client) GetApp(locator loc.Locator) (*app.Application, error)
- func (c *Client) GetAppInstaller(req app.InstallerRequest) (io.ReadCloser, error)
- func (c *Client) GetAppManifest(locator loc.Locator) (io.ReadCloser, error)
- func (c *Client) GetAppResources(locator loc.Locator) (io.ReadCloser, error)
- func (c *Client) GetImportedApplication(op storage.AppOperation) (*app.Application, error)
- func (c *Client) GetOperationCrashReport(op storage.AppOperation) (io.ReadCloser, error)
- func (c *Client) GetOperationLogs(op storage.AppOperation) (io.ReadCloser, error)
- func (c *Client) GetOperationProgress(op storage.AppOperation) (*app.ProgressEntry, error)
- func (c *Client) ListApps(req app.ListAppsRequest) (apps []app.Application, err error)
- func (c *Client) PostForm(endpoint string, values url.Values, files ...roundtrip.File) (*roundtrip.Response, error)
- func (c *Client) PostJSON(endpoint string, data interface{}) (*roundtrip.Response, error)
- func (c *Client) StartAppHook(ctx context.Context, req app.HookRunRequest) (*app.HookRef, error)
- func (c *Client) StatusApp(locator loc.Locator) (*app.Status, error)
- func (c *Client) StreamAppHookLogs(ctx context.Context, ref app.HookRef, out io.Writer) error
- func (c *Client) UninstallApp(locator loc.Locator) (*app.Application, error)
- func (c *Client) UpsertApp(locator loc.Locator, reader io.Reader, labels map[string]string) (*app.Application, error)
- func (c *Client) WaitAppHook(ctx context.Context, ref app.HookRef) error
- type Param
Constants ¶
const CurrentVersion = "app/v1"
CurrentVersion is the current version of the API to use with the client
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client implements the application management interface
func NewAuthenticatedClient ¶
NewAuthenticatedClient returns a new client with the specified user security context
func NewBearerClient ¶
NewBearerClient returns a new client that user bearer token for authentication
func (*Client) CreateApp ¶
func (c *Client) CreateApp(locator loc.Locator, reader io.Reader, labels map[string]string) (*app.Application, error)
CreateApp creates a new application. POST app/v1/applications/:repository_id
func (*Client) CreateAppWithManifest ¶
func (c *Client) CreateAppWithManifest(locator loc.Locator, manifest []byte, reader io.Reader, labels map[string]string) (*app.Application, error)
CreateAppWithManifest creates a new application with the specified manifest.
func (*Client) CreateImportOperation ¶
func (c *Client) CreateImportOperation(req *app.ImportRequest) (*storage.AppOperation, error)
CreateImportOperation creates a new import operation. POST app/v1/operations/import/
func (*Client) DeleteApp ¶
func (c *Client) DeleteApp(req app.DeleteRequest) error
DeleteApp deletes the application described with req. DELETE app/v1/:repository_id/:package_id/:version?force=true
func (*Client) DeleteAppHookJob ¶
DeleteAppHookJob deletes the application hook job specified with req. DELETE app/v1/applications/:repository_id/:package_id/:version/hook/:namespace/:name
func (*Client) ExportApp ¶
func (c *Client) ExportApp(req app.ExportAppRequest) error
ExportApp exports the application described with req. POST app/v1/operations/export/:repository_id/:package_id/:version
func (*Client) FetchChart ¶
FetchChart returns Helm chart package with the specified application.
GET charts/:name
func (*Client) FetchIndexFile ¶
FetchIndexFile returns Helm chart repository index file data.
GET charts/index.yaml
func (*Client) GetApp ¶
GetApp returns the application descriptor for application specified with locator. GET app/v1/applications/:repository_id/:package_id/:version
func (*Client) GetAppInstaller ¶
func (c *Client) GetAppInstaller(req app.InstallerRequest) (io.ReadCloser, error)
GetAppInstaller returns the Reader to the application installer tarball. GET app/v1/applications/:repository_id/:package_id/:version/standalone-installer
func (*Client) GetAppManifest ¶
GetAppManifest returns the manifest for the application specified with locator. GET app/v1/applications/:repository_name/:package_name/:version/manifest
func (*Client) GetAppResources ¶
GetAppResources returns the Reader to the application resources tarball. GET app/v1/applications/:repository_name/:package_name/:version/resources
func (*Client) GetImportedApplication ¶
func (c *Client) GetImportedApplication(op storage.AppOperation) (*app.Application, error)
GetImportedApplication returns the application descriptor for the specified import operation. GET app/v1/operations/import/:operation_id
func (*Client) GetOperationCrashReport ¶
func (c *Client) GetOperationCrashReport(op storage.AppOperation) (io.ReadCloser, error)
GetOperationCrashReport returns the crash report. GET app/v1/operations/import/:operation_id/crash-report
func (*Client) GetOperationLogs ¶
func (c *Client) GetOperationLogs(op storage.AppOperation) (io.ReadCloser, error)
GetOperationLogs returns the operation logs. GET app/v1/operations/import/:operation_id/logs
func (*Client) GetOperationProgress ¶
func (c *Client) GetOperationProgress(op storage.AppOperation) (*app.ProgressEntry, error)
GetOperationProgress queries the operation progress. GET app/v1/operations/import/:operation_id/progress
func (*Client) ListApps ¶
func (c *Client) ListApps(req app.ListAppsRequest) (apps []app.Application, err error)
ListApps returns the list of applications as requested in req. GET app/v1/applications/:repository_id/
func (*Client) PostForm ¶
func (c *Client) PostForm( endpoint string, values url.Values, files ...roundtrip.File) (*roundtrip.Response, error)
PostForm is a generic method that issues http POST request to the server
func (*Client) StartAppHook ¶
StartAppHook starts a new application hook job specified with req. The operation is asynchronous - use WaitAppHook to wait for completion. POST app/v1/applications/:repository_id/:package_id/:version/hook/start
func (*Client) StatusApp ¶
StatusApp runs the application status hook and returns the results. GET app/v1/applications/:repository_id/:package_id/:version/status
func (*Client) StreamAppHookLogs ¶
StreamAppHookLogs streams the application hook logs into the specified writer out.
func (*Client) UninstallApp ¶
UninstallApp uninstalls for the application specified with locator. POST app/v1/operations/uninstall/:repository_id/:package_id/:version
type Param ¶
Param defines the API to override configuration on client c
func HTTPClient ¶
HTTPClient is a functional parameter that sets the internal HTTP client
func WithLocalDialer ¶
WithLocalDialer specifies the dialer to use for connecting to an endpoint if standard dialing fails