stage_manager

package
v1.2.77 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCustomTagsMetadata added in v1.2.28

func GetCustomTagsMetadata(ctx context.Context, storageManager manager.StorageManagerInterface) (stageIDCustomTagList map[string][]string, err error)

Types

type GitRepo

type GitRepo interface {
	IsCommitExists(ctx context.Context, commit string) (bool, error)
}

type Manager

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

func NewManager

func NewManager() Manager

func (*Manager) ForgetDeletedFinalStages added in v1.2.16

func (m *Manager) ForgetDeletedFinalStages(stages []*image.StageDescription)

func (*Manager) ForgetDeletedStages added in v1.2.16

func (m *Manager) ForgetDeletedStages(stages []*image.StageDescription)

func (*Manager) GetCustomTagsMetadata added in v1.2.28

func (m *Manager) GetCustomTagsMetadata() map[string][]string

func (*Manager) GetFinalStageDescriptionList added in v1.2.16

func (m *Manager) GetFinalStageDescriptionList(opts StageDescriptionListOptions) []*image.StageDescription

func (*Manager) GetFinalStageIDList added in v1.2.16

func (m *Manager) GetFinalStageIDList() []string

func (*Manager) GetImageStageIDCommitListToCleanup

func (m *Manager) GetImageStageIDCommitListToCleanup() map[string]map[string][]string

GetImageStageIDCommitListToCleanup method returns existing stage IDs and related existing commits (for each managed image)

func (*Manager) GetNonexistentStageIDCommitList

func (m *Manager) GetNonexistentStageIDCommitList(imageName string) map[string][]string

GetNonexistentStageIDCommitList method returns nonexistent stage IDs and all related commits for certain image

func (*Manager) GetProtectedStageDescriptionList

func (m *Manager) GetProtectedStageDescriptionList() []*image.StageDescription

func (*Manager) GetStageDescriptionList

func (m *Manager) GetStageDescriptionList(opts StageDescriptionListOptions) []*image.StageDescription

func (*Manager) GetStageIDCommitListByNonexistentImage

func (m *Manager) GetStageIDCommitListByNonexistentImage() map[string]map[string][]string

GetStageIDCommitListByNonexistentImage method returns all stage IDs and related commits for each nonexistent image

func (*Manager) GetStageIDCommitListToCleanup

func (m *Manager) GetStageIDCommitListToCleanup(imageName string) map[string][]string

GetStageIDCommitListToCleanup method is shortcut for GetImageStageIDCommitListToCleanup

func (*Manager) GetStageIDList

func (m *Manager) GetStageIDList() []string

func (*Manager) GetStageIDNonexistentCommitList

func (m *Manager) GetStageIDNonexistentCommitList(imageName string) map[string][]string

GetStageIDNonexistentCommitList method returns stage IDs and related nonexistent commits for certain image

func (*Manager) InitCustomTagsMetadata added in v1.2.28

func (m *Manager) InitCustomTagsMetadata(ctx context.Context, storageManager manager.StorageManagerInterface) error

func (*Manager) InitFinalStages added in v1.2.16

func (m *Manager) InitFinalStages(ctx context.Context, storageManager manager.StorageManagerInterface) error

func (*Manager) InitImagesMetadata

func (m *Manager) InitImagesMetadata(ctx context.Context, storageManager manager.StorageManagerInterface, localGit GitRepo, projectName string, imageNameList []string) error

func (*Manager) InitStages

func (m *Manager) InitStages(ctx context.Context, storageManager manager.StorageManagerInterface) error

func (*Manager) IsStageExist added in v1.2.28

func (m *Manager) IsStageExist(stageID string) bool

func (*Manager) MarkFinalStageAsProtected added in v1.2.16

func (m *Manager) MarkFinalStageAsProtected(stageID string)

func (*Manager) MarkStageAsProtected

func (m *Manager) MarkStageAsProtected(stageID string)

type StageDescriptionListOptions added in v1.2.16

type StageDescriptionListOptions struct {
	ExcludeProtected bool
	OnlyProtected    bool
}

Jump to

Keyboard shortcuts

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