Documentation ¶
Index ¶
- type Commander
- type DeisCmd
- func (d *DeisCmd) AppCreate(id, buildpack, remote string, noRemote bool) error
- func (d *DeisCmd) AppDestroy(appID, confirm string) error
- func (d *DeisCmd) AppInfo(appID string) error
- func (d *DeisCmd) AppLogs(appID string, lines int) error
- func (d *DeisCmd) AppOpen(appID string) error
- func (d *DeisCmd) AppRun(appID, command string) error
- func (d *DeisCmd) AppTransfer(appID, username string) error
- func (d *DeisCmd) AppsList(results int) error
- func (d *DeisCmd) AutoscaleList(appID string) error
- func (d *DeisCmd) AutoscaleSet(appID string, processType string, min int, max int, CPUPercent int) error
- func (d *DeisCmd) AutoscaleUnset(appID string, processType string) error
- func (d *DeisCmd) BuildsCreate(appID, image, procfile string) error
- func (d *DeisCmd) BuildsList(appID string, results int) error
- func (d *DeisCmd) Cancel(username, password string, yes bool) error
- func (d *DeisCmd) CertAdd(cert string, key string, name string) error
- func (d *DeisCmd) CertAttach(name, domain string) error
- func (d *DeisCmd) CertDetach(name, domain string) error
- func (d *DeisCmd) CertInfo(name string) error
- func (d *DeisCmd) CertRemove(name string) error
- func (d *DeisCmd) CertsList(results int, now time.Time) error
- func (d *DeisCmd) ConfigList(appID string, format string) error
- func (d *DeisCmd) ConfigPull(appID string, interactive bool, overwrite bool) error
- func (d *DeisCmd) ConfigPush(appID, fileName string) error
- func (d *DeisCmd) ConfigSet(appID string, configVars []string) error
- func (d *DeisCmd) ConfigUnset(appID string, configVars []string) error
- func (d *DeisCmd) DomainsAdd(appID, domain string) error
- func (d *DeisCmd) DomainsList(appID string, results int) error
- func (d *DeisCmd) DomainsRemove(appID, domain string) error
- func (d *DeisCmd) GitRemote(appID, remote string, force bool) error
- func (d *DeisCmd) GitRemove(appID string) error
- func (d *DeisCmd) HealthchecksList(appID, procType string) error
- func (d *DeisCmd) HealthchecksSet(appID, healthcheckType, procType string, probe *api.Healthcheck) error
- func (d *DeisCmd) HealthchecksUnset(appID, procType string, healthchecks []string) error
- func (d *DeisCmd) KeyAdd(name string, keyLocation string) error
- func (d *DeisCmd) KeyRemove(keyID string) error
- func (d *DeisCmd) KeysList(results int) error
- func (d *DeisCmd) LabelsList(appID string) error
- func (d *DeisCmd) LabelsSet(appID string, labels []string) error
- func (d *DeisCmd) LabelsUnset(appID string, labels []string) error
- func (d *DeisCmd) LimitsList(appID string) error
- func (d *DeisCmd) LimitsSet(appID string, limits []string, limitType string) error
- func (d *DeisCmd) LimitsUnset(appID string, limits []string, limitType string) error
- func (d *DeisCmd) Login(controller string, username string, password string, sslVerify bool) error
- func (d *DeisCmd) Logout() error
- func (d *DeisCmd) MaintenanceDisable(appID string) error
- func (d *DeisCmd) MaintenanceEnable(appID string) error
- func (d *DeisCmd) MaintenanceInfo(appID string) error
- func (d *DeisCmd) Passwd(username, password, newPassword string) error
- func (d *DeisCmd) PermCreate(appID string, username string, admin bool) error
- func (d *DeisCmd) PermDelete(appID, username string, admin bool) error
- func (d *DeisCmd) PermsList(appID string, admin bool, results int) error
- func (d *DeisCmd) Print(a ...interface{}) (n int, err error)
- func (d *DeisCmd) PrintErr(a ...interface{}) (n int, err error)
- func (d *DeisCmd) PrintErrf(s string, a ...interface{}) (n int, err error)
- func (d *DeisCmd) PrintErrln(a ...interface{}) (n int, err error)
- func (d *DeisCmd) Printf(s string, a ...interface{}) (n int, err error)
- func (d *DeisCmd) Println(a ...interface{}) (n int, err error)
- func (d *DeisCmd) PsList(appID string, results int) error
- func (d *DeisCmd) PsRestart(appID, target string) error
- func (d *DeisCmd) PsScale(appID string, targets []string) error
- func (d *DeisCmd) Regenerate(username string, all bool) error
- func (d *DeisCmd) Register(controller string, username string, password string, email string, ...) error
- func (d *DeisCmd) RegistryList(appID string) error
- func (d *DeisCmd) RegistrySet(appID string, item []string) error
- func (d *DeisCmd) RegistryUnset(appID string, items []string) error
- func (d *DeisCmd) ReleasesInfo(appID string, version int) error
- func (d *DeisCmd) ReleasesList(appID string, results int) error
- func (d *DeisCmd) ReleasesRollback(appID string, version int) error
- func (d *DeisCmd) RoutingDisable(appID string) error
- func (d *DeisCmd) RoutingEnable(appID string) error
- func (d *DeisCmd) RoutingInfo(appID string) error
- func (d *DeisCmd) ServicesAdd(appID, procfileType string, pathPattern string) error
- func (d *DeisCmd) ServicesList(appID string) error
- func (d *DeisCmd) ServicesRemove(appID, procfileType string) error
- func (d *DeisCmd) ShortcutsList() error
- func (d *DeisCmd) TLSDisable(appID string) error
- func (d *DeisCmd) TLSEnable(appID string) error
- func (d *DeisCmd) TLSInfo(appID string) error
- func (d *DeisCmd) TagsList(appID string) error
- func (d *DeisCmd) TagsSet(appID string, tags []string) error
- func (d *DeisCmd) TagsUnset(appID string, tags []string) error
- func (d *DeisCmd) TimeoutsList(appID string) error
- func (d *DeisCmd) TimeoutsSet(appID string, timeouts []string) error
- func (d *DeisCmd) TimeoutsUnset(appID string, timeouts []string) error
- func (d *DeisCmd) UsersList(results int) error
- func (d *DeisCmd) Version(all bool) error
- func (d *DeisCmd) WhitelistAdd(appID, IPs string) error
- func (d *DeisCmd) WhitelistList(appID string) error
- func (d *DeisCmd) WhitelistRemove(appID, IPs string) error
- func (d *DeisCmd) Whoami(all bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commander ¶
type Commander interface { AppCreate(string, string, string, bool) error AppsList(int) error AppInfo(string) error AppOpen(string) error AppLogs(string, int) error AppRun(string, string) error AppDestroy(string, string) error AppTransfer(string, string) error AutoscaleList(string) error AutoscaleSet(string, string, int, int, int) error AutoscaleUnset(string, string) error Register(string, string, string, string, bool, bool) error Login(string, string, string, bool) error Logout() error Passwd(string, string, string) error Cancel(string, string, bool) error Whoami(bool) error Regenerate(string, bool) error BuildsList(string, int) error BuildsCreate(string, string, string) error CertsList(int, time.Time) error CertAdd(string, string, string) error CertRemove(string) error CertInfo(string) error CertAttach(string, string) error CertDetach(string, string) error ConfigList(string, string) error ConfigSet(string, []string) error ConfigUnset(string, []string) error ConfigPull(string, bool, bool) error ConfigPush(string, string) error DomainsList(string, int) error DomainsAdd(string, string) error DomainsRemove(string, string) error ServicesList(string) error ServicesAdd(string, string, string) error ServicesRemove(string, string) error GitRemote(string, string, bool) error GitRemove(string) error HealthchecksList(string, string) error HealthchecksSet(string, string, string, *api.Healthcheck) error HealthchecksUnset(string, string, []string) error KeysList(int) error KeyRemove(string) error KeyAdd(string, string) error LabelsList(string) error LabelsSet(string, []string) error LabelsUnset(string, []string) error LimitsList(string) error LimitsSet(string, []string, string) error LimitsUnset(string, []string, string) error TimeoutsList(string) error TimeoutsSet(string, []string) error TimeoutsUnset(string, []string) error MaintenanceInfo(string) error MaintenanceEnable(string) error MaintenanceDisable(string) error PermsList(string, bool, int) error PermCreate(string, string, bool) error PermDelete(string, string, bool) error PsList(string, int) error PsScale(string, []string) error PsRestart(string, string) error RegistryList(string) error RegistrySet(string, []string) error RegistryUnset(string, []string) error ReleasesList(string, int) error ReleasesInfo(string, int) error ReleasesRollback(string, int) error RoutingInfo(string) error RoutingEnable(string) error RoutingDisable(string) error ShortcutsList() error TagsList(string) error TagsSet(string, []string) error TagsUnset(string, []string) error TLSInfo(string) error TLSEnable(string) error TLSDisable(string) error UsersList(results int) error WhitelistAdd(string, string) error WhitelistList(string) error WhitelistRemove(string, string) error Println(...interface{}) (int, error) Print(...interface{}) (int, error) Printf(string, ...interface{}) (int, error) PrintErrln(...interface{}) (int, error) PrintErr(...interface{}) (int, error) PrintErrf(string, ...interface{}) (int, error) Version(bool) error }
Commander is interface definition for running commands
type DeisCmd ¶
DeisCmd is an implementation of Commander.
func (*DeisCmd) AppDestroy ¶
AppDestroy destroys an app.
func (*DeisCmd) AppTransfer ¶
AppTransfer transfers app ownership to another user.
func (*DeisCmd) AutoscaleList ¶
AutoscaleList tells the informations about app's autoscale status
func (*DeisCmd) AutoscaleSet ¶
func (d *DeisCmd) AutoscaleSet(appID string, processType string, min int, max int, CPUPercent int) error
AutoscaleSet sets autoscale options for the app.
func (*DeisCmd) AutoscaleUnset ¶
AutoscaleUnset removes autoscale for the app.
func (*DeisCmd) BuildsCreate ¶
BuildsCreate creates a build for an app.
func (*DeisCmd) BuildsList ¶
BuildsList lists an app's builds.
func (*DeisCmd) CertAttach ¶
CertAttach attaches a certificate to a domain
func (*DeisCmd) CertDetach ¶
CertDetach detaches a certificate from a domain
func (*DeisCmd) CertRemove ¶
CertRemove deletes a cert from the controller.
func (*DeisCmd) ConfigList ¶
ConfigList lists an app's config.
func (*DeisCmd) ConfigPull ¶
ConfigPull pulls an app's config to a file.
func (*DeisCmd) ConfigPush ¶
ConfigPush pushes an app's config from a file.
func (*DeisCmd) ConfigUnset ¶
ConfigUnset removes a config variable from an app.
func (*DeisCmd) DomainsAdd ¶
DomainsAdd adds a domain to an app.
func (*DeisCmd) DomainsList ¶
DomainsList lists domains registered with an app.
func (*DeisCmd) DomainsRemove ¶
DomainsRemove removes a domain registered with an app.
func (*DeisCmd) HealthchecksList ¶
HealthchecksList lists an app's healthchecks.
func (*DeisCmd) HealthchecksSet ¶
func (d *DeisCmd) HealthchecksSet(appID, healthcheckType, procType string, probe *api.Healthcheck) error
HealthchecksSet sets an app's healthchecks.
func (*DeisCmd) HealthchecksUnset ¶
HealthchecksUnset removes an app's healthchecks.
func (*DeisCmd) LabelsList ¶
LabelsList list app's labels
func (*DeisCmd) LabelsUnset ¶
LabelsUnset removes labels for the app.
func (*DeisCmd) LimitsList ¶
LimitsList lists an app's limits.
func (*DeisCmd) LimitsUnset ¶
LimitsUnset removes an app's limits.
func (*DeisCmd) MaintenanceDisable ¶
MaintenanceDisable turns off the maintenance for the app.
func (*DeisCmd) MaintenanceEnable ¶
MaintenanceEnable turns on the maintenance for the app.
func (*DeisCmd) MaintenanceInfo ¶
MaintenanceInfo tells the informations about app's maintenance status
func (*DeisCmd) PermCreate ¶
PermCreate adds a user to an app or makes them an administrator.
func (*DeisCmd) PermDelete ¶
PermDelete removes a user from an app or revokes admin privileges.
func (*DeisCmd) PrintErrln ¶
PrintErrln prints a line to an error writer.
func (*DeisCmd) Regenerate ¶
Regenerate regenenerates a user's token.
func (*DeisCmd) Register ¶
func (d *DeisCmd) Register(controller string, username string, password string, email string, sslVerify, login bool) error
Register creates a account on a Deis controller.
func (*DeisCmd) RegistryList ¶
RegistryList lists an app's registry information.
func (*DeisCmd) RegistrySet ¶
RegistrySet sets an app's registry information.
func (*DeisCmd) RegistryUnset ¶
RegistryUnset removes an app's registry information.
func (*DeisCmd) ReleasesInfo ¶
ReleasesInfo prints info about a specific release.
func (*DeisCmd) ReleasesList ¶
ReleasesList lists an app's releases.
func (*DeisCmd) ReleasesRollback ¶
ReleasesRollback rolls an app back to a previous release.
func (*DeisCmd) RoutingDisable ¶
RoutingDisable disables an app from being exposed by the router.
func (*DeisCmd) RoutingEnable ¶
RoutingEnable enables an app from being exposed by the router.
func (*DeisCmd) RoutingInfo ¶
RoutingInfo provides information about the status of app routing.
func (*DeisCmd) ServicesAdd ¶
ServicesAdd adds a service to an app.
func (*DeisCmd) ServicesList ¶
ServicesList lists extra services for the app
func (*DeisCmd) ServicesRemove ¶
ServicesRemove removes a service for procfileType registered with an app.
func (*DeisCmd) ShortcutsList ¶
ShortcutsList displays all relevant shortcuts for the CLI.
func (*DeisCmd) TLSDisable ¶
TLSDisable disables the router to enforce https-only requests to the application.
func (*DeisCmd) TLSEnable ¶
TLSEnable enables the router to enforce https-only requests to the application.
func (*DeisCmd) TimeoutsList ¶
TimeoutsList lists an app's timeouts.
func (*DeisCmd) TimeoutsSet ¶
TimeoutsSet sets an app's timeouts.
func (*DeisCmd) TimeoutsUnset ¶
TimeoutsUnset removes an app's timeouts.
func (*DeisCmd) WhitelistAdd ¶
WhitelistAdd adds the addresses to the app's Whitelist.
func (*DeisCmd) WhitelistList ¶
WhitelistList lists the addresses whitelisted for app
func (*DeisCmd) WhitelistRemove ¶
WhitelistRemove deletes the addresses from the app's Whitelist.