Documentation ¶
Index ¶
- Constants
- func NewCmd() *cobra.Command
- func NewCreateCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewDeleteCmd(o *DeleteOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewGetCmd(o *GetOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewInstallCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewKickCmd(o *PauseOrKickOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewListCmd(o *ListOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewPauseCmd(o *PauseOrKickOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewStatusCmd(o *StatusOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- func NewUpdateCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
- type CreateOrUpdateOptions
- type CreatedResourceAnnotations
- func (a *CreatedResourceAnnotations) ClusterRoleAnnValue() string
- func (a *CreatedResourceAnnotations) ClusterRoleBindingAnnValue() string
- func (a *CreatedResourceAnnotations) PackageAnnValue() string
- func (a *CreatedResourceAnnotations) SecretAnnValue() string
- func (a *CreatedResourceAnnotations) ServiceAccountAnnValue() string
- type CreatedResourceKind
- type DeleteOptions
- type GetOptions
- type ListOptions
- type PackageInstalledDryRun
- type PauseOrKickOptions
- type StatusOptions
- type YttOverlayFlags
- type YttOverlays
Constants ¶
View Source
const ( // For use with packages created using kapp-ctrl-cli KctrlPkgAnnotation = "packaging.carvel.dev/package" KctrlPkgAnnotationPrefix = "package-" // For use with packages created with Tanzu CLI. To be deprecated TanzuPkgAnnotation = "tkg.tanzu.vmware.com/tanzu-package" TanzuPkgAnnotationPrefix = "tanzu-package-" ClusterRoleBindingName = "%s-%s-cluster-rolebinding" ClusterRoleName = "%s-%s-cluster-role" SecretName = "%s-%s-values" ServiceAccountName = "%s-%s-sa" )
Variables ¶
This section is empty.
Functions ¶
func NewCreateCmd ¶
func NewCreateCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewDeleteCmd ¶
func NewDeleteCmd(o *DeleteOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewGetCmd ¶
func NewGetCmd(o *GetOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewInstallCmd ¶
func NewInstallCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewKickCmd ¶
func NewKickCmd(o *PauseOrKickOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewListCmd ¶
func NewListCmd(o *ListOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewPauseCmd ¶
func NewPauseCmd(o *PauseOrKickOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewStatusCmd ¶
func NewStatusCmd(o *StatusOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
func NewUpdateCmd ¶
func NewUpdateCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
Types ¶
type CreateOrUpdateOptions ¶
type CreateOrUpdateOptions struct { WaitFlags cmdcore.WaitFlags YttOverlayFlags YttOverlayFlags DryRun bool Name string NamespaceFlags cmdcore.NamespaceFlags SecureNamespaceFlags cmdcore.SecureNamespaceFlags // contains filtered or unexported fields }
func NewCreateOrUpdateOptions ¶
func NewCreateOrUpdateOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts, columns *[]string) *CreateOrUpdateOptions
func (*CreateOrUpdateOptions) RunCreate ¶
func (o *CreateOrUpdateOptions) RunCreate(args []string) error
func (*CreateOrUpdateOptions) RunUpdate ¶
func (o *CreateOrUpdateOptions) RunUpdate(args []string) error
type CreatedResourceAnnotations ¶
type CreatedResourceAnnotations struct {
// contains filtered or unexported fields
}
func NewCreatedResourceAnnotations ¶
func NewCreatedResourceAnnotations(name string, namespace string) *CreatedResourceAnnotations
func (*CreatedResourceAnnotations) ClusterRoleAnnValue ¶
func (a *CreatedResourceAnnotations) ClusterRoleAnnValue() string
func (*CreatedResourceAnnotations) ClusterRoleBindingAnnValue ¶
func (a *CreatedResourceAnnotations) ClusterRoleBindingAnnValue() string
func (*CreatedResourceAnnotations) PackageAnnValue ¶
func (a *CreatedResourceAnnotations) PackageAnnValue() string
func (*CreatedResourceAnnotations) SecretAnnValue ¶
func (a *CreatedResourceAnnotations) SecretAnnValue() string
func (*CreatedResourceAnnotations) ServiceAccountAnnValue ¶
func (a *CreatedResourceAnnotations) ServiceAccountAnnValue() string
type CreatedResourceKind ¶
type CreatedResourceKind string
const ( KindClusterRole CreatedResourceKind = "ClusterRole" KindClusterRoleBinding CreatedResourceKind = "ClusterRoleBinding" KindSecret CreatedResourceKind = "Secret" KindServiceAccount CreatedResourceKind = "ServiceAccount" KindNamespace CreatedResourceKind = "Namespace" )
func (CreatedResourceKind) AsString ¶
func (k CreatedResourceKind) AsString() string
func (CreatedResourceKind) Name ¶
func (k CreatedResourceKind) Name(pkgiName string, pkgiNamespace string) string
func (CreatedResourceKind) Resource ¶
func (k CreatedResourceKind) Resource() string
type DeleteOptions ¶
type DeleteOptions struct { NamespaceFlags cmdcore.NamespaceFlags Name string NoOp bool WaitFlags cmdcore.WaitFlags // contains filtered or unexported fields }
func NewDeleteOptions ¶
func NewDeleteOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts) *DeleteOptions
func (*DeleteOptions) Run ¶
func (o *DeleteOptions) Run(args []string) error
type GetOptions ¶
type GetOptions struct { NamespaceFlags cmdcore.NamespaceFlags Name string // contains filtered or unexported fields }
func NewGetOptions ¶
func NewGetOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts, columns *[]string) *GetOptions
func (*GetOptions) Run ¶
func (o *GetOptions) Run(args []string) error
type ListOptions ¶
type ListOptions struct { NamespaceFlags cmdcore.NamespaceFlags AllNamespaces bool Wide bool // contains filtered or unexported fields }
func NewListOptions ¶
func NewListOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts, columns *[]string) *ListOptions
func (*ListOptions) Run ¶
func (o *ListOptions) Run() error
type PackageInstalledDryRun ¶
type PackageInstalledDryRun struct {
*CreateOrUpdateOptions
}
func (PackageInstalledDryRun) PrintResources ¶
func (d PackageInstalledDryRun) PrintResources() error
type PauseOrKickOptions ¶
type PauseOrKickOptions struct { WaitFlags cmdcore.WaitFlags NamespaceFlags cmdcore.NamespaceFlags Name string // contains filtered or unexported fields }
func NewPauseOrKickOptions ¶
func NewPauseOrKickOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts) *PauseOrKickOptions
func (*PauseOrKickOptions) Kick ¶
func (o *PauseOrKickOptions) Kick(args []string) error
func (*PauseOrKickOptions) Pause ¶
func (o *PauseOrKickOptions) Pause(args []string) error
type StatusOptions ¶
type StatusOptions struct { NamespaceFlags cmdcore.NamespaceFlags Name string IgnoreNotExists bool // contains filtered or unexported fields }
func NewStatusOptions ¶
func NewStatusOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger, pkgCmdTreeOpts cmdcore.PackageCommandTreeOpts, columns *[]string) *StatusOptions
func (*StatusOptions) Run ¶
func (o *StatusOptions) Run(args []string) error
type YttOverlayFlags ¶
type YttOverlayFlags struct {
// contains filtered or unexported fields
}
func (*YttOverlayFlags) Set ¶
func (s *YttOverlayFlags) Set(cmd *cobra.Command)
type YttOverlays ¶
type YttOverlays struct {
// contains filtered or unexported fields
}
func NewYttOverlays ¶
func NewYttOverlays(files []string, packageInstall string, namespace string) *YttOverlays
func (*YttOverlays) OverlaysSecret ¶
func (o *YttOverlays) OverlaysSecret() (*corev1.Secret, error)
Click to show internal directories.
Click to hide internal directories.