Documentation ¶
Overview ¶
Inspired by `hugo gen doc` - see https://github.com/gohugoio/hugo/blob/release-0.69.0/commands/gendoc.go
Inspired by `hugo gen doc` - see https://github.com/gohugoio/hugo/blob/release-0.69.0/commands/gendoc.go
Index ¶
- Constants
- Variables
- func AbortSequence(params sequenceControlStruct) error
- func AddOutputFormatFlag(cmd *cobra.Command) *string
- func AddWatchFlag(cmd *cobra.Command) *bool
- func AddWatchTimeFlag(cmd *cobra.Command) *int
- func Execute()
- func LookupHostname(hostname string, lookupFn resolveFunc, sleepFn sleepFunc) bool
- func NewDefaultWatcher(eventHandler apiutils.EventHandlerInterface, filter apiutils.EventFilter, ...) *apiutils.EventWatcher
- func NewRootCommand(vChecker *version.VersionChecker) *cobra.Command
- func NewVersionCommand(vChecker *version.VersionChecker) *cobra.Command
- func PauseSequence(params sequenceControlStruct) error
- func PrintAsJSON(writer io.Writer, events interface{})
- func PrintAsYAML(writer io.Writer, events interface{})
- func PrintEventWatcher(context context.Context, watcher Watcher, format string, writer io.Writer)
- func PrintEvents(writer io.Writer, format string, content interface{})
- func ResumeSequence(params sequenceControlStruct) error
- func ServiceInSlice(service string, serviceList []*models.Service) bool
- type Authenticator
- type AuthenticatorOptions
- type CredentialGetSetter
- type GetEventStruct
- type MockedCredentialGetSetter
- type SecretCmdHandler
- func (h SecretCmdHandler) CreateSecret(secretName string, data []string, scope *string) error
- func (h SecretCmdHandler) DeleteSecret(name string, scope *string) error
- func (h SecretCmdHandler) GetSecrets(outputFormat string) (string, error)
- func (h SecretCmdHandler) UpdateSecret(secretName string, data []string, scope *string) error
- type SequenceState
- type Watcher
Constants ¶
const EOLMsg = "" /* 155-byte string literal not displayed */
const IngressConfigName = "ingress-config"
Variables ¶
var KubeServerVersionConstraints string
KubeServerVersionConstraints the Kubernetes Cluster version's constraints is passed by ldflags
var ( // Version information which is passed by ldflags Version string )
Functions ¶
func AbortSequence ¶
func AbortSequence(params sequenceControlStruct) error
func AddOutputFormatFlag ¶
AddOutputFormatFlag adds the --output flag to the command
func AddWatchFlag ¶
AddWatchFlag ads the --watch flag to the command
func AddWatchTimeFlag ¶
AddWatchTimeFlag adds the --watch-time flag to the command
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func LookupHostname ¶
func NewDefaultWatcher ¶
func NewDefaultWatcher(eventHandler apiutils.EventHandlerInterface, filter apiutils.EventFilter, timeOut time.Duration) *apiutils.EventWatcher
NewDefaultWatcher creates a preconfigured EventWatcher used in cli commands
func NewRootCommand ¶
func NewRootCommand(vChecker *version.VersionChecker) *cobra.Command
func NewVersionCommand ¶
func NewVersionCommand(vChecker *version.VersionChecker) *cobra.Command
func PauseSequence ¶
func PauseSequence(params sequenceControlStruct) error
func PrintAsJSON ¶
PrintAsJSON prints events in JSON format to std::out
func PrintAsYAML ¶
PrintAsYAML prints events in YAML format to std::out
func PrintEventWatcher ¶
PrintEventWatcher uses the given watcher type and prints its result to the given writer in the given format Note that this function is blocking until the watcher is canceled
func PrintEvents ¶
PrintEvents can be used to print events (and structs in general) to the given write either in YAML or JSON format
func ResumeSequence ¶
func ResumeSequence(params sequenceControlStruct) error
Types ¶
type Authenticator ¶
type Authenticator struct { Namespace string CredentialManager CredentialGetSetter OauthStore auth.OauthStore }
func NewAuthenticator ¶
func NewAuthenticator(namespace string, credentialManager CredentialGetSetter, oauthStore auth.OauthStore) *Authenticator
func (*Authenticator) Auth ¶
func (a *Authenticator) Auth(authenticatorOptions AuthenticatorOptions) error
func (*Authenticator) GetCredentials ¶
func (a *Authenticator) GetCredentials() (url.URL, string, error)
type AuthenticatorOptions ¶
type CredentialGetSetter ¶
type GetEventStruct ¶
type MockedCredentialGetSetter ¶
type MockedCredentialGetSetter struct { SetCredsFunc func(endPoint url.URL, apiToken string, namespace string) error GetCredsFunc func(namespace string) (url.URL, string, error) }
type SecretCmdHandler ¶
type SecretCmdHandler struct {
// contains filtered or unexported fields
}
func NewSecretCmdHandler ¶
func NewSecretCmdHandler(cm credentialmanager.CredentialManagerInterface) (*SecretCmdHandler, error)
func (SecretCmdHandler) CreateSecret ¶
func (h SecretCmdHandler) CreateSecret(secretName string, data []string, scope *string) error
func (SecretCmdHandler) DeleteSecret ¶
func (h SecretCmdHandler) DeleteSecret(name string, scope *string) error
func (SecretCmdHandler) GetSecrets ¶
func (h SecretCmdHandler) GetSecrets(outputFormat string) (string, error)
func (SecretCmdHandler) UpdateSecret ¶
func (h SecretCmdHandler) UpdateSecret(secretName string, data []string, scope *string) error
type SequenceState ¶
type SequenceState string
type Watcher ¶
type Watcher interface {
Watch(ctx context.Context) (<-chan []*models.KeptnContextExtendedCE, context.CancelFunc)
}
Watcher is the interface to an EventWatcher
Source Files ¶
- abort.go
- abort_sequence.go
- add_resource.go
- auth.go
- authenticator.go
- common.go
- completion.go
- configure.go
- configure_bridge.go
- configure_monitoring.go
- create.go
- create_project.go
- create_secret.go
- create_service.go
- delete.go
- delete_project.go
- delete_secret.go
- delete_service.go
- generate.go
- generate_ce_spec.go
- generate_docs.go
- generate_support_archive.go
- get.go
- get_event.go
- get_event_approvalTriggered.go
- get_event_evaluationFinished.go
- get_projects.go
- get_secrets.go
- get_services.go
- get_stages.go
- helpers.go
- pause.go
- pause_sequence.go
- resume.go
- resume_sequence.go
- root.go
- secret.go
- send.go
- send_event.go
- send_event_approvalFinished.go
- send_event_evaluationStart.go
- sequencecontrol.go
- set.go
- set_config.go
- status.go
- trigger.go
- trigger_delivery.go
- trigger_evaluation.go
- trigger_sequence.go
- update.go
- update_project.go
- update_secret.go
- version.go