Documentation
¶
Index ¶
- func ShortcutsList() error
- 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) 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) error
- func (d DeisCmd) ConfigList(appID string, oneLine bool) 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(keyLocation string) error
- func (d DeisCmd) KeyRemove(keyID string) error
- func (d DeisCmd) KeysList(results int) 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) 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) 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) UsersList(results int) error
- func (d DeisCmd) Whoami(all bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShortcutsList ¶
func ShortcutsList() error
ShortcutsList displays all relevant shortcuts for the CLI.
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
Register(string, string, string, string, 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) error
CertAdd(string, string, string) error
CertRemove(string) error
CertInfo(string) error
CertAttach(string, string) error
CertDetach(string, string) error
ConfigList(string, bool) 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
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) error
LimitsList(string) error
LimitsSet(string, []string, string) error
LimitsUnset(string, []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
TagsList(string) error
TagsSet(string, []string) error
TagsUnset(string, []string) error
UsersList(results int) error
}
Commander is interface definition for running commands
type DeisCmd ¶
type DeisCmd struct {
ConfigFile string
}
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) 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) 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) Regenerate ¶
Regenerate regenenerates a user's token.
func (DeisCmd) Register ¶
func (d DeisCmd) Register(controller string, username string, password string, email string, sslVerify 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.