cli

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OSExit = os.Exit
View Source
var RootCmd = &cobra.Command{
	Use:   "kubectl-sigstore",
	Short: "A command to sign/verify Kubernetes YAML manifests and resources on cluster",
	RunE: func(cmd *cobra.Command, args []string) error {
		return errors.New("kubectl sigstore cannot be invoked without a subcommand operation")
	},
	Args: func(cmd *cobra.Command, args []string) error {
		if len(args) < 1 {
			return errors.New("operation must be specified (e.g. kubectl sigstore sign)")
		}
		return nil
	},
}

Functions

func NewCmdApplyAfterVerify

func NewCmdApplyAfterVerify() *cobra.Command

func NewCmdManifestBuild

func NewCmdManifestBuild() *cobra.Command

func NewCmdSign

func NewCmdSign() *cobra.Command

func NewCmdVerify

func NewCmdVerify() *cobra.Command

func NewCmdVerifyResource

func NewCmdVerifyResource() *cobra.Command

func NewCmdVersion

func NewCmdVersion() *cobra.Command

Types

type KubectlOptions

type KubectlOptions struct {
	ConfigFlags *genericclioptions.ConfigFlags
	PrintFlags  *genericclioptions.PrintFlags

	GetOptions   *cmdget.GetOptions
	ApplyOptions *cmdapply.ApplyOptions
	// contains filtered or unexported fields
}
var KOptions KubectlOptions

func (*KubectlOptions) Apply

func (o *KubectlOptions) Apply(filename string) error

func (*KubectlOptions) Get

func (o *KubectlOptions) Get(args []string, overrideNamespace string) ([]unstructured.Unstructured, error)

func (*KubectlOptions) InitApply

func (o *KubectlOptions) InitApply(cmd *cobra.Command, filename string) error

func (*KubectlOptions) InitGet

func (o *KubectlOptions) InitGet(cmd *cobra.Command) error

func (*KubectlOptions) SetKubeConfig

func (o *KubectlOptions) SetKubeConfig(fpath, namespace string)

type VerifyResourceResult

type VerifyResourceResult struct {
	metav1.TypeMeta `json:""`
	Summary         summary           `json:"summary"`
	Manifests       []manifestResult  `json:"manifests"`
	Resources       []resourceResult  `json:"resources"`
	Provenance      *provenanceResult `json:"provenance,omitempty"`
}

func NewVerifyResourceResult

func NewVerifyResourceResult(results []resourceResult, provenanceEnabled bool) VerifyResourceResult

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL