client

package
v0.0.0-...-ccbf4c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: BSD-3-Clause Imports: 64 Imported by: 0

Documentation

Overview

tsuru is the command line utility used by application developers, that will allow users to create, list, bind and manage apps.

See the tsuru-client documentation for a full reference: http://tsuru-client.readthedocs.org.

Index

Constants

View Source
const EnvSetValidationMessage = `` /* 342-byte string literal not displayed */
View Source
const ErrAppAndJobNotAllowedTogether = "You must pass an application or job, not both"
View Source
const ErrMissingAppOrJob = "You must pass an application or job"

Variables

View Source
var ErrMissingFilesToArchive = errors.New("missing files to archive")

Functions

func Archive

func Archive(dst io.Writer, filesOnly bool, paths []string, opts ArchiveOptions) error

func Executor

func Executor() exec.Executor

func RunPlugin

func RunPlugin(context *cmd.Context) error

func ShortID

func ShortID(id string) string

Types

type AppBuild

type AppBuild struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppBuild) Flags

func (c *AppBuild) Flags() *gnuflag.FlagSet

func (*AppBuild) Info

func (c *AppBuild) Info() *cmd.Info

func (*AppBuild) Run

func (c *AppBuild) Run(context *cmd.Context) error

type AppCreate

type AppCreate struct {
	// contains filtered or unexported fields
}

func (*AppCreate) Flags

func (c *AppCreate) Flags() *gnuflag.FlagSet

func (*AppCreate) Info

func (c *AppCreate) Info() *cmd.Info

func (*AppCreate) Run

func (c *AppCreate) Run(context *cmd.Context) error

type AppDeploy

type AppDeploy struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppDeploy) Cancel

func (c *AppDeploy) Cancel(ctx cmd.Context) error

func (*AppDeploy) Flags

func (c *AppDeploy) Flags() *gnuflag.FlagSet

func (*AppDeploy) Info

func (c *AppDeploy) Info() *cmd.Info

func (*AppDeploy) Run

func (c *AppDeploy) Run(context *cmd.Context) error

type AppDeployList

type AppDeployList struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppDeployList) Flags

func (c *AppDeployList) Flags() *gnuflag.FlagSet

func (*AppDeployList) Info

func (c *AppDeployList) Info() *cmd.Info

func (*AppDeployList) Run

func (c *AppDeployList) Run(context *cmd.Context) error

type AppDeployRebuild

type AppDeployRebuild struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppDeployRebuild) Flags

func (c *AppDeployRebuild) Flags() *gnuflag.FlagSet

func (*AppDeployRebuild) Info

func (c *AppDeployRebuild) Info() *cmd.Info

func (*AppDeployRebuild) Run

func (c *AppDeployRebuild) Run(context *cmd.Context) error

type AppDeployRollback

type AppDeployRollback struct {
	tsuruClientApp.AppNameMixIn
	cmd.ConfirmationCommand
	// contains filtered or unexported fields
}

func (*AppDeployRollback) Flags

func (c *AppDeployRollback) Flags() *gnuflag.FlagSet

func (*AppDeployRollback) Info

func (c *AppDeployRollback) Info() *cmd.Info

func (*AppDeployRollback) Run

func (c *AppDeployRollback) Run(context *cmd.Context) error

type AppDeployRollbackUpdate

type AppDeployRollbackUpdate struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppDeployRollbackUpdate) Flags

func (*AppDeployRollbackUpdate) Info

func (c *AppDeployRollbackUpdate) Info() *cmd.Info

func (*AppDeployRollbackUpdate) Run

func (c *AppDeployRollbackUpdate) Run(context *cmd.Context) error

type AppGrant

type AppGrant struct {
	tsuruClientApp.AppNameMixIn
}

func (*AppGrant) Info

func (c *AppGrant) Info() *cmd.Info

func (*AppGrant) Run

func (c *AppGrant) Run(context *cmd.Context) error

type AppInfo

type AppInfo struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppInfo) Flags

func (cmd *AppInfo) Flags() *gnuflag.FlagSet

func (*AppInfo) Info

func (c *AppInfo) Info() *cmd.Info

func (*AppInfo) Run

func (c *AppInfo) Run(context *cmd.Context) error

func (*AppInfo) Show

func (c *AppInfo) Show(a *app, context *cmd.Context, simplified bool) error

type AppList

type AppList struct {
	// contains filtered or unexported fields
}

func (*AppList) Flags

func (c *AppList) Flags() *gnuflag.FlagSet

func (*AppList) Info

func (c *AppList) Info() *cmd.Info

func (*AppList) Run

func (c *AppList) Run(context *cmd.Context) error

func (*AppList) Show

func (c *AppList) Show(result []byte, context *cmd.Context) error

type AppLog

type AppLog struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppLog) Flags

func (c *AppLog) Flags() *gnuflag.FlagSet

func (*AppLog) Info

func (c *AppLog) Info() *cmd.Info

func (*AppLog) Run

func (c *AppLog) Run(context *cmd.Context) error

type AppProcessUpdate

type AppProcessUpdate struct {
	// contains filtered or unexported fields
}

func (*AppProcessUpdate) Flags

func (c *AppProcessUpdate) Flags() *gnuflag.FlagSet

func (*AppProcessUpdate) Info

func (c *AppProcessUpdate) Info() *cmd.Info

func (*AppProcessUpdate) Run

func (c *AppProcessUpdate) Run(ctx *cmd.Context) error

type AppRemove

type AppRemove struct {
	tsuruClientApp.AppNameMixIn
	cmd.ConfirmationCommand
	// contains filtered or unexported fields
}

