stage_manager

package
v1.2.147 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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) ForgetCustomTagsByStageID added in v1.2.83

func (m *Manager) ForgetCustomTagsByStageID(stageID string)

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