image

package
v0.0.0-...-9451de5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoImagesAvailable = errors.New("no images available for app")
)

Functions

func AllAppProcesses

func AllAppProcesses(appName string) ([]string, error)

func AppCurrentBuilderImageName

func AppCurrentBuilderImageName(appName string) (string, error)

func AppCurrentImageName

func AppCurrentImageName(appName string) (string, error)

func AppCurrentImageVersion

func AppCurrentImageVersion(appName string) (string, error)

func AppNewBuilderImageName

func AppNewBuilderImageName(appName, teamOwner, tag string) (string, error)

func AppNewImageName

func AppNewImageName(appName string) (string, error)

func AppendAppBuilderImageName

func AppendAppBuilderImageName(appName, imageID string) error

func AppendAppImageName

func AppendAppImageName(appName, imageID string) error

func DeleteAllAppImageNames

func DeleteAllAppImageNames(appName string) error

func GetAppImageBySuffix

func GetAppImageBySuffix(appName, imageIdSuffix string) (string, error)

func GetBuildImage

func GetBuildImage(app provision.App) (string, error)

GetBuildImage returns the image name from app or plaftorm. the platform image will be returned if: * there are no containers; * the container have an empty image name; * the deploy number is multiple of 10. in all other cases the app image name will be returned.

func GetImageTsuruYamlData

func GetImageTsuruYamlData(imageName string) (provTypes.TsuruYamlData, error)

func GetImageWebProcessName

func GetImageWebProcessName(imageName string) (string, error)

func GetProcessesFromProcfile

func GetProcessesFromProcfile(strProcfile string) map[string][]string

func ImageCustomDataColl

func ImageCustomDataColl() (*storage.Collection, error)

func ImageHistorySize

func ImageHistorySize() int

func ListAllAppImages

func ListAllAppImages() (map[string]AllAppImages, error)

func ListAppBuilderImages

func ListAppBuilderImages(appName string) ([]string, error)

func ListAppImages

func ListAppImages(appName string) ([]string, error)

func ListValidAppImages

func ListValidAppImages(appName string) ([]string, error)

func PlatformImageService

func PlatformImageService() (imageTypes.PlatformImageService, error)

func PullAppImageNames

func PullAppImageNames(appName string, images []string) error

func SaveImageCustomData

func SaveImageCustomData(imageName string, customData map[string]interface{}) error

func SplitImageName

func SplitImageName(imageName string) (repo, tag string)

func UpdateAppImageRollback

func UpdateAppImageRollback(img, reason string, disableRollback bool) error

Types

type AllAppImages

type AllAppImages struct {
	DeployImages  []string
	BuilderImages []string
}

type ImageMetadata

type ImageMetadata struct {
	Name            string `bson:"_id"`
	CustomData      map[string]interface{}
	LegacyProcesses map[string]string   `bson:"processes"`
	Processes       map[string][]string `bson:"processes_list"`
	ExposedPorts    []string
	DisableRollback bool
	Reason          string
}

func GetImageMetaData

func GetImageMetaData(imageName string) (ImageMetadata, error)

func (*ImageMetadata) Save

func (i *ImageMetadata) Save() error

type ImageNotFoundErr

type ImageNotFoundErr struct {
	App, Image string
}

func (*ImageNotFoundErr) Error

func (i *ImageNotFoundErr) Error() string

type InvalidVersionErr

type InvalidVersionErr struct {
	Image string
}

func (*InvalidVersionErr) Error

func (i *InvalidVersionErr) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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