func (*AppRemove) Flags

func (c *AppRemove) Flags() *gnuflag.FlagSet

func (*AppRemove) Info

func (c *AppRemove) Info() *cmd.Info

func (*AppRemove) Run

func (c *AppRemove) Run(context *cmd.Context) error

type AppRestart

type AppRestart struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppRestart) Flags

func (c *AppRestart) Flags() *gnuflag.FlagSet

func (*AppRestart) Info

func (c *AppRestart) Info() *cmd.Info

func (*AppRestart) Run

func (c *AppRestart) Run(context *cmd.Context) error

type AppRevoke

type AppRevoke struct {
	tsuruClientApp.AppNameMixIn
}

func (*AppRevoke) Info

func (c *AppRevoke) Info() *cmd.Info

func (*AppRevoke) Run

func (c *AppRevoke) Run(context *cmd.Context) error

type AppRoutersAdd

type AppRoutersAdd struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppRoutersAdd) Flags

func (c *AppRoutersAdd) Flags() *gnuflag.FlagSet

func (*AppRoutersAdd) Info

func (c *AppRoutersAdd) Info() *cmd.Info

func (*AppRoutersAdd) Run

func (c *AppRoutersAdd) Run(context *cmd.Context) error

type AppRoutersList

type AppRoutersList struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppRoutersList) Flags

func (c *AppRoutersList) Flags() *gnuflag.FlagSet

func (*AppRoutersList) Info

func (c *AppRoutersList) Info() *cmd.Info

func (*AppRoutersList) Run

func (c *AppRoutersList) Run(context *cmd.Context) error

type AppRoutersRemove

type AppRoutersRemove struct {
	tsuruClientApp.AppNameMixIn
}

func (*AppRoutersRemove) Info

func (c *AppRoutersRemove) Info() *cmd.Info

func (*AppRoutersRemove) Run

func (c *AppRoutersRemove) Run(context *cmd.Context) error

type AppRoutersUpdate

type AppRoutersUpdate struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppRoutersUpdate) Flags

func (c *AppRoutersUpdate) Flags() *gnuflag.FlagSet

func (*AppRoutersUpdate) Info

func (c *AppRoutersUpdate) Info() *cmd.Info

func (*AppRoutersUpdate) Run

func (c *AppRoutersUpdate) Run(context *cmd.Context) error

type AppRun

type AppRun struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppRun) Flags

func (c *AppRun) Flags() *gnuflag.FlagSet

func (*AppRun) Info

func (c *AppRun) Info() *cmd.Info

func (*AppRun) Run

func (c *AppRun) Run(context *cmd.Context) error

type AppStart

type AppStart struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppStart) Flags

func (c *AppStart) Flags() *gnuflag.FlagSet

func (*AppStart) Info

func (c *AppStart) Info() *cmd.Info

func (*AppStart) Run

func (c *AppStart) Run(context *cmd.Context) error

type AppStop

type AppStop struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AppStop) Flags

func (c *AppStop) Flags() *gnuflag.FlagSet

func (*AppStop) Info

func (c *AppStop) Info() *cmd.Info

func (*AppStop) Run

func (c *AppStop) Run(context *cmd.Context) error

type AppSwap

type AppSwap struct {
	cmd.Command
	// contains filtered or unexported fields
}

func (*AppSwap) Flags

func (s *AppSwap) Flags() *gnuflag.FlagSet

func (*AppSwap) Info

func (s *AppSwap) Info() *cmd.Info

func (*AppSwap) Run

func (s *AppSwap) Run(context *cmd.Context) error

type AppUpdate

type AppUpdate struct {
	tsuruClientApp.AppNameMixIn
	cmd.ConfirmationCommand
	// contains filtered or unexported fields
}

func (*AppUpdate) Flags

func (c *AppUpdate) Flags() *gnuflag.FlagSet

func (*AppUpdate) Info

func (c *AppUpdate) Info() *cmd.Info

func (*AppUpdate) Run

func (c *AppUpdate) Run(ctx *cmd.Context) error

type AppVersionRouterAdd

type AppVersionRouterAdd struct {
	// contains filtered or unexported fields
}

func (*AppVersionRouterAdd) Info

func (c *AppVersionRouterAdd) Info() *cmd.Info

func (*AppVersionRouterAdd) Run

func (c *AppVersionRouterAdd) Run(ctx *cmd.Context) error

type AppVersionRouterRemove

type AppVersionRouterRemove struct {
	// contains filtered or unexported fields
}

func (*AppVersionRouterRemove) Info

func (c *AppVersionRouterRemove) Info() *cmd.Info

func (*AppVersionRouterRemove) Run

func (c *AppVersionRouterRemove) Run(ctx *cmd.Context) error

type ArchiveOptions

type ArchiveOptions struct {
	CompressionLevel *int      // defaults to default compression "-1"
	IgnoreFiles      []string  // default to none
	Stderr           io.Writer // defaults to io.Discard
}

func DefaultArchiveOptions

func DefaultArchiveOptions(w io.Writer) ArchiveOptions

type AutoScaleSet

type AutoScaleSet struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AutoScaleSet) Flags

func (c *AutoScaleSet) Flags() *gnuflag.FlagSet

func (*AutoScaleSet) Info

func (c *AutoScaleSet) Info() *cmd.Info

func (*AutoScaleSet) Run

func (c *AutoScaleSet) Run(ctx *cmd.Context) error

type AutoScaleUnset

type AutoScaleUnset struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*AutoScaleUnset) Flags

func (c *AutoScaleUnset) Flags() *gnuflag.FlagSet

func (*AutoScaleUnset) Info

