v1

package
v0.0.0-...-acf1bf1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFBCSpec = `---
apiVersion: kpm.io/v1
kind: CatalogSpec
type: fbc
fbc: {}
`
View Source
var DefaultRegistryV1Spec = `---
apiVersion: kpm.io/v1
kind: BundleSpec
type: registryV1
registryV1: {}
`

Functions

This section is empty.

Types

type BundleSpec

type BundleSpec struct {
	metav1.TypeMeta `json:",inline"`

	Type       string            `json:"type"`
	RegistryV1 *RegistryV1Source `json:"registryV1,omitempty"`
}

type CatalogSpec

type CatalogSpec struct {
	metav1.TypeMeta `json:",inline"`

	DisplayName      string            `json:"displayName,omitempty"`
	Publisher        string            `json:"publisher,omitempty"`
	Description      string            `json:"description,omitempty"`
	ExtraAnnotations map[string]string `json:"annotations,omitempty"`

	Type string     `json:"type"`
	FBC  *FBCSource `json:"fbc,omitempty"`
}

type DockerImage

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

func NewDockerImage

func NewDockerImage(tag string, configData, blobData []byte, annotations map[string]string) *DockerImage

func (DockerImage) Annotations

func (l DockerImage) Annotations() (map[string]string, error)

func (DockerImage) ArtifactType

func (l DockerImage) ArtifactType() string

func (DockerImage) Blobs

func (l DockerImage) Blobs() []oci.Blob

func (DockerImage) Config

func (l DockerImage) Config() oci.Blob

func (DockerImage) MediaType

func (l DockerImage) MediaType() string

func (DockerImage) SubArtifacts

func (l DockerImage) SubArtifacts() []oci.Artifact

func (DockerImage) Tag

func (l DockerImage) Tag() string

type FBCSource

type FBCSource struct {
	CatalogDir string `json:"catalogDir,omitempty"`
}

type Icon

type Icon struct {
	MediaType string
	Data      []byte
}

type RegistryV1Source

type RegistryV1Source struct {
	ManifestsDir string `json:"manifestsDir,omitempty"`
	MetadataDir  string `json:"metadataDir,omitempty"`
}

Jump to

Keyboard shortcuts

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