utils

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const DockerAuthUrl = "https://index.docker.io/v1/"
View Source
const DockerDomain = "docker.io"
View Source
const DockerHubUrl = "https://hub.docker.com/"

Variables

This section is empty.

Functions

func Build

func Build(imageData *model.ImageData) error

Build the container using the native docker api

func BuildImages

func BuildImages(imagesToBuild []*model.ImageData) error

func Contains

func Contains(slice []string, element string) bool

func DisplayChildren

func DisplayChildren(imageToDisplay []*model.ImageData)

func ExcludeExtFileAndMergePath

func ExcludeExtFileAndMergePath(filesUpdated []string) []string

exclude extension file + find a dockerfile path for multiple similar sub dir

func FindDockerFile

func FindDockerFile(searchPath string, root string) (string, error)

func GenerateReadmeImage

func GenerateReadmeImage(image *model.ImageData, data []byte) error

func GenerateReadmeImages

func GenerateReadmeImages(imagesToGenerate []*model.ImageData, template []byte) error

func GenerateReadmeIndex

func GenerateReadmeIndex(imagesToGenerate []*model.ImageData, data []byte) error

func GetAllImagesData

func GetAllImagesData(dirPath string) []*model.ImageData

func GetCommitFiles

func GetCommitFiles(repositoryPath string, hash string) ([]string, error)

func GetImageTemplate

func GetImageTemplate() ([]byte, error)

func GetIndexTemplate

func GetIndexTemplate() ([]byte, error)

func GetStatus

func GetStatus(repositoryPath string) ([]string, error)

func GetUrl added in v1.1.0

func GetUrl(currentImage model.ImageData, destImage model.ImageData) (string, error)

func MarkImagesToBuild

func MarkImagesToBuild(imagePathsToBuild []string) []*model.ImageData

mark images to build

func Push

func Push(tag string) error

func PushImages

func PushImages(imagesToBuild []*model.ImageData) error

func SortImages

func SortImages(imagesToSort []*model.ImageData) []*model.ImageData

Sort with parent

Types

type AuthConfig

type AuthConfig struct {
	AuthConfigs map[string]types.AuthConfig `json:"auths,omitempty"`
	HttpHeaders struct {
		UserAgent string `json:"User-Agent,omitempty"`
	}
}

func GetAuthConfig

func GetAuthConfig() (AuthConfig, error)

func (*AuthConfig) GetAuthConfigs

func (authConfig *AuthConfig) GetAuthConfigs() map[string]types.AuthConfig

type ImageType added in v1.1.0

type ImageType int
const (
	UNDEFINED ImageType = iota
	OFFICIAL
	UNOFFICIAL
	REGISTRY
)

func GetImageType added in v1.1.0

func GetImageType(imageData model.ImageData) ImageType

Jump to

Keyboard shortcuts

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