metadata

package
v0.0.0-...-44f477e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactLabeledMetadata

type ArtifactLabeledMetadata struct {
	Ctx        context.Context
	ArtifactID int64
	LabelID    int64
	Operator   string
}

ArtifactLabeledMetadata is the metadata from which the artifact labeled event can be resolved

func (*ArtifactLabeledMetadata) Resolve

func (al *ArtifactLabeledMetadata) Resolve(event *event.Event) error

Resolve to the event from the metadata

type ChartDeleteMetaData

type ChartDeleteMetaData struct {
	ChartMetaData
}

ChartDeleteMetaData defines meta data of chart delete event

func (*ChartDeleteMetaData) Resolve

func (cd *ChartDeleteMetaData) Resolve(evt *event.Event) error

Resolve chart delete metadata into common chart event

type ChartDownloadMetaData

type ChartDownloadMetaData struct {
	ChartMetaData
}

ChartDownloadMetaData defines meta data of chart download event

func (*ChartDownloadMetaData) Resolve

func (cd *ChartDownloadMetaData) Resolve(evt *event.Event) error

Resolve chart download metadata into common chart event

type ChartMetaData

type ChartMetaData struct {
	ProjectName string
	ChartName   string
	Versions    []string
	OccurAt     time.Time
	Operator    string
}

ChartMetaData defines meta data of chart event

type ChartUploadMetaData

type ChartUploadMetaData struct {
	ChartMetaData
}

ChartUploadMetaData defines meta data of chart upload event

func (*ChartUploadMetaData) Resolve

func (cu *ChartUploadMetaData) Resolve(event *event.Event) error

Resolve chart uploading metadata into common chart event

type CreateProjectEventMetadata

type CreateProjectEventMetadata struct {
	ProjectID int64
	Project   string
	Operator  string
}

CreateProjectEventMetadata is the metadata from which the create project event can be resolved

func (*CreateProjectEventMetadata) Resolve

func (c *CreateProjectEventMetadata) Resolve(event *event.Event) error

Resolve to the event from the metadata

type CreateTagEventMetadata

type CreateTagEventMetadata struct {
	Ctx              context.Context
	Tag              string
	AttachedArtifact *artifact.Artifact
}

CreateTagEventMetadata is the metadata from which the create tag event can be resolved

func (*CreateTagEventMetadata) Resolve

func (c *CreateTagEventMetadata) Resolve(event *event.Event) error

Resolve to the event from the metadata

type DeleteArtifactEventMetadata

type DeleteArtifactEventMetadata struct {
	Ctx      context.Context
	Artifact *artifact.Artifact
	Tags     []string
}

DeleteArtifactEventMetadata is the metadata from which the delete artifact event can be resolved

func (*DeleteArtifactEventMetadata) Resolve

func (d *DeleteArtifactEventMetadata) Resolve(event *event.Event) error

Resolve to the event from the metadata

type DeleteProjectEventMetadata

type DeleteProjectEventMetadata struct {
	ProjectID int64
	Project   string
	Operator  string
}

DeleteProjectEventMetadata is the metadata from which the delete project event can be resolved

func (*DeleteProjectEventMetadata) Resolve

func (d *DeleteProjectEventMetadata) Resolve(event *event.Event) error

Resolve to the event from the metadata

type DeleteRepositoryEventMetadata

type DeleteRepositoryEventMetadata struct {
	Ctx        context.Context
	Repository string
	ProjectID  int64
}

DeleteRepositoryEventMetadata is the metadata from which the delete repository event can be resolved

func (*DeleteRepositoryEventMetadata) Resolve

func (d *DeleteRepositoryEventMetadata) Resolve(event *event.Event) error

Resolve to the event from the metadata

type DeleteTagEventMetadata

type DeleteTagEventMetadata struct {
	Ctx              context.Context
	Tag              string
	AttachedArtifact *artifact.Artifact
}

DeleteTagEventMetadata is the metadata from which the delete tag event can be resolved

func (*DeleteTagEventMetadata) Resolve

func (d *DeleteTagEventMetadata) Resolve(event *event.Event) error

Resolve to the event from the metadata

type PullArtifactEventMetadata

type PullArtifactEventMetadata struct {
	Artifact *artifact.Artifact
	Tag      string
	Operator string
}

PullArtifactEventMetadata is the metadata from which the pull artifact event can be resolved

func (*PullArtifactEventMetadata) Resolve

func (p *PullArtifactEventMetadata) Resolve(event *event.Event) error

Resolve to the event from the metadata

type PushArtifactEventMetadata

type PushArtifactEventMetadata struct {
	Ctx      context.Context
	Artifact *artifact.Artifact
	Tag      string
}

PushArtifactEventMetadata is the metadata from which the push artifact event can be resolved

func (*PushArtifactEventMetadata) Resolve

func (p *PushArtifactEventMetadata) Resolve(event *event.Event) error

Resolve to the event from the metadata

type QuotaMetaData

type QuotaMetaData struct {
	Project  *proModels.Project
	RepoName string
	Tag      string
	Digest   string
	// used to define the event topic
	Level int
	// the msg contains the limitation and current usage of quota
	Msg     string
	OccurAt time.Time
}

QuotaMetaData defines quota related event data

func (*QuotaMetaData) Resolve

func (q *QuotaMetaData) Resolve(evt *event.Event) error

Resolve quota exceed into common image event

type ReplicationMetaData

type ReplicationMetaData struct {
	ReplicationTaskID int64
	Status            string
}

ReplicationMetaData defines replication related event data

func (*ReplicationMetaData) Resolve

func (r *ReplicationMetaData) Resolve(evt *event.Event) error

Resolve replication metadata into replication event

type RetentionMetaData

type RetentionMetaData struct {
	Total    int
	Retained int
	Deleted  []*selector.Result
	Status   string
	TaskID   int64
}

RetentionMetaData defines tag retention related event data

func (*RetentionMetaData) Resolve

func (r *RetentionMetaData) Resolve(evt *event.Event) error

Resolve tag retention metadata into tag retention event

type ScanImageMetaData

type ScanImageMetaData struct {
	Artifact *v1.Artifact
	Status   string
}

ScanImageMetaData defines meta data of image scanning event

func (*ScanImageMetaData) Resolve

func (si *ScanImageMetaData) Resolve(evt *event.Event) error

Resolve image scanning metadata into common chart event

Jump to

Keyboard shortcuts

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