apk

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Copyright 2023 Chainguard, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	DefaultKeyRingPath       = "/etc/apk/keys"
	DefaultSystemKeyRingPath = "/usr/share/apk/keys/"
)

Variables

This section is empty.

Functions

func AdditionalTags added in v0.6.0

func AdditionalTags(fsys fs.FS, opts options.Options) ([]string, error)

AdditionalTags is a helper function used in conjunction with the --package-version-tag flag If --package-version-tag is set to a package name (e.g. go), then this function returns a list of all images that should be published with the associated version of that package tagged (e.g. 1.18)

Types

type APK

type APK struct {
	Options options.Options
	// contains filtered or unexported fields
}

func New

func New() (*APK, error)

func NewWithOptions

func NewWithOptions(fsys apkfs.FullFS, o options.Options) (*APK, error)

func (*APK) GetInstalled added in v0.7.0

func (a *APK) GetInstalled() ([]*apkimpl.InstalledPackage, error)

func (*APK) Initialize

func (a *APK) Initialize(ic *types.ImageConfiguration) error

Initialize sets the image in Context.WorkDir according to the image configuration, and does everything short of installing the packages.

func (*APK) Install added in v0.7.0

func (a *APK) Install() error

Install install packages. Only works if already initialized.

func (*APK) ListInitFiles added in v0.7.0

func (a *APK) ListInitFiles() []tar.Header

func (*APK) ResolvePackages added in v0.7.0

func (a *APK) ResolvePackages() (toInstall []*repository.RepositoryPackage, conflicts []string, err error)

ResolvePackages gets list of packages that should be installed

func (*APK) SetImplementation

func (a *APK) SetImplementation(impl apkImplementation)

type Option

type Option func(*APK) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
fs

Jump to

Keyboard shortcuts

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