blueprint

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

// SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Open Component Model contributors. // // SPDX-License-Identifier: Apache-2.0

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+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 accessio.DataAccess, path string, fs vfs.FileSystem) (_ bool, rerr error)

func ExtractArtifact

func ExtractArtifact(pr common.Printer, handler *Handler, access accessio.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 accessio.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