Documentation ¶
Index ¶
- type Commander
- type DryccCmd
- func (d *DryccCmd) AppCreate(id, remote string, noRemote bool) error
- func (d *DryccCmd) AppDestroy(appID, confirm string) error
- func (d *DryccCmd) AppInfo(appID string) error
- func (d *DryccCmd) AppLogs(appID string, lines int, follow bool, timeout int) error
- func (d *DryccCmd) AppOpen(appID string) error
- func (d *DryccCmd) AppRun(appID, command string, volumeVars []string) error
- func (d *DryccCmd) AppTransfer(appID, username string) error
- func (d *DryccCmd) AppsList(results int) error
- func (d *DryccCmd) AutoscaleList(appID string) error
- func (d *DryccCmd) AutoscaleSet(appID string, processType string, min int, max int, CPUPercent int) error
- func (d *DryccCmd) AutoscaleUnset(appID string, processType string) error
- func (d *DryccCmd) BuildsCreate(appID, image, stack, procfile string) error
- func (d *DryccCmd) BuildsList(appID string, results int) error
- func (d *DryccCmd) CanaryCreate(appID string, processType []string) error
- func (d *DryccCmd) CanaryInfo(appID string) error
- func (d *DryccCmd) CanaryRelease(appID string) error
- func (d *DryccCmd) CanaryRemove(appID string, processType []string) error
- func (d *DryccCmd) CanaryRollback(appID string) error
- func (d *DryccCmd) CertAdd(cert string, key string, name string) error
- func (d *DryccCmd) CertAttach(name, domain string) error
- func (d *DryccCmd) CertDetach(name, domain string) error
- func (d *DryccCmd) CertInfo(name string) error
- func (d *DryccCmd) CertRemove(name string) error
- func (d *DryccCmd) CertsList(results int) error
- func (d *DryccCmd) ConfigList(appID string, format string) error
- func (d *DryccCmd) ConfigPull(appID string, interactive bool, overwrite bool) error
- func (d *DryccCmd) ConfigPush(appID, fileName string) error
- func (d *DryccCmd) ConfigSet(appID string, configVars []string) error
- func (d *DryccCmd) ConfigUnset(appID string, configVars []string) error
- func (d *DryccCmd) DomainsAdd(appID, domain string) error
- func (d *DryccCmd) DomainsList(appID string, results int) error
- func (d *DryccCmd) DomainsRemove(appID, domain string) error
- func (d *DryccCmd) GatewaysAdd(appID, name string, port int, protocol string) error
- func (d *DryccCmd) GatewaysList(appID string, results int) error
- func (d *DryccCmd) GatewaysRemove(appID, name string, port int, protocol string) error
- func (d *DryccCmd) GitRemote(appID, remote string, force bool) error
- func (d *DryccCmd) GitRemove(appID string) error
- func (d *DryccCmd) HealthchecksList(appID, procType string) error
- func (d *DryccCmd) HealthchecksSet(appID, healthcheckType, procType string, probe *api.Healthcheck) error
- func (d *DryccCmd) HealthchecksUnset(appID, procType string, healthchecks []string) error
- func (d *DryccCmd) KeyAdd(name string, keyLocation string) error
- func (d *DryccCmd) KeyRemove(keyID string) error
- func (d *DryccCmd) KeysList(results int) error
- func (d *DryccCmd) LabelsList(appID string) error
- func (d *DryccCmd) LabelsSet(appID string, labels []string) error
- func (d *DryccCmd) LabelsUnset(appID string, labels []string) error
- func (d *DryccCmd) LimitsList(appID string) error
- func (d *DryccCmd) LimitsSet(appID string, cpuLimits []string, memoryLimits []string) error
- func (d *DryccCmd) LimitsUnset(appID string, cpuLimits []string, memoryLimits []string) error
- func (d *DryccCmd) Login(controller string, sslVerify bool) error
- func (d *DryccCmd) Logout() error
- func (d *DryccCmd) PermCreate(appID string, username string, admin bool) error
- func (d *DryccCmd) PermDelete(appID, username string, admin bool) error
- func (d *DryccCmd) PermsList(appID string, admin bool, results int) error
- func (d *DryccCmd) Print(a ...interface{}) (n int, err error)
- func (d *DryccCmd) PrintErr(a ...interface{}) (n int, err error)
- func (d *DryccCmd) PrintErrf(s string, a ...interface{}) (n int, err error)
- func (d *DryccCmd) PrintErrln(a ...interface{}) (n int, err error)
- func (d *DryccCmd) Printf(s string, a ...interface{}) (n int, err error)
- func (d *DryccCmd) Println(a ...interface{}) (n int, err error)
- func (d *DryccCmd) PsExec(appID, podID string, tty, stdin bool, command []string) error
- func (d *DryccCmd) PsList(appID string, results int) error
- func (d *DryccCmd) PsRestart(appID, target string) error
- func (d *DryccCmd) PsScale(appID string, targets []string) error
- func (d *DryccCmd) RegistryList(appID string) error
- func (d *DryccCmd) RegistrySet(appID string, item []string) error
- func (d *DryccCmd) RegistryUnset(appID string, items []string) error
- func (d *DryccCmd) ReleasesInfo(appID string, version int) error
- func (d *DryccCmd) ReleasesList(appID string, results int) error
- func (d *DryccCmd) ReleasesRollback(appID string, version int) error
- func (d *DryccCmd) ResourceBind(appID string, name string) error
- func (d *DryccCmd) ResourceDelete(appID, name string) error
- func (d *DryccCmd) ResourceGet(appID, name string) error
- func (d *DryccCmd) ResourcePut(appID, plan string, name string, params []string, values string) error
- func (d *DryccCmd) ResourceUnbind(appID string, name string) error
- func (d *DryccCmd) ResourcesCreate(appID, plan string, name string, params []string, values string) error
- func (d *DryccCmd) ResourcesList(appID string, results int) error
- func (d *DryccCmd) ResourcesPlans(serviceName string, results int) error
- func (d *DryccCmd) ResourcesServices(results int) error
- func (d *DryccCmd) RoutesAttach(appID, name string, port int, gateway string) error
- func (d *DryccCmd) RoutesCreate(appID, name string, procType string, kind string, port int) error
- func (d *DryccCmd) RoutesDetach(appID, name string, port int, gateway string) error
- func (d *DryccCmd) RoutesGet(appID string, name string) error
- func (d *DryccCmd) RoutesList(appID string, results int) error
- func (d *DryccCmd) RoutesRemove(appID, name string) error
- func (d *DryccCmd) RoutesSet(appID string, name string, ruleFile string) error
- func (d *DryccCmd) RoutingDisable(appID string) error
- func (d *DryccCmd) RoutingEnable(appID string) error
- func (d *DryccCmd) RoutingInfo(appID string) error
- func (d *DryccCmd) ServicesAdd(appID, procfileType string, ports string, protocol string) error
- func (d *DryccCmd) ServicesList(appID string) error
- func (d *DryccCmd) ServicesRemove(appID, procfileType string, protocol string, port int) error
- func (d *DryccCmd) ShortcutsList() error
- func (d *DryccCmd) TLSAutoDisable(appID string) error
- func (d *DryccCmd) TLSAutoEnable(appID string) error
- func (d *DryccCmd) TLSAutoIssuer(appID string, email string, server string, keyID string, keySecret string) error
- func (d *DryccCmd) TLSForceDisable(appID string) error
- func (d *DryccCmd) TLSForceEnable(appID string) error
- func (d *DryccCmd) TLSInfo(appID string) error
- func (d *DryccCmd) TagsList(appID string) error
- func (d *DryccCmd) TagsSet(appID string, tags []string) error
- func (d *DryccCmd) TagsUnset(appID string, tags []string) error
- func (d *DryccCmd) TimeoutsList(appID string) error
- func (d *DryccCmd) TimeoutsSet(appID string, timeouts []string) error
- func (d *DryccCmd) TimeoutsUnset(appID string, timeouts []string) error
- func (d *DryccCmd) UsersDisable(username string) error
- func (d *DryccCmd) UsersEnable(username string) error
- func (d *DryccCmd) UsersList(results int) error
- func (d *DryccCmd) Version(all bool) error
- func (d *DryccCmd) VolumesCreate(appID, name, vType, size string, parameters map[string]interface{}) error
- func (d *DryccCmd) VolumesDelete(appID, name string) error
- func (d *DryccCmd) VolumesExpand(appID, name, size string) error
- func (d *DryccCmd) VolumesInfo(appID, name string) error
- func (d *DryccCmd) VolumesList(appID string, results int) error
- func (d *DryccCmd) VolumesMount(appID string, name string, volumeVars []string) error
- func (d *DryccCmd) VolumesUnmount(appID string, name string, volumeVars []string) error
- func (d *DryccCmd) 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, bool) error AppsList(int) error AppInfo(string) error AppOpen(string) error AppLogs(string, int, bool, int) error AppRun(string, 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 Login(string, bool) error Logout() error Whoami(bool) error BuildsList(string, int) error BuildsCreate(string, string, string, string) error CanaryInfo(string) error CanaryCreate(string, []string) error CanaryRemove(string, []string) error CanaryRelease(string) error CanaryRollback(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, 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, string) error ServicesRemove(string, string, string, int) error GatewaysAdd(string, string, int, string) error GatewaysList(string, int) error GatewaysRemove(string, string, int, string) error RoutesCreate(string, string, string, string, int) error RoutesList(string, int) error RoutesGet(string, string) error RoutesSet(string, string, string) error RoutesAttach(string, string, int, string) error RoutesDetach(string, string, int, string) error RoutesRemove(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 PermsList(string, bool, int) error PermCreate(string, string, bool) error PermDelete(string, string, bool) error PsList(string, int) error PsExec(string, string, bool, bool, []string) 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 TLSForceEnable(string) error TLSForceDisable(string) error TLSAutoEnable(string) error TLSAutoDisable(string) error TLSAutoIssuer(string, string, string, string, string) error UsersList(results int) error UsersEnable(string) error UsersDisable(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 VolumesCreate(string, string, string, string, map[string]interface{}) error VolumesExpand(string, string, string) error VolumesDelete(string, string) error VolumesList(string, int) error VolumesInfo(string, string) error VolumesMount(string, string, []string) error VolumesUnmount(string, string, []string) error ResourcesServices(int) error ResourcesPlans(string, int) error ResourcesCreate(string, string, string, []string, string) error ResourcesList(string, int) error ResourceDelete(string, string) error ResourceGet(string, string) error ResourcePut(string, string, string, []string, string) error ResourceBind(string, string) error ResourceUnbind(string, string) error }
Commander is interface definition for running commands
type DryccCmd ¶
DryccCmd is an implementation of Commander.
func (*DryccCmd) AppDestroy ¶
AppDestroy destroys an app.
func (*DryccCmd) AppTransfer ¶
AppTransfer transfers app ownership to another user.
func (*DryccCmd) AutoscaleList ¶
AutoscaleList tells the informations about app's autoscale status
func (*DryccCmd) AutoscaleSet ¶
func (d *DryccCmd) AutoscaleSet(appID string, processType string, min int, max int, CPUPercent int) error
AutoscaleSet sets autoscale options for the app.
func (*DryccCmd) AutoscaleUnset ¶
AutoscaleUnset removes autoscale for the app.
func (*DryccCmd) BuildsCreate ¶
BuildsCreate creates a build for an app.
func (*DryccCmd) BuildsList ¶
BuildsList lists an app's builds.
func (*DryccCmd) CanaryCreate ¶ added in v1.5.0
CanaryCreate sets canary options for the app proc type.
func (*DryccCmd) CanaryInfo ¶ added in v1.5.0
CanaryList tells the informations about app's autoscale status
func (*DryccCmd) CanaryRelease ¶ added in v1.5.0
CanaryRelease release canary for the app.
func (*DryccCmd) CanaryRemove ¶ added in v1.5.0
CanaryRemove remove canary for the app proc type.
func (*DryccCmd) CanaryRollback ¶ added in v1.5.0
CanaryRollback rollback canary for the app.
func (*DryccCmd) CertAttach ¶
CertAttach attaches a certificate to a domain
func (*DryccCmd) CertDetach ¶
CertDetach detaches a certificate from a domain
func (*DryccCmd) CertRemove ¶
CertRemove deletes a cert from the controller.
func (*DryccCmd) ConfigList ¶
ConfigList lists an app's config.
func (*DryccCmd) ConfigPull ¶
ConfigPull pulls an app's config to a file.
func (*DryccCmd) ConfigPush ¶
ConfigPush pushes an app's config from a file.
func (*DryccCmd) ConfigUnset ¶
ConfigUnset removes a config variable from an app.
func (*DryccCmd) DomainsAdd ¶
DomainsAdd adds a domain to an app.
func (*DryccCmd) DomainsList ¶
DomainsList lists domains registered with an app.
func (*DryccCmd) DomainsRemove ¶
DomainsRemove removes a domain registered with an app.
func (*DryccCmd) GatewaysAdd ¶ added in v1.5.0
GatewaysAdd adds a gateway to an app.
func (*DryccCmd) GatewaysList ¶ added in v1.5.0
GatewaysList lists gateways for the app
func (*DryccCmd) GatewaysRemove ¶ added in v1.5.0
GatewaysRemove removes a gateway registered with an app.
func (*DryccCmd) HealthchecksList ¶
HealthchecksList lists an app's healthchecks.
func (*DryccCmd) HealthchecksSet ¶
func (d *DryccCmd) HealthchecksSet(appID, healthcheckType, procType string, probe *api.Healthcheck) error
HealthchecksSet sets an app's healthchecks.
func (*DryccCmd) HealthchecksUnset ¶
HealthchecksUnset removes an app's healthchecks.
func (*DryccCmd) LabelsList ¶
LabelsList list app's labels
func (*DryccCmd) LabelsUnset ¶
LabelsUnset removes labels for the app.
func (*DryccCmd) LimitsList ¶
LimitsList lists an app's limits.
func (*DryccCmd) LimitsUnset ¶
LimitsUnset removes an app's limits.
func (*DryccCmd) PermCreate ¶
PermCreate adds a user to an app or makes them an administrator.
func (*DryccCmd) PermDelete ¶
PermDelete removes a user from an app or revokes admin privileges.
func (*DryccCmd) PrintErrln ¶
PrintErrln prints a line to an error writer.
func (*DryccCmd) RegistryList ¶
RegistryList lists an app's registry information.
func (*DryccCmd) RegistrySet ¶
RegistrySet sets an app's registry information.
func (*DryccCmd) RegistryUnset ¶
RegistryUnset removes an app's registry information.
func (*DryccCmd) ReleasesInfo ¶
ReleasesInfo prints info about a specific release.
func (*DryccCmd) ReleasesList ¶
ReleasesList lists an app's releases.
func (*DryccCmd) ReleasesRollback ¶
ReleasesRollback rolls an app back to a previous release.
func (*DryccCmd) ResourceBind ¶ added in v1.2.0
ResourceBind mount a resource to process of the application
func (*DryccCmd) ResourceDelete ¶ added in v1.2.0
ResourceDelete delete a resource from the application
func (*DryccCmd) ResourceGet ¶ added in v1.2.0
ResourceGet describe a resource from the application
func (*DryccCmd) ResourcePut ¶ added in v1.2.0
func (d *DryccCmd) ResourcePut(appID, plan string, name string, params []string, values string) error
ResourcePut update a resource for the application
func (*DryccCmd) ResourceUnbind ¶ added in v1.2.0
ResourceUnbind resource a resource the application
func (*DryccCmd) ResourcesCreate ¶ added in v1.2.0
func (d *DryccCmd) ResourcesCreate(appID, plan string, name string, params []string, values string) error
ResourcesCreate create a resource for the application
func (*DryccCmd) ResourcesList ¶ added in v1.2.0
ResourcesList list resources in the application
func (*DryccCmd) ResourcesPlans ¶ added in v1.4.0
ResourcePlans list resource plans
func (*DryccCmd) ResourcesServices ¶ added in v1.4.0
ResourceServices list resource service
func (*DryccCmd) RoutesAttach ¶ added in v1.5.0
RoutesAttach bind a route to gateway.
func (*DryccCmd) RoutesCreate ¶ added in v1.5.0
RoutesCreate create a route to an app.
func (*DryccCmd) RoutesDetach ¶ added in v1.5.0
RoutesDetach bind a route to gateway.
func (*DryccCmd) RoutesList ¶ added in v1.5.0
RoutesList lists routes for the app
func (*DryccCmd) RoutesRemove ¶ added in v1.5.0
RoutesRemove removes a route registered with an app.
func (*DryccCmd) RoutingDisable ¶
RoutingDisable disables an app from being exposed by the router.
func (*DryccCmd) RoutingEnable ¶
RoutingEnable enables an app from being exposed by the router.
func (*DryccCmd) RoutingInfo ¶
RoutingInfo provides information about the status of app routing.
func (*DryccCmd) ServicesAdd ¶
ServicesAdd adds a service to an app.
func (*DryccCmd) ServicesList ¶
ServicesList lists extra services for the app
func (*DryccCmd) ServicesRemove ¶
ServicesRemove removes a service for procfileType registered with an app.
func (*DryccCmd) ShortcutsList ¶
ShortcutsList displays all relevant shortcuts for the CLI.
func (*DryccCmd) TLSAutoDisable ¶
TLSAutoDisable disables certs-auto requests to the application.
func (*DryccCmd) TLSAutoEnable ¶
TLSAutoEnable enables certs-auto requests to the application.
func (*DryccCmd) TLSAutoIssuer ¶ added in v1.5.0
func (d *DryccCmd) TLSAutoIssuer(appID string, email string, server string, keyID string, keySecret string) error
TLSAutoIssuer add issuer requests to the application.
func (*DryccCmd) TLSForceDisable ¶ added in v1.0.2
TLSForceDisable disables the router to enforce https-only requests to the application.
func (*DryccCmd) TLSForceEnable ¶ added in v1.0.2
TLSForceEnable enables the router to enforce https-only requests to the application.
func (*DryccCmd) TimeoutsList ¶
TimeoutsList lists an app's timeouts.
func (*DryccCmd) TimeoutsSet ¶
TimeoutsSet sets an app's timeouts.
func (*DryccCmd) TimeoutsUnset ¶
TimeoutsUnset removes an app's timeouts.
func (*DryccCmd) UsersDisable ¶ added in v1.2.0
UsersDisable disable user with the controller.
func (*DryccCmd) UsersEnable ¶ added in v1.2.0
UsersEnable enable user with the controller.
func (*DryccCmd) VolumesCreate ¶ added in v1.2.0
func (d *DryccCmd) VolumesCreate(appID, name, vType, size string, parameters map[string]interface{}) error
VolumesCreate create a volume for the application
func (*DryccCmd) VolumesDelete ¶ added in v1.2.0
VolumesDelete delete a volume from the application
func (*DryccCmd) VolumesExpand ¶ added in v1.4.0
VolumesExpand create a volume for the application
func (*DryccCmd) VolumesInfo ¶ added in v1.5.2
VolumesInfo get volume in the application
func (*DryccCmd) VolumesList ¶ added in v1.2.0
VolumesList list volumes in the application
func (*DryccCmd) VolumesMount ¶ added in v1.2.0
VolumesMount mount a volume to process of the application
func (*DryccCmd) VolumesUnmount ¶ added in v1.2.0
VolumesUnmount unmount a volume from process of the application
Source Files ¶
- apps.go
- auth.go
- autoscale.go
- builds.go
- canary.go
- certs.go
- cmd.go
- config.go
- domains.go
- gateways.go
- git.go
- healthchecks.go
- keys.go
- labels.go
- limits.go
- perms.go
- ps.go
- registry.go
- releases.go
- resources.go
- routes.go
- routing.go
- services.go
- shortcuts.go
- tags.go
- timeouts.go
- tls.go
- users.go
- utils.go
- version.go
- volumes.go