cmd

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: Apache-2.0 Imports: 60 Imported by: 0

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdBuild added in v0.4.0

func NewCmdBuild(opts *opts.GlobalOptions, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdDebug

func NewCmdDebug(opts *opts.GlobalOptions, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdDev

func NewCmdDev(streams genericclioptions.IOStreams) *cobra.Command

func NewCmdLogin added in v0.4.0

func NewCmdLogin(opts *opts.GlobalOptions, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdLogout added in v0.4.0

func NewCmdLogout(opts *opts.GlobalOptions, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdPrepare added in v0.2.0

func NewCmdPrepare(opts *opts.GlobalOptions, streams genericclioptions.IOStreams) *cobra.Command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

Types

type BuildConfig added in v0.5.0

type BuildConfig map[string]DirBuildContext

mapping from build directory to DirBuildContext

type BuildContext added in v0.5.0

type BuildContext struct {
	Dockerfile     string   `yaml:"dockerfile,omitempty"`
	Tag            string   `yaml:"tag,omitempty"`
	AutoTagPattern string   `yaml:"auto_tag_pattern,omitempty"`
	LocalDir       string   `yaml:"local_dir,omitempty"`
	TargetStage    string   `yaml:"target_stage,omitempty"`
	Platform       string   `yaml:"platform,omitempty"`
	BuildArgs      []string `yaml:"build_args,omitempty"`

	PathToManifest  string `yaml:"path_to_manifest,omitempty"`
	BuildContextDir string `yaml:"build_context_dir,omitempty"`

	Count int `yaml:"count"`
	// contains filtered or unexported fields
}

type BuildOptions added in v0.2.0

type BuildOptions struct {
	*opts.GlobalOptions

	BuildContext
	// contains filtered or unexported fields
}

func (*BuildOptions) Complete added in v0.2.0

func (o *BuildOptions) Complete(cmd *cobra.Command, args []string) error

func (*BuildOptions) Run added in v0.2.0

func (o *BuildOptions) Run(ctx context.Context) (err error)

func (*BuildOptions) Validate added in v0.2.0

func (o *BuildOptions) Validate() error

type CredOptions added in v0.4.0

type CredOptions struct {
	*opts.GlobalOptions
	// contains filtered or unexported fields
}

func (*CredOptions) Apply added in v0.4.0

func (o *CredOptions) Apply(ops ...command.DockerCliOption) error

func (*CredOptions) BuildKitEnabled added in v0.5.0

func (o *CredOptions) BuildKitEnabled() (bool, error)

func (*CredOptions) Client added in v0.4.0

func (o *CredOptions) Client() dockerCli.APIClient

func (*CredOptions) Complete added in v0.4.0

func (o *CredOptions) Complete(cmd *cobra.Command, args []string) error

func (*CredOptions) ConfigFile added in v0.4.0

func (o *CredOptions) ConfigFile() *configfile.ConfigFile

func (*CredOptions) ContentTrustEnabled added in v0.4.0

func (o *CredOptions) ContentTrustEnabled() bool

func (*CredOptions) ContextStore added in v0.4.0

func (o *CredOptions) ContextStore() ctxStore.Store

func (*CredOptions) CurrentContext added in v0.4.0

func (o *CredOptions) CurrentContext() string

func (*CredOptions) DefaultVersion added in v0.4.0

func (o *CredOptions) DefaultVersion() string

func (*CredOptions) DockerEndpoint added in v0.4.0

func (o *CredOptions) DockerEndpoint() docker.Endpoint

func (*CredOptions) Err added in v0.4.0

func (o *CredOptions) Err() io.Writer

func (*CredOptions) In added in v0.4.0

func (o *CredOptions) In() *streams.In

func (*CredOptions) Login added in v0.4.0

func (o *CredOptions) Login(ctx context.Context) (err error)

func (*CredOptions) Logout added in v0.4.0

func (o *CredOptions) Logout(_ context.Context) (err error)

func (*CredOptions) ManifestStore added in v0.4.0

func (o *CredOptions) ManifestStore() manifestStore.Store

func (*CredOptions) NotaryClient added in v0.4.0

func (o *CredOptions) NotaryClient(imgRefAndAuth trust.ImageRefAndAuth, actions []string) (notaryCli.Repository, error)

func (*CredOptions) Out added in v0.4.0

func (o *CredOptions) Out() *streams.Out

func (*CredOptions) RegistryClient added in v0.4.0

func (o *CredOptions) RegistryClient(bool) client.RegistryClient

func (*CredOptions) ServerInfo added in v0.4.0

func (o *CredOptions) ServerInfo() command.ServerInfo

func (*CredOptions) SetIn added in v0.4.0

func (o *CredOptions) SetIn(in *streams.In)

func (*CredOptions) Validate added in v0.4.0

func (o *CredOptions) Validate() error

type DebugOptions

type DebugOptions struct {
	*opts.GlobalOptions
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func NewDebugOptions

func NewDebugOptions(opts *opts.GlobalOptions, streams genericclioptions.IOStreams) *DebugOptions

func (*DebugOptions) Complete

func (o *DebugOptions) Complete(_ *cobra.Command, args []string) error

func (*DebugOptions) Run

func (o *DebugOptions) Run(ctx context.Context, cmd *cobra.Command) error

func (*DebugOptions) Validate

func (o *DebugOptions) Validate() error

type DirBuildContext added in v0.5.0

type DirBuildContext map[string]BuildContext

mapping from dockerfile+stage to BuildContext

type PrepareOptions added in v0.2.0

type PrepareOptions struct {
	*opts.GlobalOptions
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func (*PrepareOptions) Complete added in v0.2.0

func (o *PrepareOptions) Complete(cmd *cobra.Command, args []string) (err error)

func (*PrepareOptions) Run added in v0.2.0

func (o *PrepareOptions) Run(ctx context.Context) error

func (*PrepareOptions) Validate added in v0.2.0

func (o *PrepareOptions) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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