kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/set/set_image.go

type SetImageOptions

type ImageResolverFunc

var ImageResolver

var imageResources

var imageLong

var imageExample

// NewImageOptions returns an initialized SetImageOptions instance
func NewImageOptions(streams genericiooptions.IOStreams) *SetImageOptions {}

// NewCmdImage returns an initialized Command instance for the 'set image' sub command
func NewCmdImage(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command {}

// Complete completes all required options
func (o *SetImageOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error {}

// Validate makes sure provided values in SetImageOptions are valid
func (o *SetImageOptions) Validate() error {}

// Run performs the execution of 'set image' sub command
func (o *SetImageOptions) Run() error {}

func setImage(containers []v1.Container, containerName string, image string) bool {}

// getResourcesAndImages retrieves resources and container name:images pair from given args
func getResourcesAndImages(args []string) (resources []string, containerImages map[string]string, err error) {}

func hasWildcardKey(containerImages map[string]string) bool {}

// implements ImageResolver
func resolveImageFunc(in string) (string, error) {}