Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Builder Type Ko = "ko" Docker = "docker" // Docker constant variables Image = "function:latest" DockerfilePath = "Dockerfile" BuiltinDockerfilePath = "embed/Dockerfile" // Ko constant variables KoDockerRepoEnvVar = "KO_DOCKER_REPO" KoLocalRepo = "ko.local" )
View Source
const ( DefaultFnPkg = "https://github.com/GoogleContainerTools/kpt-functions-sdk.git/go/get-started@master" DefaultPkgName = "function" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildRunner ¶
type BuildRunner struct { Command *cobra.Command BuilderType string Tag string Ko *KoBuilder Docker *DockerBuilder // contains filtered or unexported fields }
func NewBuildRunner ¶
func NewBuildRunner(ctx context.Context) *BuildRunner
type DockerBuilder ¶
func (*DockerBuilder) Build ¶
func (r *DockerBuilder) Build() error
func (*DockerBuilder) Validate ¶
func (r *DockerBuilder) Validate() error
type InitRunner ¶
type InitRunner struct { Command *cobra.Command FnName string FnPkgPath string // contains filtered or unexported fields }
InitRunner initializes a KRM function project from a scaffolded `kpt pkg`.
func NewInitRunner ¶
func NewInitRunner(ctx context.Context) *InitRunner
func (*InitRunner) GetFnPackage ¶
func (r *InitRunner) GetFnPackage() error
Click to show internal directories.
Click to hide internal directories.