func (c *AutoScaleUnset) Info() *cmd.Info

func (*AutoScaleUnset) Run

func (c *AutoScaleUnset) Run(ctx *cmd.Context) error

type BundleManifest

type BundleManifest struct {
	Plugins []Plugin
}

type CertificateList

type CertificateList struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*CertificateList) Flags

func (c *CertificateList) Flags() *gnuflag.FlagSet

func (*CertificateList) Info

func (c *CertificateList) Info() *cmd.Info

func (*CertificateList) Run

func (c *CertificateList) Run(context *cmd.Context) error

type CertificateSet

type CertificateSet struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*CertificateSet) Flags

func (c *CertificateSet) Flags() *gnuflag.FlagSet

func (*CertificateSet) Info

func (c *CertificateSet) Info() *cmd.Info

func (*CertificateSet) Run

func (c *CertificateSet) Run(context *cmd.Context) error

type CertificateUnset

type CertificateUnset struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*CertificateUnset) Flags

func (c *CertificateUnset) Flags() *gnuflag.FlagSet

func (*CertificateUnset) Info

func (c *CertificateUnset) Info() *cmd.Info

func (*CertificateUnset) Run

func (c *CertificateUnset) Run(context *cmd.Context) error

type ChangePassword

type ChangePassword struct{}

func (*ChangePassword) Info

func (c *ChangePassword) Info() *cmd.Info

func (*ChangePassword) Run

func (c *ChangePassword) Run(context *cmd.Context) error

type CnameAdd

type CnameAdd struct {
	tsuruClientApp.AppNameMixIn
}

func (*CnameAdd) Info

func (c *CnameAdd) Info() *cmd.Info

func (*CnameAdd) Run

func (c *CnameAdd) Run(context *cmd.Context) error

type CnameRemove

type CnameRemove struct {
	tsuruClientApp.AppNameMixIn
}

func (*CnameRemove) Info

func (c *CnameRemove) Info() *cmd.Info

func (*CnameRemove) Run

func (c *CnameRemove) Run(context *cmd.Context) error

type ContentTeam

type ContentTeam struct {
	Name  string    `json:"name"`
	Users []apiUser `json:"users"`
	Pools []Pool    `json:"pools"`
	Apps  []app     `json:"apps"`
	Tags  []string  `json:"tags"`
}

type EnvGet

type EnvGet struct {
	// contains filtered or unexported fields
}

func (*EnvGet) Flags

func (c *EnvGet) Flags() *gnuflag.FlagSet

func (*EnvGet) Info

func (c *EnvGet) Info() *cmd.Info

func (*EnvGet) Run

func (c *EnvGet) Run(context *cmd.Context) error

type EnvSet

type EnvSet struct {
	// contains filtered or unexported fields
}

func (*EnvSet) Flags

func (c *EnvSet) Flags() *gnuflag.FlagSet

func (*EnvSet) Info

func (c *EnvSet) Info() *cmd.Info

func (*EnvSet) Run

func (c *EnvSet) Run(context *cmd.Context) error

type EnvUnset

type EnvUnset struct {
	// contains filtered or unexported fields
}

func (*EnvUnset) Flags

func (c *EnvUnset) Flags() *gnuflag.FlagSet

func (*EnvUnset) Info

func (c *EnvUnset) Info() *cmd.Info

func (*EnvUnset) Run

func (c *EnvUnset) Run(context *cmd.Context) error

type EventCancel

type EventCancel struct {
	cmd.ConfirmationCommand
}

func (*EventCancel) Info

func (c *EventCancel) Info() *cmd.Info

func (*EventCancel) Run

func (c *EventCancel) Run(context *cmd.Context) error

type EventInfo

type EventInfo struct {
	// contains filtered or unexported fields
}

func (*EventInfo) Flags

func (c *EventInfo) Flags() *gnuflag.FlagSet

func (*EventInfo) Info

func (c *EventInfo) Info() *cmd.Info

func (*EventInfo) Run

func (c *EventInfo) Run(context *cmd.Context) error

func (*EventInfo) Show

func (c *EventInfo) Show(evt *event.Event, context *cmd.Context) error

type EventList

type EventList struct {
	// contains filtered or unexported fields
}

func (*EventList) Flags

func (c *EventList) Flags() *gnuflag.FlagSet

func (*EventList) Info

func (c *EventList) Info() *cmd.Info

func (*EventList) Run

func (c *EventList) Run(context *cmd.Context) error

func (*EventList) Show

func (c *EventList) Show(evts []event.Event, context *cmd.Context) error

type Init

type Init struct{}

func (*Init) Info

func (i *Init) Info() *cmd.Info

func (*Init) Run

func (i *Init) Run(context *cmd.Context) (err error)

type JobCreate

type JobCreate struct {
	// contains filtered or unexported fields
}

func (*JobCreate) Flags

func (c *JobCreate) Flags() *gnuflag.FlagSet

func (*JobCreate) Info

func (c *JobCreate) Info() *cmd.Info

func (*JobCreate) Run

func (c *JobCreate) Run(ctx *cmd.Context) error

type JobDelete

type JobDelete struct{}

func (*JobDelete) Info

func (c *JobDelete) Info() *cmd.Info

func (*JobDelete) Run

func (c *JobDelete) Run(ctx *cmd.Context) error

type JobInfo

type JobInfo struct {
	// contains filtered or unexported fields
}

func (*JobInfo) Flags

func (c *JobInfo) Flags() *gnuflag.FlagSet

func (*JobInfo) Info

func (c *JobInfo) Info() *cmd.Info

func (*JobInfo) Run

