Documentation
¶
Overview ¶
Package actions contains the actions that the CLI can take. cmdr.Commands get user input, and then drive the actions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddArtifact ¶
type AddArtifact struct {
Repo string
Offset string
Tag string
DockerImage string
LocalShell shell.Shell
LogSink logging.LogSink
User sous.User
Inserter sous.ClientInserter
*config.Config
}
AddArtifact struct for add artifact action.
func (*AddArtifact) UploadArtifact ¶
func (a *AddArtifact) UploadArtifact(versionName, digestName string) error
UploadArtifact add artifact to sous servers
type Build ¶
type Build struct {
GetArtifact *GetArtifact
BuildManager *sous.BuildManager
RFF *sous.ResolveFilter
CLIArgs []string
// contains filtered or unexported fields
}
Build handles building deployable artifacts.
func (*Build) Result ¶
func (sb *Build) Result() *sous.BuildResult
Result returns the result of this build.
type Deploy ¶
type Deploy struct {
ResolveFilter *sous.ResolveFilter
StateReader sous.StateReader
HTTPClient restful.HTTPClient
TargetDeploymentID sous.DeploymentID
LogSink logging.LogSink
User sous.User
Force, WaitStable bool
*config.Config
}
Deploy is used to issue the command to make a new Deployment current for it's SourceID.
type GetArtifact ¶
type GetArtifact struct {
Query queries.ArtifactQuery
Repo, Offset, Tag string
LogSink logging.LogSink
BuildArtifact sous.BuildArtifact
}
GetArtifact struct for add artifact action.
func (*GetArtifact) ArtifactExists ¶
func (a *GetArtifact) ArtifactExists() (bool, error)
ArtifactExists returns (true, nil) if the artifact exists, (false, nil) it the artifact does not exist and (undefined, error) if the check is not successful.
type Jenkins ¶
type Jenkins struct {
HTTPClient restful.HTTPClient
TargetManifestID sous.ManifestID
LogSink logging.LogSink
User sous.User
Cluster string
*config.Config
}
Jenkins is used to issue the command to make a new Deployment current for it's SourceID.
type ManifestGet ¶
type ManifestGet struct {
ResolveFilter *sous.ResolveFilter
TargetManifestID sous.ManifestID
HTTPClient restful.HTTPClient
LogSink logging.LogSink
OutWriter io.Writer
UpdaterCapture *restful.Updater
}
A ManifestGet is an Action that fetches a manifest.
func (*ManifestGet) GetManifest ¶
func (mg *ManifestGet) GetManifest() (sous.Manifest, error)
GetManifest returns the sous.Manifest.
type ManifestSet ¶
type ManifestSet struct {
sous.ManifestID
InReader io.Reader
ResolveFilter *sous.ResolveFilter
logging.LogSink
User sous.User
Updater *restful.Updater
}
ManifestSet is an Action for setting a manifest.
func (*ManifestSet) Do ¶
func (ms *ManifestSet) Do() error
Do implements the Action interface on ManifestSet
func (*ManifestSet) SetManifest ¶
func (ms *ManifestSet) SetManifest(m sous.Manifest) error
SetManifest sets the manifest.
type PlumbNormalizeGDM ¶
PlumbNormalizeGDM struct for normalize GDM action.
func (*PlumbNormalizeGDM) Do ¶
func (p *PlumbNormalizeGDM) Do() error
Do executes the action for plumb normalize GDM.
type PollStatus ¶
type PollStatus struct {
StatusPoller *sous.StatusPoller
}
PollStatus manages the command to poll the server for status.
type Rectify ¶
Rectify processes a workstation rectify command. Mostly deprecated by sous server, but very useful when it is.
type Server ¶
type Server struct {
Version semv.Version
DeployFilterFlags config.DeployFilterFlags `inject:"optional"`
Log logging.LogSink
ListenAddr string
GDMRepo string
*config.Config
ServerHandler http.Handler
*sous.AutoResolver
}
A Server represents the `sous server` command.
type Update ¶
type Update struct {
Manifest *sous.Manifest
GDM sous.Deployments
HTTPStateManager *sous.HTTPStateManager
ResolveFilter *sous.ResolveFilter
User sous.User
Log logging.LogSink
}
Update is the command description for `sous update`