Documentation ¶
Index ¶
Constants ¶
View Source
const ( ArtifactJSONSchemaVersion = 1 BlobJSONSchemaVersion = 1 )
Variables ¶
View Source
var ( InvalidURLPattern = xerrors.New("invalid url pattern") ErrNoRpmCmd = xerrors.New("no rpm command") )
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Type string FilePath string Libraries []LibraryInfo }
type ArtifactDetail ¶
type ArtifactDetail struct { OS *OS `json:",omitempty"` Packages []Package `json:",omitempty"` Applications []Application `json:",omitempty"` Configs []Config `json:",omitempty"` // HistoryPackages are packages extracted from RUN instructions HistoryPackages []Package `json:",omitempty"` // Joff additions Manifest v1.Manifest `json:",omitempty"` }
ArtifactDetail is generated by applying blobs
type ArtifactInfo ¶
type ArtifactInfo struct { SchemaVersion int Architecture string Created time.Time DockerVersion string OS string // HistoryPackages are packages extracted from RUN instructions HistoryPackages []Package `json:",omitempty"` Manifest v1.Manifest `json:",omitempty"` }
ArtifactInfo is stored in cache
type ArtifactReference ¶
type ArtifactReference struct { Name string // image name, tar file name, directory or repository name ID string BlobIDs []string RepoTags []string RepoDigests []string Manifest v1.Manifest }
ArtifactReference represents a reference of container image, local filesystem and repository
type BlobInfo ¶
type BlobInfo struct { SchemaVersion int Digest string `json:",omitempty"` DiffID string `json:",omitempty"` OS *OS `json:",omitempty"` PackageInfos []PackageInfo `json:",omitempty"` Applications []Application `json:",omitempty"` Configs []Config `json:",omitempty"` OpaqueDirs []string `json:",omitempty"` WhiteoutFiles []string `json:",omitempty"` }
BlobInfo is stored in cache
type DockerOption ¶
type DockerOption struct { // Auth UserName string Password string // RegistryToken is a bearer token to be sent to a registry RegistryToken string // ECR AwsAccessKey string AwsSecretKey string AwsSessionToken string AwsRegion string // GCP GcpCredPath string InsecureSkipTLSVerify bool NonSSL bool SkipPing bool // this is ignored now Timeout time.Duration }
type LibraryInfo ¶
type LibraryInfo struct { Library godeptypes.Library `json:",omitempty"` Layer Layer `json:",omitempty"` }
type Package ¶
type Package struct { Name string `json:",omitempty"` Version string `json:",omitempty"` Release string `json:",omitempty"` Epoch int `json:",omitempty"` Arch string `json:",omitempty"` SrcName string `json:",omitempty"` SrcVersion string `json:",omitempty"` SrcRelease string `json:",omitempty"` SrcEpoch int `json:",omitempty"` Modularitylabel string `json:",omitempty"` Layer Layer `json:",omitempty"` }
type PackageInfo ¶
type SrcPackage ¶
Click to show internal directories.
Click to hide internal directories.