func (c *JobInfo) Run(ctx *cmd.Context) error

type JobList

type JobList struct {
	// contains filtered or unexported fields
}

func (*JobList) Flags

func (c *JobList) Flags() *gnuflag.FlagSet

func (*JobList) Info

func (c *JobList) Info() *cmd.Info

func (*JobList) Run

func (c *JobList) Run(ctx *cmd.Context) error

type JobLog

type JobLog struct {
	// contains filtered or unexported fields
}

func (*JobLog) Flags

func (c *JobLog) Flags() *gnuflag.FlagSet

func (*JobLog) Info

func (c *JobLog) Info() *cmd.Info

func (*JobLog) Run

func (c *JobLog) Run(ctx *cmd.Context) error

type JobOrApp

type JobOrApp struct {
	Type string
	// contains filtered or unexported fields
}

type JobTrigger

type JobTrigger struct{}

func (*JobTrigger) Info

func (c *JobTrigger) Info() *cmd.Info

func (*JobTrigger) Run

func (c *JobTrigger) Run(ctx *cmd.Context) error

type JobUpdate

type JobUpdate struct {
	// contains filtered or unexported fields
}

func (*JobUpdate) Flags

func (c *JobUpdate) Flags() *gnuflag.FlagSet

func (*JobUpdate) Info

func (c *JobUpdate) Info() *cmd.Info

func (*JobUpdate) Run

func (c *JobUpdate) Run(ctx *cmd.Context) error

type ListUsers

type ListUsers struct {
	// contains filtered or unexported fields
}

func (*ListUsers) Flags

func (c *ListUsers) Flags() *gnuflag.FlagSet

func (*ListUsers) Info

func (c *ListUsers) Info() *cmd.Info

func (*ListUsers) Run

func (c *ListUsers) Run(ctx *cmd.Context) error

type MetadataGet

type MetadataGet struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*MetadataGet) Flags

func (c *MetadataGet) Flags() *gnuflag.FlagSet

func (*MetadataGet) Info

func (c *MetadataGet) Info() *cmd.Info

func (*MetadataGet) Run

func (c *MetadataGet) Run(context *cmd.Context) error

type MetadataSet

type MetadataSet struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*MetadataSet) Flags

func (c *MetadataSet) Flags() *gnuflag.FlagSet

func (*MetadataSet) Info

func (c *MetadataSet) Info() *cmd.Info

func (*MetadataSet) Run

func (c *MetadataSet) Run(ctx *cmd.Context) error

type MetadataUnset

type MetadataUnset struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*MetadataUnset) Flags

func (c *MetadataUnset) Flags() *gnuflag.FlagSet

func (*MetadataUnset) Info

func (c *MetadataUnset) Info() *cmd.Info

func (*MetadataUnset) Run

func (c *MetadataUnset) Run(ctx *cmd.Context) error

type PermissionList

type PermissionList struct {
	// contains filtered or unexported fields
}

func (*PermissionList) Flags

func (c *PermissionList) Flags() *gnuflag.FlagSet

func (*PermissionList) Info

func (c *PermissionList) Info() *cmd.Info

func (*PermissionList) Run

func (c *PermissionList) Run(context *cmd.Context) error

type PlanList

type PlanList struct {
	// contains filtered or unexported fields
}

func (*PlanList) Flags

func (c *PlanList) Flags() *gnuflag.FlagSet

func (*PlanList) Info

func (c *PlanList) Info() *cmd.Info

func (*PlanList) Run

func (c *PlanList) Run(context *cmd.Context) error

type Plugin

type Plugin struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

func (*Plugin) Validate

func (p *Plugin) Validate() error

type PluginBundle

type PluginBundle struct {
	// contains filtered or unexported fields
}

func (*PluginBundle) Flags

func (c *PluginBundle) Flags() *gnuflag.FlagSet

func (PluginBundle) Info

func (PluginBundle) Info() *cmd.Info

func (*PluginBundle) Run

func (c *PluginBundle) Run(context *cmd.Context) error

type PluginInstall

type PluginInstall struct{}

func (PluginInstall) Info

func (PluginInstall) Info() *cmd.Info

func (*PluginInstall) Run

func (c *PluginInstall) Run(context *cmd.Context) error

type PluginList

type PluginList struct{}

func (PluginList) Info

func (PluginList) Info() *cmd.Info

func (*PluginList) Run

func (c *PluginList) Run(context *cmd.Context) error

type PluginManifest

type PluginManifest struct {
	SchemaVersion  string                 `json:"SchemaVersion"`
	Metadata       PluginManifestMetadata `json:"Metadata"`
	URLPerPlatform map[string]string      `json:"UrlPerPlatform"`
}

type PluginManifestMetadata

type PluginManifestMetadata struct {
	Name    string `json:"Name"`
	Version string `json:"Version"`
}

type PluginRemove

type PluginRemove struct{}

func (PluginRemove) Info

func (PluginRemove) Info() *cmd.Info

func (*PluginRemove) Run

func (c *PluginRemove) Run(context *cmd.Context) error

type Pool

type Pool struct {
	Name        string
	Public      bool
	Default     bool
	Provisioner string
	Allowed     map[string][]string
}

func (*Pool) GetProvisioner

func (p *Pool) GetProvisioner() string

func (*Pool) Kind

func (p *Pool) Kind() string

type PoolList

type PoolList struct {
	// contains filtered or unexported fields
}

func (*PoolList) Flags

func (c *PoolList) Flags() *gnuflag.FlagSet

func (PoolList) Info

func (PoolList) Info() *cmd.Info

func (*PoolList) Run

func (pl *PoolList) Run(context *cmd.Context) error

