Documentation ¶
Index ¶
- func ID(img v1.Image) (string, error)
- func LayerIDs(img v1.Image) ([]string, error)
- func NewFromContainerdDaemon(ctx context.Context, imageName string) (types.Image, func(), error)
- func NewFromContainerdHostFS(imageID string, config *hostfs.ContainerdHostFSConfig) (types.Image, func(), error)
- func NewFromDockerDaemon(imageName string, ref name.Reference) (types.Image, func(), error)
- func NewFromRemote(ctx context.Context, imageName string, option DockerOption) (types.Image, error)
- type Artifact
- type ArtifactOption
- type ArtifactReference
- type DockerOption
- type Image
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromContainerdDaemon ¶
func NewFromContainerdHostFS ¶
func NewFromDockerDaemon ¶
func NewFromRemote ¶
Types ¶
type Artifact ¶
type Artifact struct {
// contains filtered or unexported fields
}
func NewArtifact ¶
func NewArtifact(img types.Image, log logrus.FieldLogger, c blobscache.Client, opt artifact.Option) (*Artifact, error)
type ArtifactOption ¶
type ArtifactReference ¶
type ArtifactReference struct { BlobsInfo []types.BlobInfo ConfigFile *v1.ConfigFile ArtifactInfo *types.ArtifactInfo OsInfo *types.OS }
type DockerOption ¶
type DockerOption struct { // Auth UserName string `yaml:"user_name"` Password string `yaml:"password"` // RegistryToken is a bearer token to be sent to a registry RegistryToken string `yaml:"registry_token"` // ECR AwsAccessKey string `yaml:"aws_access_key"` AwsSecretKey string `yaml:"aws_secret_key"` AwsSessionToken string `yaml:"aws_session_token"` AwsRegion string `yaml:"aws_region"` // GCP GcpCredPath string `yaml:"gcp_cred_path"` // SSL/TLS InsecureSkipTLSVerify bool `yaml:"insecure_skip_tls_verify"` NonSSL bool `yaml:"non_ssl"` }
Click to show internal directories.
Click to hide internal directories.