scan

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommand

func BuildCommand() *cli.Command

BuildCommand - Build CLI application command

Types

type Action

type Action struct {
	Io Io
}

Action - struct for scan action

func (*Action) Scan

func (s *Action) Scan(c *cli.Context) error

Scan - Collect images referenced in all yaml files in the path and create a kustomization file

type Io

type Io interface {
	ListYamlFilesPaths(rootPath string) ([]string, error)
	ReadFile(filename string) ([]byte, error)
	WriteFile(filename string, data []byte, perm os.FileMode) error
}

Io - interface for all io functions used by scan

type IoImpl

type IoImpl struct {
	// contains filtered or unexported fields
}

IoImpl - real io implementation using ioutil and file_utils

func (IoImpl) ListYamlFilesPaths

func (s IoImpl) ListYamlFilesPaths(rootPath string) ([]string, error)

ListYamlFilesPaths - real implementation of ListYamlFilesPaths backed by file_utils

func (IoImpl) ReadFile

func (s IoImpl) ReadFile(filename string) ([]byte, error)

ReadFile - real implementation of ReadFile backed by ioutil

func (IoImpl) WriteFile

func (s IoImpl) WriteFile(filename string, data []byte, perm os.FileMode) error

WriteFile - real implementation of WriteFile backed by ioutil

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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