type RegenerateAPIToken

type RegenerateAPIToken struct {
	// contains filtered or unexported fields
}

func (*RegenerateAPIToken) Flags

func (c *RegenerateAPIToken) Flags() *gnuflag.FlagSet

func (*RegenerateAPIToken) Info

func (c *RegenerateAPIToken) Info() *cmd.Info

func (*RegenerateAPIToken) Run

func (c *RegenerateAPIToken) Run(context *cmd.Context) error

type ResetPassword

type ResetPassword struct {
	// contains filtered or unexported fields
}

func (*ResetPassword) Flags

func (c *ResetPassword) Flags() *gnuflag.FlagSet

func (*ResetPassword) Info

func (c *ResetPassword) Info() *cmd.Info

func (*ResetPassword) Run

func (c *ResetPassword) Run(context *cmd.Context) error

type RoleAdd

type RoleAdd struct {
	// contains filtered or unexported fields
}

func (*RoleAdd) Flags

func (c *RoleAdd) Flags() *gnuflag.FlagSet

func (*RoleAdd) Info

func (c *RoleAdd) Info() *cmd.Info

func (*RoleAdd) Run

func (c *RoleAdd) Run(context *cmd.Context) error

type RoleAssign

type RoleAssign struct{}

func (*RoleAssign) Info

func (c *RoleAssign) Info() *cmd.Info

func (*RoleAssign) Run

func (c *RoleAssign) Run(context *cmd.Context) error

type RoleDefaultAdd

type RoleDefaultAdd struct {
	// contains filtered or unexported fields
}

func (*RoleDefaultAdd) Flags

func (c *RoleDefaultAdd) Flags() *gnuflag.FlagSet

func (*RoleDefaultAdd) Info

func (c *RoleDefaultAdd) Info() *cmd.Info

func (*RoleDefaultAdd) Run

func (c *RoleDefaultAdd) Run(context *cmd.Context) error

type RoleDefaultList

type RoleDefaultList struct{}

func (*RoleDefaultList) Info

func (c *RoleDefaultList) Info() *cmd.Info

func (*RoleDefaultList) Run

func (c *RoleDefaultList) Run(context *cmd.Context) error

type RoleDefaultRemove

type RoleDefaultRemove struct {
	// contains filtered or unexported fields
}

func (*RoleDefaultRemove) Flags

func (c *RoleDefaultRemove) Flags() *gnuflag.FlagSet

func (*RoleDefaultRemove) Info

func (c *RoleDefaultRemove) Info() *cmd.Info

func (*RoleDefaultRemove) Run

func (c *RoleDefaultRemove) Run(context *cmd.Context) error

type RoleDissociate

type RoleDissociate struct{}

func (*RoleDissociate) Info

func (c *RoleDissociate) Info() *cmd.Info

func (*RoleDissociate) Run

func (c *RoleDissociate) Run(context *cmd.Context) error

type RoleInfo

type RoleInfo struct{}

func (*RoleInfo) Info

func (c *RoleInfo) Info() *cmd.Info

func (*RoleInfo) Run

func (c *RoleInfo) Run(context *cmd.Context) error

type RoleList

type RoleList struct{}

func (*RoleList) Info

func (c *RoleList) Info() *cmd.Info

func (*RoleList) Run

func (c *RoleList) Run(context *cmd.Context) error

type RolePermissionAdd

type RolePermissionAdd struct{}

func (*RolePermissionAdd) Info

func (c *RolePermissionAdd) Info() *cmd.Info

func (*RolePermissionAdd) Run

func (c *RolePermissionAdd) Run(context *cmd.Context) error

type RolePermissionRemove

type RolePermissionRemove struct{}

func (*RolePermissionRemove) Info

func (c *RolePermissionRemove) Info() *cmd.Info

func (*RolePermissionRemove) Run

func (c *RolePermissionRemove) Run(context *cmd.Context) error

type RoleRemove

type RoleRemove struct {
	cmd.ConfirmationCommand
}

func (*RoleRemove) Info

func (c *RoleRemove) Info() *cmd.Info

func (*RoleRemove) Run

func (c *RoleRemove) Run(context *cmd.Context) error

type RoleUpdate

type RoleUpdate struct {
	// contains filtered or unexported fields
}

func (*RoleUpdate) Flags

func (c *RoleUpdate) Flags() *gnuflag.FlagSet

func (*RoleUpdate) Info

func (c *RoleUpdate) Info() *cmd.Info

func (*RoleUpdate) Run

func (c *RoleUpdate) Run(context *cmd.Context) error

type RouterAdd

type RouterAdd struct {
	// contains filtered or unexported fields
}

func (*RouterAdd) Flags

func (c *RouterAdd) Flags() *gnuflag.FlagSet

func (*RouterAdd) Info

func (c *RouterAdd) Info() *cmd.Info

func (*RouterAdd) Run

func (c *RouterAdd) Run(ctx *cmd.Context) error

type RouterInfo

type RouterInfo struct{}

func (*RouterInfo) Info

func (c *RouterInfo) Info() *cmd.Info

func (*RouterInfo) Run

func (c *RouterInfo) Run(ctx *cmd.Context) error

type RouterRemove

type RouterRemove struct{}

func (*RouterRemove) Info

func (c *RouterRemove) Info() *cmd.Info

func (*RouterRemove) Run

func (c *RouterRemove) Run(ctx *cmd.Context) error

type RouterUpdate

type RouterUpdate struct {
	// contains filtered or unexported fields
}

func (*RouterUpdate) Flags

func (c *RouterUpdate) Flags() *gnuflag.FlagSet

func (*RouterUpdate) Info

