Documentation ¶
Index ¶
- Variables
- func AllAppProcesses(appName string) ([]string, error)
- func AppCurrentBuilderImageName(appName string) (string, error)
- func AppCurrentImageName(appName string) (string, error)
- func AppCurrentImageVersion(appName string) (string, error)
- func AppNewBuilderImageName(appName, teamOwner, tag string) (string, error)
- func AppNewImageName(appName string) (string, error)
- func AppendAppBuilderImageName(appName, imageID string) error
- func AppendAppImageName(appName, imageID string) error
- func DeleteAllAppImageNames(appName string) error
- func GetAppImageBySuffix(appName, imageIdSuffix string) (string, error)
- func GetBuildImage(app provision.App) (string, error)
- func GetImageTsuruYamlData(imageName string) (provTypes.TsuruYamlData, error)
- func GetImageWebProcessName(imageName string) (string, error)
- func GetProcessesFromProcfile(strProcfile string) map[string][]string
- func ImageCustomDataColl() (*storage.Collection, error)
- func ImageHistorySize() int
- func ListAllAppImages() (map[string]AllAppImages, error)
- func ListAppBuilderImages(appName string) ([]string, error)
- func ListAppImages(appName string) ([]string, error)
- func ListValidAppImages(appName string) ([]string, error)
- func PlatformImageService() (imageTypes.PlatformImageService, error)
- func PullAppImageNames(appName string, images []string) error
- func SaveImageCustomData(imageName string, customData map[string]interface{}) error
- func SplitImageName(imageName string) (repo, tag string)
- func UpdateAppImageRollback(img, reason string, disableRollback bool) error
- type AllAppImages
- type ImageMetadata
- type ImageNotFoundErr
- type InvalidVersionErr
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoImagesAvailable = errors.New("no images available for app")
)
Functions ¶
func AllAppProcesses ¶
func AppCurrentImageName ¶
func AppCurrentImageVersion ¶
func AppNewBuilderImageName ¶
func AppNewImageName ¶
func AppendAppImageName ¶
func DeleteAllAppImageNames ¶
func GetAppImageBySuffix ¶
func GetBuildImage ¶
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 ImageCustomDataColl ¶
func ImageCustomDataColl() (*storage.Collection, error)
func ImageHistorySize ¶
func ImageHistorySize() int
func ListAllAppImages ¶
func ListAllAppImages() (map[string]AllAppImages, error)
func ListAppBuilderImages ¶
func ListAppImages ¶
func ListValidAppImages ¶
func PlatformImageService ¶
func PlatformImageService() (imageTypes.PlatformImageService, error)
func PullAppImageNames ¶
func SaveImageCustomData ¶
func SplitImageName ¶
func UpdateAppImageRollback ¶
Types ¶
type AllAppImages ¶
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
Click to show internal directories.
Click to hide internal directories.