Documentation ¶
Index ¶
- func NewCompletion(rootCmd *cobra.Command) *cobra.Command
- func NewDescribe(client *httpinternal.Client, service *string) *cobra.Command
- func NewPolicy(client *http.Client, service *string, gitConfigAPI GitConfigAPI) *cobra.Command
- func NewPromote(client *httpinternal.Client, service *string, releaseClient ReleaseArtifact) *cobra.Command
- func NewRelease(client *httpinternal.Client, service *string, logger LoggerFunc, ...) *cobra.Command
- func NewRollback(client *httpinternal.Client, service *string, logger LoggerFunc, ...) *cobra.Command
- func NewRoot(version *string) (*cobra.Command, error)
- func NewStatus(client *httpinternal.Client, service *string) *cobra.Command
- func NewVersion(version string) *cobra.Command
- func SelectRollbackReleaseFunc(environment string, releases []httpinternal.DescribeReleaseResponseRelease) (int, error)
- func Time(epoch int64) time.Time
- type GitConfigAPI
- type GitConfigAPIMock
- type LoggerFunc
- type ReleaseArtifact
- type ReleaseArtifactMultipleEnvironments
- type SelectRollbackRelease
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDescribe ¶ added in v0.0.33
func NewDescribe(client *httpinternal.Client, service *string) *cobra.Command
func NewPromote ¶
func NewPromote(client *httpinternal.Client, service *string, releaseClient ReleaseArtifact) *cobra.Command
func NewRelease ¶
func NewRelease(client *httpinternal.Client, service *string, logger LoggerFunc, releaseClient ReleaseArtifactMultipleEnvironments) *cobra.Command
func NewRollback ¶ added in v0.0.10
func NewRollback( client *httpinternal.Client, service *string, logger LoggerFunc, selectReleaseUI SelectRollbackRelease, releaseClient ReleaseArtifact, ) *cobra.Command
func NewVersion ¶ added in v0.11.3
func SelectRollbackReleaseFunc ¶ added in v0.24.0
func SelectRollbackReleaseFunc( environment string, releases []httpinternal.DescribeReleaseResponseRelease, ) (int, error)
Types ¶
type GitConfigAPI ¶ added in v0.24.0
type GitConfigAPI interface {
CommitterDetails() (*git.CommitterDetails, error)
}
type GitConfigAPIMock ¶ added in v0.24.0
type GitConfigAPIMock struct { // CommitterDetailsFunc mocks the CommitterDetails method. CommitterDetailsFunc func() (*git.CommitterDetails, error) // contains filtered or unexported fields }
GitConfigAPIMock is a mock implementation of GitConfigAPI.
func TestSomethingThatUsesGitConfigAPI(t *testing.T) { // make and configure a mocked GitConfigAPI mockedGitConfigAPI := &GitConfigAPIMock{ CommitterDetailsFunc: func() (*git.CommitterDetails, error) { panic("mock out the CommitterDetails method") }, } // use mockedGitConfigAPI in code that requires GitConfigAPI // and then make assertions. }
func (*GitConfigAPIMock) CommitterDetails ¶ added in v0.24.0
func (mock *GitConfigAPIMock) CommitterDetails() (*git.CommitterDetails, error)
CommitterDetails calls CommitterDetailsFunc.
func (*GitConfigAPIMock) CommitterDetailsCalls ¶ added in v0.24.0
func (mock *GitConfigAPIMock) CommitterDetailsCalls() []struct { }
CommitterDetailsCalls gets all the calls that were made to CommitterDetails. Check the length with:
len(mockedGitConfigAPI.CommitterDetailsCalls())
type LoggerFunc ¶ added in v0.12.0
type LoggerFunc = func(string, ...interface{})
type ReleaseArtifact ¶ added in v0.24.0
type ReleaseArtifactMultipleEnvironments ¶ added in v0.24.0
type SelectRollbackRelease ¶ added in v0.24.0
type SelectRollbackRelease func(environment string, releases []httpinternal.DescribeReleaseResponseRelease) (int, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.