func (c *RouterUpdate) Info() *cmd.Info

func (*RouterUpdate) Run

func (c *RouterUpdate) Run(ctx *cmd.Context) error

type RoutersList

type RoutersList struct {
	// contains filtered or unexported fields
}

func (*RoutersList) Flags

func (c *RoutersList) Flags() *gnuflag.FlagSet

func (*RoutersList) Info

func (c *RoutersList) Info() *cmd.Info

func (*RoutersList) Run

func (c *RoutersList) Run(ctx *cmd.Context) error

type ServiceInfo

type ServiceInfo struct {
	// contains filtered or unexported fields
}

func (*ServiceInfo) BuildInstancesTable

func (c *ServiceInfo) BuildInstancesTable(ctx *cmd.Context, serviceName string, instances []ServiceInstanceModel) error

func (*ServiceInfo) BuildPlansTable

func (c *ServiceInfo) BuildPlansTable(ctx *cmd.Context, plans []plan) error

func (*ServiceInfo) ExtraHeaders

func (*ServiceInfo) ExtraHeaders(instances []ServiceInstanceModel) []string

func (*ServiceInfo) Flags

func (c *ServiceInfo) Flags() *gnuflag.FlagSet

func (*ServiceInfo) Info

func (c *ServiceInfo) Info() *cmd.Info

func (*ServiceInfo) Run

func (c *ServiceInfo) Run(ctx *cmd.Context) error

func (*ServiceInfo) WriteDoc

func (c *ServiceInfo) WriteDoc(ctx *cmd.Context) error

type ServiceInstanceAdd

type ServiceInstanceAdd struct {
	// contains filtered or unexported fields
}

func (*ServiceInstanceAdd) Flags

func (c *ServiceInstanceAdd) Flags() *gnuflag.FlagSet

func (*ServiceInstanceAdd) Info

func (c *ServiceInstanceAdd) Info() *cmd.Info

func (*ServiceInstanceAdd) Run

func (c *ServiceInstanceAdd) Run(ctx *cmd.Context) error

type ServiceInstanceBind

type ServiceInstanceBind struct {
	// contains filtered or unexported fields
}

func (*ServiceInstanceBind) Flags

func (sb *ServiceInstanceBind) Flags() *gnuflag.FlagSet

func (*ServiceInstanceBind) Info

func (sb *ServiceInstanceBind) Info() *cmd.Info

func (*ServiceInstanceBind) Run

func (sb *ServiceInstanceBind) Run(ctx *cmd.Context) error

type ServiceInstanceGrant

type ServiceInstanceGrant struct{}

func (*ServiceInstanceGrant) Info

func (c *ServiceInstanceGrant) Info() *cmd.Info

func (*ServiceInstanceGrant) Run

func (c *ServiceInstanceGrant) Run(ctx *cmd.Context) error

type ServiceInstanceInfo

type ServiceInstanceInfo struct {
	// contains filtered or unexported fields
}

func (*ServiceInstanceInfo) Flags

func (c *ServiceInstanceInfo) Flags() *gnuflag.FlagSet

func (ServiceInstanceInfo) Info

func (c ServiceInstanceInfo) Info() *cmd.Info

func (ServiceInstanceInfo) Run

func (c ServiceInstanceInfo) Run(ctx *cmd.Context) error

type ServiceInstanceInfoModel

type ServiceInstanceInfoModel struct {
	ServiceName     string
	InstanceName    string
	Pool            string
	Apps            []string
	Jobs            []string
	Teams           []string
	TeamOwner       string
	Description     string
	PlanName        string
	PlanDescription string
	CustomInfo      map[string]string
	Tags            []string
	Parameters      map[string]interface{}
	Status          string
}

type ServiceInstanceModel

type ServiceInstanceModel struct {
	Name     string
	PlanName string
	Pool     string
	Apps     []string
	Jobs     []string
	Info     map[string]string
}

type ServiceInstanceRemove

type ServiceInstanceRemove struct {
	cmd.ConfirmationCommand
	// contains filtered or unexported fields
}

func (*ServiceInstanceRemove) Flags

func (*ServiceInstanceRemove) Info

func (c *ServiceInstanceRemove) Info() *cmd.Info

func (*ServiceInstanceRemove) Run

func (c *ServiceInstanceRemove) Run(ctx *cmd.Context) error

type ServiceInstanceRevoke

type ServiceInstanceRevoke struct{}

func (*ServiceInstanceRevoke) Info

func (c *ServiceInstanceRevoke) Info() *cmd.Info

func (*ServiceInstanceRevoke) Run

func (c *ServiceInstanceRevoke) Run(ctx *cmd.Context) error

type ServiceInstanceUnbind

type ServiceInstanceUnbind struct {
	// contains filtered or unexported fields
}

func (*ServiceInstanceUnbind) Flags

func (su *ServiceInstanceUnbind) Flags() *gnuflag.FlagSet

func (*ServiceInstanceUnbind) Info

func (su *ServiceInstanceUnbind) Info() *cmd.Info

func (*ServiceInstanceUnbind) Run

func (su *ServiceInstanceUnbind) Run(ctx *cmd.Context) error

type ServiceInstanceUpdate

type ServiceInstanceUpdate struct {
	// contains filtered or unexported fields
}

func (*ServiceInstanceUpdate) Flags

func (*ServiceInstanceUpdate) Info

func (c *ServiceInstanceUpdate) Info() *cmd.Info

func (*ServiceInstanceUpdate) Run

func (c *ServiceInstanceUpdate) Run(ctx *cmd.Context) error

type ServiceList

type ServiceList struct {
	// contains filtered or unexported fields
}

func (*ServiceList) Flags

