Versions in this module Expand all Collapse all v0 v0.11.0 Jan 19, 2023 v0.10.0 Sep 2, 2022 v0.9.1 Jul 8, 2022 v0.9.0 Jul 5, 2022 Changes in this version + type Artifact struct + Digest string + ExtraAttrs struct{ ... } + ID int64 + Icon string + ManifestMediaType string + MediaType string + ProjectID int64 + PullTime time.Time + PushTime time.Time + References []ArtifactReference + RepositoryID int64 + ScanOverview map[string]ArtifactScanOverview + Size int64 + Tags []ArtifactTag + Type string + type ArtifactReference struct + ChildDigest string + ChildID int64 + ParentID int64 + Platform struct{ ... } + Urls []string + type ArtifactScanOverview struct + CompletePercent int64 + Duration int64 + EndTime time.Time + ReportID string + ScanStatus string + Severity string + StartTime time.Time + type ArtifactTag struct + ArtifactID int64 + ID int64 + Immutable bool + Name string + PullTime time.Time + PushTime time.Time + RepositoryID int64 + Signed bool + type ArtifactsData struct + Artifacts []Artifact + Total int64 + type BuildHistoryItem struct + Created time.Time + CreatedBy string + EmptyLayer bool + type Config struct + Address string + Password string + Token string + Username string + type Instance interface + GetArtifact func(ctx context.Context, projectName, repositoryName, artifactReference string) (*Artifact, error) + GetArtifacts func(ctx context.Context, projectName, repositoryName, query, page, pageSize string) (*ArtifactsData, error) + GetBuildHistory func(ctx context.Context, projectName, repositoryName, artifactReference string) ([]BuildHistoryItem, error) + GetName func() string + GetProjects func(ctx context.Context, page, pageSize string) (*ProjectsData, error) + GetRepositories func(ctx context.Context, projectName, query, page, pageSize string) (*RepositoriesData, error) + GetVulnerabilities func(ctx context.Context, projectName, repositoryName, artifactReference string) (map[string]Vulnerability, error) + func New(name string, options map[string]any) (Instance, error) + type MockInstance struct + func NewMockInstance(t NewMockInstanceT) *MockInstance + func (_m *MockInstance) GetArtifact(ctx context.Context, projectName string, repositoryName string, ...) (*Artifact, error) + func (_m *MockInstance) GetArtifacts(ctx context.Context, projectName string, repositoryName string, query string, ...) (*ArtifactsData, error) + func (_m *MockInstance) GetBuildHistory(ctx context.Context, projectName string, repositoryName string, ...) ([]BuildHistoryItem, error) + func (_m *MockInstance) GetName() string + func (_m *MockInstance) GetProjects(ctx context.Context, page string, pageSize string) (*ProjectsData, error) + func (_m *MockInstance) GetRepositories(ctx context.Context, projectName string, query string, page string, ...) (*RepositoriesData, error) + func (_m *MockInstance) GetVulnerabilities(ctx context.Context, projectName string, repositoryName string, ...) (map[string]Vulnerability, error) + type NewMockInstanceT interface + Cleanup func(func()) + type Project struct + ChartCount int64 + Deleted bool + Metadata struct{ ... } + Name string + ProjectID int64 + RegistryID int64 + RepoCount int64 + type ProjectsData struct + Projects []Project + Total int64 + type RepositoriesData struct + Repositories []Repository + Total int64 + type Repository struct + ArtifactCount int64 + CreationTime string + ID int64 + Name string + ProjectID int64 + PullCount int64 + UpdateTime time.Time + type ResponseError struct + Errors []struct{ ... } + type Vulnerability struct + GeneratedAt time.Time + Scanner struct{ ... } + Severity string + Vulnerabilities []struct{ ... }