blueprint

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BLUEPRINT_MIMETYPE_LEGACY            = "application/vnd.gardener.landscaper.blueprint.layer.v1.tar"
	BLUEPRINT_MIMETYPE_LEGACY_COMPRESSED = "application/vnd.gardener.landscaper.blueprint.layer.v1.tar+gzip"
	BLUEPRINT_MIMETYPE                   = "application/vnd.gardener.landscaper.blueprint.v1+tar"
	BLUEPRINT_MIMETYPE_COMPRESSED        = "application/vnd.gardener.landscaper.blueprint.v1+tar+gzip"
)
View Source
const (
	TYPE             = resourcetypes.BLUEPRINT
	LEGACY_TYPE      = resourcetypes.BLUEPRINT_LEGACY
	CONFIG_MIME_TYPE = "application/vnd.gardener.landscaper.blueprint.config.v1"
)
View Source
const PATH = "landscaper/blueprint"

Variables

This section is empty.

Functions

func AttributeDescription

func AttributeDescription() map[string]string

func ExtractArchive

func ExtractArchive(pr common.Printer, _ *Handler, access blobaccess.DataAccess, path string, fs vfs.FileSystem) (_ bool, rerr error)

func ExtractArtifact

func ExtractArtifact(pr common.Printer, handler *Handler, access blobaccess.DataAccess, path string, fs vfs.FileSystem) (_ bool, rerr error)

Types

type Config

type Config struct {
	OCIConfigTypes []string `json:"ociConfigTypes"`
}

type Extractor

type Extractor func(pr common.Printer, handler *Handler, access blobaccess.DataAccess, path string, fs vfs.FileSystem) (bool, error)

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(configmimetypes ...string) *Handler

func (*Handler) Download

func (h *Handler) Download(pr common.Printer, racc cpi.ResourceAccess, path string, fs vfs.FileSystem) (_ bool, _ string, err error)

type RegistrationHandler

type RegistrationHandler struct{}

func (*RegistrationHandler) GetHandlers

func (*RegistrationHandler) RegisterByName

func (r *RegistrationHandler) RegisterByName(handler string, ctx download.Target, config download.HandlerConfig, olist ...download.HandlerOption) (bool, error)

Jump to

Keyboard shortcuts

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