Documentation
¶
Index ¶
- Variables
- func GetCustomTagsMetadata(ctx context.Context, storageManager manager.StorageManagerInterface) (map[string][]string, error)
- type GitRepo
- type Manager
- func (m *Manager) ContainsStageDescByStageID(stageID string) bool
- func (m *Manager) ForgetCustomTagsByStageID(stageID string)
- func (m *Manager) ForgetDeletedFinalStageDescSet(stageDescSet image.StageDescSet)
- func (m *Manager) ForgetDeletedStageDescSet(stageDescSet image.StageDescSet)
- func (m *Manager) GetCustomTagsMetadata() map[string][]string
- func (m *Manager) GetFinalProtectedStageDescSet() image.StageDescSet
- func (m *Manager) GetFinalProtectedStageDescSetByReason() map[*protectionReason]image.StageDescSet
- func (m *Manager) GetFinalStageDescSet() image.StageDescSet
- func (m *Manager) GetImageStageIDCommitListToCleanup() map[string]map[string][]string
- func (m *Manager) GetNonexistentStageIDCommitList(imageName string) map[string][]string
- func (m *Manager) GetProtectedStageDescSet() image.StageDescSet
- func (m *Manager) GetProtectedStageDescSetByReason() map[*protectionReason]image.StageDescSet
- func (m *Manager) GetStageDescByStageID(stageID string) *image.StageDesc
- func (m *Manager) GetStageDescSet() image.StageDescSet
- func (m *Manager) GetStageIDCommitListByNonexistentImage() map[string]map[string][]string
- func (m *Manager) GetStageIDCommitListToCleanup(imageName string) map[string][]string
- func (m *Manager) GetStageIDNonexistentCommitList(imageName string) map[string][]string
- func (m *Manager) InitCustomTagsMetadata(ctx context.Context, storageManager manager.StorageManagerInterface) error
- func (m *Manager) InitFinalStageDescSet(ctx context.Context, storageManager manager.StorageManagerInterface) error
- func (m *Manager) InitImagesMetadata(ctx context.Context, storageManager manager.StorageManagerInterface, ...) error
- func (m *Manager) InitStageDescSet(ctx context.Context, storageManager manager.StorageManagerInterface) error
- func (m *Manager) MarkFinalStageDescAsProtected(stageDesc *image.StageDesc, reason *protectionReason, forceReason bool)
- func (m *Manager) MarkStageDescAsProtected(stageDesc *image.StageDesc, reason *protectionReason, forceReason bool)
- func (m *Manager) MarkStageDescAsProtectedByStageID(stageID string, reason *protectionReason, forceReason bool)
Constants ¶
This section is empty.
Variables ¶
var ( ProtectionReasonKubernetesBasedPolicy = newProtectionReason("used in Kubernetes") ProtectionReasonGitPolicy = newProtectionReason("git policy") ProtectionReasonBuiltWithinLastNHoursPolicy = newProtectionReason("built within last N hours") ProtectionReasonImportSource = newProtectionReason("import source") ProtectionReasonDependencySource = newProtectionReason("dependency source") ProtectionReasonAncestor = newProtectionReason("ancestor") ProtectionReasonImageIndexPlatform = newProtectionReason("image index platform") ProtectionReasonFoundInRepo = newProtectionReason("found in repo") ProtectionReasonKeepList = newProtectionReason("keep list") )
Functions ¶
func GetCustomTagsMetadata ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() Manager
func (*Manager) ContainsStageDescByStageID ¶
func (*Manager) ForgetCustomTagsByStageID ¶
func (*Manager) ForgetDeletedFinalStageDescSet ¶
func (m *Manager) ForgetDeletedFinalStageDescSet(stageDescSet image.StageDescSet)
func (*Manager) ForgetDeletedStageDescSet ¶
func (m *Manager) ForgetDeletedStageDescSet(stageDescSet image.StageDescSet)
func (*Manager) GetCustomTagsMetadata ¶
func (*Manager) GetFinalProtectedStageDescSet ¶
func (m *Manager) GetFinalProtectedStageDescSet() image.StageDescSet
func (*Manager) GetFinalProtectedStageDescSetByReason ¶
func (m *Manager) GetFinalProtectedStageDescSetByReason() map[*protectionReason]image.StageDescSet
func (*Manager) GetFinalStageDescSet ¶
func (m *Manager) GetFinalStageDescSet() image.StageDescSet
func (*Manager) GetImageStageIDCommitListToCleanup ¶
GetImageStageIDCommitListToCleanup method returns existing stage IDs and related existing commits (for each managed image)
func (*Manager) GetNonexistentStageIDCommitList ¶
GetNonexistentStageIDCommitList method returns nonexistent stage IDs and all related commits for certain image
func (*Manager) GetProtectedStageDescSet ¶
func (m *Manager) GetProtectedStageDescSet() image.StageDescSet
func (*Manager) GetProtectedStageDescSetByReason ¶
func (m *Manager) GetProtectedStageDescSetByReason() map[*protectionReason]image.StageDescSet
func (*Manager) GetStageDescByStageID ¶
func (*Manager) GetStageDescSet ¶
func (m *Manager) GetStageDescSet() image.StageDescSet
func (*Manager) GetStageIDCommitListByNonexistentImage ¶
GetStageIDCommitListByNonexistentImage method returns all stage IDs and related commits for each nonexistent image
func (*Manager) GetStageIDCommitListToCleanup ¶
GetStageIDCommitListToCleanup method is shortcut for GetImageStageIDCommitListToCleanup
func (*Manager) GetStageIDNonexistentCommitList ¶
GetStageIDNonexistentCommitList method returns stage IDs and related nonexistent commits for certain image