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
- func AdditionalTags(fsys fs.FS, opts options.Options) ([]string, error)
- type APK
- func (a *APK) GetInstalled() ([]*apkimpl.InstalledPackage, error)
- func (a *APK) Initialize(ic *types.ImageConfiguration) error
- func (a *APK) Install() error
- func (a *APK) ListInitFiles() []tar.Header
- func (a *APK) ResolvePackages() (toInstall []*repository.RepositoryPackage, conflicts []string, err error)
- func (a *APK) SetImplementation(impl apkImplementation)
- type Option
Constants ¶
const ( DefaultKeyRingPath = "/etc/apk/keys" DefaultSystemKeyRingPath = "/usr/share/apk/keys/" )
Variables ¶
This section is empty.
Functions ¶
func AdditionalTags ¶ added in v0.6.0
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 ¶
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) ListInitFiles ¶ added in v0.7.0
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)