Versions in this module Expand all Collapse all v1 v1.6.0 Sep 11, 2023 Changes in this version + func Publish(ctx *pkg.AppContext, body []byte, arg string) error + type PublishOptions struct + func (o *PublishOptions) ParseInput(ctx *pkg.AppContext) ([]byte, error) + type PublishResponse struct + ChildResults string + Id string + OwnedBy string + Reason string + Result string + Status int v1.3.2 Oct 4, 2023 Changes in this version + func CreateAction(ctx *pkg.AppContext, operator string) ([]payload, error) + func Execute(ctx *pkg.AppContext) *cobra.Command + func GenerateConfig(ctx *pkg.AppContext, opts *GenerateConfigOptions) error + func NamespaceCreateCmd(ctx *pkg.AppContext) *cobra.Command + func NamespaceCurrentCmd(ctx *pkg.AppContext) *cobra.Command + func NamespaceDestroyCmd(ctx *pkg.AppContext) *cobra.Command + func NamespaceListCmd(ctx *pkg.AppContext) *cobra.Command + func NewApplyCmd(ctx *pkg.AppContext) *cobra.Command + func NewConfigCmd(ctx *pkg.AppContext) *cobra.Command + func NewConfigGetCmd(_ *pkg.AppContext) *cobra.Command + func NewConfigSetCmd(_ *pkg.AppContext) *cobra.Command + func NewGenerateConfigCmd(ctx *pkg.AppContext) *cobra.Command + func NewGetCmd(ctx *pkg.AppContext, buf *bytes.Buffer) *cobra.Command + func NewInit(_ *pkg.AppContext) *cobra.Command + func NewLoginCmd(ctx *pkg.AppContext) *cobra.Command + func NewNamespaceCmd(ctx *pkg.AppContext) *cobra.Command + func NewPublishCmd(_ *pkg.AppContext) *cobra.Command + func NewPublishGatewayCmd(ctx *pkg.AppContext) *cobra.Command + func NewRootCommand(ctx *pkg.AppContext) *cobra.Command + func NewStatusCmd(ctx *pkg.AppContext, buf *bytes.Buffer) *cobra.Command + func PublishGatewayService(ctx *pkg.AppContext, doc parsedConfig) error + func PublishResource(ctx *pkg.AppContext, doc parsedConfig, arg string) (string, error) + type ApplyOptions struct + func (o *ApplyOptions) Parse(cwd string) ([][]byte, error) + type GenerateConfigOptions struct + Namespace string + Organization string + OrganizationUnit string + Out string + Service string + Template string + Upstream string + UpstreamPort string + UpstreamUrl *url.URL + func (o *GenerateConfigOptions) Exec() error + func (o *GenerateConfigOptions) ParseUpstream() error + func (o *GenerateConfigOptions) ValidateTemplate() error + type LoginFlags struct + func (l *LoginFlags) IsClientCredential() bool + type NamespaceDestroyOptions struct + Force bool + type NamespaceFormData struct + Description string + Name string + type NamespaceResult struct + DisplayName string + Name string + type OutputFlags struct + Json bool + Yaml bool + type PublishCounter struct + Failed int + Skipped int + Success int + func (p *PublishCounter) AddFailed() + func (p *PublishCounter) AddSkipped() + func (p *PublishCounter) AddSuccess() + func (p *PublishCounter) Print() string + type PublishGatewayOptions struct + type PublishGatewayResponse struct + Error string + Message string + Results string + func PublishGateway(ctx *pkg.AppContext, opts *PublishGatewayOptions) (PublishGatewayResponse, error) + func PublishToGateway(ctx *pkg.AppContext, opts *PublishGatewayOptions, configFile io.Reader) (PublishGatewayResponse, error) + type PutResponse struct + ChildResults string + Id string + OwnedBy string + Reason string + Result string + Status int + type ResourceConfig struct + Config map[string]interface{} + Kind string + func ExtractResourceConfig(doc []byte) (*ResourceConfig, error) + func (r *ResourceConfig) Action() string + type StatusJson struct + EnvHost string + Host string + Name string + Reason string + Status string + Upstream string + func FetchStatus(ctx *pkg.AppContext) ([]StatusJson, error)