Documentation
¶
Index ¶
- Variables
- func NewCmdApplyAfterVerify() *cobra.Command
- func NewCmdManifestBuild() *cobra.Command
- func NewCmdSign() *cobra.Command
- func NewCmdVerify() *cobra.Command
- func NewCmdVerifyResource() *cobra.Command
- func NewCmdVersion() *cobra.Command
- type KubectlOptions
- func (o *KubectlOptions) Apply(filename string) error
- func (o *KubectlOptions) Get(args []string, overrideNamespace string) ([]unstructured.Unstructured, error)
- func (o *KubectlOptions) InitApply(cmd *cobra.Command, filename string) error
- func (o *KubectlOptions) InitGet(cmd *cobra.Command) error
- func (o *KubectlOptions) SetKubeConfig(fpath, namespace string)
- type VerifyResourceResult
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 NewCmdManifestBuild ¶
func NewCmdSign ¶
func NewCmdVerify ¶
func NewCmdVerifyResource ¶
func NewCmdVersion ¶
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) 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
Click to show internal directories.
Click to hide internal directories.