stage_manager

package
v1.2.13-test1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) 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() []*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) InitImagesMetadata

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

func (*Manager) InitStages

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

func (*Manager) MarkStageAsProtected

func (m *Manager) MarkStageAsProtected(stageID string)

Jump to

Keyboard shortcuts

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