Documentation ¶
Index ¶
- func CatalogCmd(cfg *config.Config) *cobra.Command
- func LoadContractFromArgs(args []string) (*contract.Contract, error)
- func NewCatalogExternalsCmd() runner.SubCommand
- func NewCatalogGenerateCmd() runner.SubCommand
- func NewCatalogGenerateFromExternalCmd() runner.SubCommand
- func NewLintCmd() runner.SubCommand
- func NewProbeCmd() runner.SubCommand
- func NewReleaseCmd() runner.SubCommand
- func NewRenderCmd() runner.SubCommand
- func NewRootCmd(stream *tkncli.Stream) *cobra.Command
- func NewSignCmd() runner.SubCommand
- func NewVerifyCmd() runner.SubCommand
- type ExternalsCmd
- type GenerateCmd
- type GenerateFromExternalCmd
- type GitHubMatrixObject
- type GitHubRunObject
- type LintCmd
- type ProbeCmd
- type ReleaseCmd
- type RenderCmd
- type SignCmd
- type VerifyCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCatalogExternalsCmd ¶
func NewCatalogExternalsCmd() runner.SubCommand
NewCatalogExternalsCmd instantiates the "externals" subcommand.
func NewCatalogGenerateCmd ¶
func NewCatalogGenerateCmd() runner.SubCommand
NewCatalogGenerateCmd instantiates the "generate" subcommand.
func NewCatalogGenerateFromExternalCmd ¶
func NewCatalogGenerateFromExternalCmd() runner.SubCommand
NewCatalogGenerateFromExternalCmd instantiates the "generate" subcommand.
func NewLintCmd ¶
func NewLintCmd() runner.SubCommand
NewLintCmd instantiates the "lint" subcommand.
func NewProbeCmd ¶
func NewProbeCmd() runner.SubCommand
func NewReleaseCmd ¶
func NewReleaseCmd() runner.SubCommand
NewReleaseCmd instantiates the NewReleaseCmd subcommand and flags.
func NewRenderCmd ¶
func NewRenderCmd() runner.SubCommand
NewRenderCmd instantiate the "render" subcommand.
func NewVerifyCmd ¶
func NewVerifyCmd() runner.SubCommand
NewVerifyCmd instantiates the "verify" subcommand.
Types ¶
type ExternalsCmd ¶
type ExternalsCmd struct {
// contains filtered or unexported fields
}
ExternalsCmd represents the "externals" subcommand to externals the signature of a resource file.
func (*ExternalsCmd) Cmd ¶
func (v *ExternalsCmd) Cmd() *cobra.Command
Cmd exposes the cobra command instance.
func (*ExternalsCmd) Complete ¶
func (v *ExternalsCmd) Complete(_ *config.Config, args []string) error
Complete asserts the required flags are informed, and the last argument is the resource file for signature verification.
func (*ExternalsCmd) Validate ¶
func (v *ExternalsCmd) Validate() error
Validate asserts all the required files exists.
type GenerateCmd ¶
type GenerateCmd struct {
// contains filtered or unexported fields
}
GenerateCmd represents the "generate" subcommand to generate the signature of a resource file.
func (*GenerateCmd) Cmd ¶
func (v *GenerateCmd) Cmd() *cobra.Command
Cmd exposes the cobra command instance.
func (*GenerateCmd) Complete ¶
func (v *GenerateCmd) Complete(_ *config.Config, args []string) error
Complete asserts the required flags are informed, and the last argument is the resource file for signature verification.
func (*GenerateCmd) Run ¶
func (v *GenerateCmd) Run(cfg *config.Config) error
Run wrapper around "cosign generate-blob" command.
func (*GenerateCmd) Validate ¶
func (v *GenerateCmd) Validate() error
Validate asserts all the required files exists.
type GenerateFromExternalCmd ¶
type GenerateFromExternalCmd struct {
// contains filtered or unexported fields
}
GenerateFromExternalCmd represents the "generate" subcommand to generate the signature of a resource file.
func (*GenerateFromExternalCmd) Cmd ¶
func (v *GenerateFromExternalCmd) Cmd() *cobra.Command
Cmd exposes the cobra command instance.
func (*GenerateFromExternalCmd) Complete ¶
func (v *GenerateFromExternalCmd) Complete(_ *config.Config, args []string) error
Complete asserts the required flags are informed, and the last argument is the resource file for signature verification.
func (*GenerateFromExternalCmd) Run ¶
func (v *GenerateFromExternalCmd) Run(cfg *config.Config) error
Run wrapper around "cosign generate-blob" command.
func (*GenerateFromExternalCmd) Validate ¶
func (v *GenerateFromExternalCmd) Validate() error
Validate asserts all the required files exists.
type GitHubMatrixObject ¶
type GitHubMatrixObject struct {
Include []GitHubRunObject `json:"include"`
}
type GitHubRunObject ¶
type LintCmd ¶
type LintCmd struct {
// contains filtered or unexported fields
}
LintCmd "lint" subcommand, to assert the best practices on a Tekton resource file.
type ReleaseCmd ¶
type ReleaseCmd struct {
// contains filtered or unexported fields
}
ReleaseCmd creates a contract (".catalog.yaml") based on Tekton resources files.
func (*ReleaseCmd) Cmd ¶
func (r *ReleaseCmd) Cmd() *cobra.Command
Cmd exposes the cobra command instance.
func (*ReleaseCmd) Complete ¶
func (r *ReleaseCmd) Complete(_ *config.Config, args []string) error
Complete creates the "release" scope by finding all Tekton resource files using the cli args glob pattern(s).
func (*ReleaseCmd) Run ¶
func (r *ReleaseCmd) Run(_ *config.Config) error
Run creates a ".catalog.yaml" (contract file) with the release scope, saves the contract on the location informed by the "--output" flag.
func (*ReleaseCmd) Validate ¶
func (r *ReleaseCmd) Validate() error
Validate assert the release scope is not empty.
type RenderCmd ¶
type RenderCmd struct {
// contains filtered or unexported fields
}
type SignCmd ¶
type SignCmd struct {
// contains filtered or unexported fields
}
SignCmd subcommand "sign" to handles signing contract resources.
func (*SignCmd) Complete ¶
Complete loads the contract file from the location informed on the first argument.
type VerifyCmd ¶
type VerifyCmd struct {
// contains filtered or unexported fields
}
VerifyCmd represents the "verify" subcommand to verify the signature of a resource file.
func (*VerifyCmd) Complete ¶
Complete asserts the required flags are informed, and the last argument is the resource file for signature verification.