Documentation
¶
Index ¶
- type Commander
- type DryccCmd
- func (d *DryccCmd) AllowlistAdd(appID, IPs string) error
- func (d *DryccCmd) AllowlistList(appID string) error
- func (d *DryccCmd) AllowlistRemove(appID, IPs string) error
- 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) 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) 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, now time.Time) 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) 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, limits []string, limitType string) error
- func (d *DryccCmd) LimitsUnset(appID string, limits []string, limitType 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) 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) PsStart(appID string, targets []string) error
- func (d *DryccCmd) PsStop(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) error
- func (d *DryccCmd) ResourceUnbind(appID string, name string) error
- func (d *DryccCmd) ResourcesCreate(appID, plan string, name string, params []string) error
- func (d *DryccCmd) ResourcesList(appID string, results int) 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, pathPattern string) error
- func (d *DryccCmd) ServicesList(appID string) error
- func (d *DryccCmd) ServicesRemove(appID, procfileType string) error
- func (d *DryccCmd) ShortcutsList() error
- func (d *DryccCmd) TLSAutoDisable(appID string) error
- func (d *DryccCmd) TLSAutoEnable(appID 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 string, size string) error
- func (d *DryccCmd) VolumesDelete(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) 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
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
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
PsStop(string, []string) error
PsStart(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
UsersList(results int) error
UsersEnable(string) error
UsersDisable(string) error
AllowlistAdd(string, string) error
AllowlistList(string) error
AllowlistRemove(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
VolumesCreate(string, string, string) error
VolumesDelete(string, string) error
VolumesList(string, int) error
VolumesMount(string, string, []string) error
VolumesUnmount(string, string, []string) error
ResourcesCreate(string, string, string, []string) error
ResourcesList(string, int) error
ResourceDelete(string, string) error
ResourceGet(string, string) error
ResourcePut(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) AllowlistAdd ¶ added in v1.2.1
AllowlistAdd adds the addresses to the app's allowlist.
func (*DryccCmd) AllowlistList ¶ added in v1.2.1
Allowlistlist lists the addresses allowlisted for app
func (*DryccCmd) AllowlistRemove ¶ added in v1.2.1
AllowlistRemove deletes the addresses from the app's Allowlist.
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) 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) 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
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
ResourcesCreate create a resource for the application
func (*DryccCmd) ResourcesList ¶ added in v1.2.0
ResourcesList list resources in the application
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) 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
VolumesCreate create a volume for the application
func (*DryccCmd) VolumesDelete ¶ added in v1.2.0
VolumesDelete delete a volume from 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