func (c *ServiceList) Flags() *gnuflag.FlagSet

func (*ServiceList) Info

func (s *ServiceList) Info() *cmd.Info

func (ServiceList) Run

func (s ServiceList) Run(ctx *cmd.Context) error

type ServicePlanList

type ServicePlanList struct {
	// contains filtered or unexported fields
}

func (*ServicePlanList) Flags

func (c *ServicePlanList) Flags() *gnuflag.FlagSet

func (*ServicePlanList) Info

func (c *ServicePlanList) Info() *cmd.Info

func (*ServicePlanList) Run

func (c *ServicePlanList) Run(ctx *cmd.Context) error

type ShellToContainerCmd

type ShellToContainerCmd struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*ShellToContainerCmd) Flags

func (c *ShellToContainerCmd) Flags() *gnuflag.FlagSet

func (*ShellToContainerCmd) Info

func (c *ShellToContainerCmd) Info() *cmd.Info

func (*ShellToContainerCmd) Run

func (c *ShellToContainerCmd) Run(context *cmd.Context) error

type ShowAPIToken

type ShowAPIToken struct {
	// contains filtered or unexported fields
}

func (*ShowAPIToken) Flags

func (c *ShowAPIToken) Flags() *gnuflag.FlagSet

func (*ShowAPIToken) Info

func (c *ShowAPIToken) Info() *cmd.Info

func (*ShowAPIToken) Run

func (c *ShowAPIToken) Run(context *cmd.Context) error

type TagList

type TagList struct{}

func (*TagList) Info

func (t *TagList) Info() *cmd.Info

func (*TagList) Run

func (t *TagList) Run(context *cmd.Context) error

func (*TagList) Show

func (t *TagList) Show(apps []app, services []service.ServiceModel, context *cmd.Context) error

type TeamCreate

type TeamCreate struct {
	// contains filtered or unexported fields
}

func (*TeamCreate) Flags

func (c *TeamCreate) Flags() *gnuflag.FlagSet

func (*TeamCreate) Info

func (c *TeamCreate) Info() *cmd.Info

func (*TeamCreate) Run

func (c *TeamCreate) Run(ctx *cmd.Context) error

type TeamInfo

type TeamInfo struct{}

func (*TeamInfo) Info

func (c *TeamInfo) Info() *cmd.Info

func (*TeamInfo) Run

func (c *TeamInfo) Run(ctx *cmd.Context) error

type TeamList

type TeamList struct {
	// contains filtered or unexported fields
}

func (*TeamList) Flags

func (c *TeamList) Flags() *gnuflag.FlagSet

func (*TeamList) Info

func (c *TeamList) Info() *cmd.Info

func (*TeamList) Run

func (c *TeamList) Run(ctx *cmd.Context) error

type TeamRemove

type TeamRemove struct {
	cmd.ConfirmationCommand
}

func (*TeamRemove) Info

func (c *TeamRemove) Info() *cmd.Info

func (*TeamRemove) Run

func (c *TeamRemove) Run(ctx *cmd.Context) error

type TeamUpdate

type TeamUpdate struct {
	// contains filtered or unexported fields
}

func (*TeamUpdate) Flags

func (t *TeamUpdate) Flags() *gnuflag.FlagSet

func (*TeamUpdate) Info

func (t *TeamUpdate) Info() *cmd.Info

func (*TeamUpdate) Run

func (t *TeamUpdate) Run(ctx *cmd.Context) error

type TokenCreateCmd

type TokenCreateCmd struct {
	// contains filtered or unexported fields
}

func (*TokenCreateCmd) Flags

func (c *TokenCreateCmd) Flags() *gnuflag.FlagSet

func (*TokenCreateCmd) Info

func (c *TokenCreateCmd) Info() *cmd.Info

func (*TokenCreateCmd) Run

func (c *TokenCreateCmd) Run(ctx *cmd.Context) error

type TokenDeleteCmd

type TokenDeleteCmd struct {
}

func (*TokenDeleteCmd) Info

func (c *TokenDeleteCmd) Info() *cmd.Info

func (*TokenDeleteCmd) Run

func (c *TokenDeleteCmd) Run(ctx *cmd.Context) error

type TokenInfoCmd

type TokenInfoCmd struct {
}

func (*TokenInfoCmd) Info

func (c *TokenInfoCmd) Info() *cmd.Info

func (*TokenInfoCmd) Run

func (c *TokenInfoCmd) Run(ctx *cmd.Context) error

type TokenListCmd

type TokenListCmd struct {
}

func (*TokenListCmd) Info

func (c *TokenListCmd) Info() *cmd.Info

func (*TokenListCmd) Run

func (c *TokenListCmd) Run(ctx *cmd.Context) error

type TokenUpdateCmd

type TokenUpdateCmd struct {
	// contains filtered or unexported fields
}

func (*TokenUpdateCmd) Flags

func (c *TokenUpdateCmd) Flags() *gnuflag.FlagSet

func (*TokenUpdateCmd) Info

func (c *TokenUpdateCmd) Info() *cmd.Info

func (*TokenUpdateCmd) Run

func (c *TokenUpdateCmd) Run(ctx *cmd.Context) error

type UnitAdd

type UnitAdd struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*UnitAdd) Flags

func (c *UnitAdd) Flags() *gnuflag.FlagSet

func (*UnitAdd) Info

func (c *UnitAdd) Info() *cmd.Info

func (*UnitAdd) Run

func (c *UnitAdd) Run(context *cmd.Context) error

type UnitKill

type UnitKill struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*UnitKill) Flags

func (c *UnitKill) Flags() *gnuflag.FlagSet

