manifest

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Overview

Package manifest manages content resources, which contain all the resources for a deployed bundle.

Content resources are not namespaced.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lookup

type Lookup interface {
	Get(id string) (*Manifest, error)
}

func NewLookup

func NewLookup(content fleetcontrollers.ContentClient) Lookup

type Manifest

type Manifest struct {
	Commit    string                 `json:"-"`
	Resources []fleet.BundleResource `json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func New

func New(resources []fleet.BundleResource) (*Manifest, error)

func (*Manifest) Content

func (m *Manifest) Content() ([]byte, string, error)

func (*Manifest) Encode

func (m *Manifest) Encode(writer io.Writer) error

func (*Manifest) ToTarGZ

func (m *Manifest) ToTarGZ() (io.Reader, error)

type Store

type Store interface {
	Store(manifest *Manifest) (string, error)
}

func NewStore

func NewStore(content fleetcontrollers.ContentController) Store

Jump to

Keyboard shortcuts

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