Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "oci", Usage: "manage OCI artifacts", Commands: []*cli.Command{ CommandBuild, }, }
View Source
var CommandBuild = &cli.Command{ Name: "build", Usage: "build image on cluster", Flags: []cli.Flag{ &cli.StringFlag{ Name: "image", Usage: "image name (format: registry/repository:tag)", }, &cli.StringFlag{ Name: "username", Usage: "registry username", }, &cli.StringFlag{ Name: "password", Usage: "registry password", }, &cli.BoolFlag{ Name: "insecure", Usage: "use insecure registry", }, }, Action: func(ctx context.Context, cmd *cli.Command) error { client := app.MustClient(ctx, cmd) path, err := build.ParsePath(cmd.Args().Get(0)) if err != nil { return err } image, err := build.ParseImage(cmd.String("image")) if err != nil { return err } image.Username = cmd.String("username") image.Password = cmd.String("password") image.Insecure = cmd.Bool("insecure") return build.Run(ctx, client, "", image, path, "") }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.