func (*UnitKill) Info

func (c *UnitKill) Info() *cmd.Info

func (*UnitKill) Run

func (c *UnitKill) Run(context *cmd.Context) error

type UnitRemove

type UnitRemove struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*UnitRemove) Flags

func (c *UnitRemove) Flags() *gnuflag.FlagSet

func (*UnitRemove) Info

func (c *UnitRemove) Info() *cmd.Info

func (*UnitRemove) Run

func (c *UnitRemove) Run(context *cmd.Context) error

type UnitSet

type UnitSet struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*UnitSet) Flags

func (c *UnitSet) Flags() *gnuflag.FlagSet

func (*UnitSet) Info

func (c *UnitSet) Info() *cmd.Info

func (*UnitSet) Run

func (c *UnitSet) Run(context *cmd.Context) error

type UserCreate

type UserCreate struct{}

func (*UserCreate) Info

func (c *UserCreate) Info() *cmd.Info

func (*UserCreate) Run

func (c *UserCreate) Run(context *cmd.Context) error

type UserInfo

type UserInfo struct{}

func (UserInfo) Info

func (UserInfo) Info() *cmd.Info

func (UserInfo) Run

func (UserInfo) Run(ctx *cmd.Context) error

type UserRemove

type UserRemove struct{}

func (*UserRemove) Info

func (c *UserRemove) Info() *cmd.Info

func (*UserRemove) Run

func (c *UserRemove) Run(context *cmd.Context) error

type VolumeBind

type VolumeBind struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*VolumeBind) Flags

func (c *VolumeBind) Flags() *gnuflag.FlagSet

func (*VolumeBind) Info

func (c *VolumeBind) Info() *cmd.Info

func (*VolumeBind) Run

func (c *VolumeBind) Run(ctx *cmd.Context) error

type VolumeCreate

type VolumeCreate struct {
	// contains filtered or unexported fields
}

func (*VolumeCreate) Flags

func (c *VolumeCreate) Flags() *gnuflag.FlagSet

func (*VolumeCreate) Info

func (c *VolumeCreate) Info() *cmd.Info

func (*VolumeCreate) Run

func (c *VolumeCreate) Run(ctx *cmd.Context) error

type VolumeDelete

type VolumeDelete struct{}

func (*VolumeDelete) Info

func (c *VolumeDelete) Info() *cmd.Info

func (*VolumeDelete) Run

func (c *VolumeDelete) Run(ctx *cmd.Context) error

type VolumeInfo

type VolumeInfo struct {
	// contains filtered or unexported fields
}

func (*VolumeInfo) Flags

func (c *VolumeInfo) Flags() *gnuflag.FlagSet

func (*VolumeInfo) Info

func (c *VolumeInfo) Info() *cmd.Info

func (*VolumeInfo) Run

func (c *VolumeInfo) Run(ctx *cmd.Context) error

type VolumeList

type VolumeList struct {
	// contains filtered or unexported fields
}

func (*VolumeList) Flags

func (c *VolumeList) Flags() *gnuflag.FlagSet

func (*VolumeList) Info

func (c *VolumeList) Info() *cmd.Info

func (*VolumeList) Run

func (c *VolumeList) Run(ctx *cmd.Context) error

type VolumePlansList

type VolumePlansList struct{}

func (*VolumePlansList) Info

func (c *VolumePlansList) Info() *cmd.Info

func (*VolumePlansList) Run

func (c *VolumePlansList) Run(ctx *cmd.Context) error

type VolumeUnbind

type VolumeUnbind struct {
	tsuruClientApp.AppNameMixIn
	// contains filtered or unexported fields
}

func (*VolumeUnbind) Flags

func (c *VolumeUnbind) Flags() *gnuflag.FlagSet

func (*VolumeUnbind) Info

func (c *VolumeUnbind) Info() *cmd.Info

func (*VolumeUnbind) Run

func (c *VolumeUnbind) Run(ctx *cmd.Context) error

type VolumeUpdate

type VolumeUpdate struct {
	// contains filtered or unexported fields
}

func (*VolumeUpdate) Flags

func (c *VolumeUpdate) Flags() *gnuflag.FlagSet

func (*VolumeUpdate) Info

func (c *VolumeUpdate) Info() *cmd.Info

func (*VolumeUpdate) Run

func (c *VolumeUpdate) Run(ctx *cmd.Context) error

type WebhookCreate

type WebhookCreate struct {
	// contains filtered or unexported fields
}

func (*WebhookCreate) Flags

func (c *WebhookCreate) Flags() *gnuflag.FlagSet

func (*WebhookCreate) Info

func (c *WebhookCreate) Info() *cmd.Info

func (*WebhookCreate) Run

func (c *WebhookCreate) Run(ctx *cmd.Context) error

type WebhookDelete

type WebhookDelete struct{}

func (*WebhookDelete) Info

func (c *WebhookDelete) Info() *cmd.Info

func (*WebhookDelete) Run

func (c *WebhookDelete) Run(ctx *cmd.Context) error

type WebhookList

type WebhookList struct {
}

func (*WebhookList) Info

func (c *WebhookList) Info() *cmd.Info

func (*WebhookList) Run

func (c *WebhookList) Run(ctx *cmd.Context) error

type WebhookUpdate

type WebhookUpdate struct {
	// contains filtered or unexported fields
}

func (*WebhookUpdate) Flags

func (c *WebhookUpdate) Flags() *gnuflag.FlagSet

func (*WebhookUpdate) Info

func (c *WebhookUpdate) Info() *cmd.Info

func (*WebhookUpdate) Run

func (c *WebhookUpdate) Run(ctx *cmd.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL