file

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path string
	// contains filtered or unexported fields
}

File implements the OCI interface for File API objects. API spec information is stored into the Path field.

func NewFile

func NewFile(path string, opts ...Option) *File

func (*File) Layers

func (f *File) Layers() ([]gv1.Layer, error)

func (*File) Manifest

func (f *File) Manifest() (*gv1.Manifest, error)

func (*File) MediaType

func (f *File) MediaType() string

func (*File) Name

func (f *File) Name(path string) string

Name is the name of the file's reference

func (*File) RawConfig

func (f *File) RawConfig() ([]byte, error)

type Option

type Option func(*File)

func WithAnnotations

func WithAnnotations(m map[string]string) Option

func WithClient

func WithClient(c *getter.Client) Option

func WithConfig

func WithConfig(obj interface{}, mediaType string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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