metadata

package
v0.0.0-...-7fe75e3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: BSD-3-Clause Imports: 10 Imported by: 9

Documentation

Index

Constants

View Source
const KetosMetaFolder = ".ketos"

Variables

This section is empty.

Functions

func KetosFolder

func KetosFolder() (string, error)

KetosFolder seek .ketos from current working directory to root

func SeekKetosFolder

func SeekKetosFolder(path string) (string, error)

SeekKetosFolder seek .ketos from path to root

Types

type KetosConfig

type KetosConfig struct {
	InitImageName string `yaml:"init_image_name"`

	Repository struct {
		Name     string `yaml:"name"`
		Registry string `yaml:"registry"`
	}
}

type MetaFolders

type MetaFolders string

MetaFolders represents ketos metadata folders

func (MetaFolders) Config

func (m MetaFolders) Config() string

Config get the config file path

func (MetaFolders) Container

func (m MetaFolders) Container() string

Container return the top working layer

func (MetaFolders) InitConfig

func (m MetaFolders) InitConfig(image string) error

InitConfig initialize config file for ketos repo

func (MetaFolders) InitFolders

func (m MetaFolders) InitFolders() error

InitFS initialize file system

func (MetaFolders) Layer

func (m MetaFolders) Layer(digest digest.Digest) string

Layer return the specified layer directory

func (MetaFolders) Layers

func (m MetaFolders) Layers() string

Layers return the layers folder path

func (MetaFolders) Manifest

func (m MetaFolders) Manifest(tag string) string

Manifest get the specific manifest

func (MetaFolders) Manifests

func (m MetaFolders) Manifests() string

Manifests return the manifests folder path

func (MetaFolders) MetaLayer

func (m MetaFolders) MetaLayer(digest digest.Digest) string

MetaLayer return the json file of config layer

func (MetaFolders) Pack

func (m MetaFolders) Pack(digest digest.Digest) string

Pack return the spcified pack

func (MetaFolders) Packs

func (m MetaFolders) Packs() string

Packs return the cached packs folder

type Metadatas

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

func ConnMetadata

func ConnMetadata(path string) (*Metadatas, error)

func CurrentMetadatas

func CurrentMetadatas() (*Metadatas, error)

func GetMetadatas

func GetMetadatas(path string) (*Metadatas, error)

func NewMetadata

func NewMetadata(path string, image string) (*Metadatas, error)

func (*Metadatas) ConnectRegistry

func (d *Metadatas) ConnectRegistry() (*registry.Repository, error)

func (*Metadatas) ContainerPath

func (d *Metadatas) ContainerPath() string

func (*Metadatas) GetConfig

func (d *Metadatas) GetConfig() (*KetosConfig, error)

func (*Metadatas) GetManifest

func (d *Metadatas) GetManifest(tag string) (*manifestV1.Manifest, error)

func (*Metadatas) LayerPath

func (d *Metadatas) LayerPath(digest digest.Digest) string

func (*Metadatas) ListTags

func (d *Metadatas) ListTags() ([]string, error)

func (*Metadatas) MetaFolderPath

func (d *Metadatas) MetaFolderPath() string

func (*Metadatas) PackFile

func (d *Metadatas) PackFile(digest digest.Digest) string

func (*Metadatas) PutManifest

func (d *Metadatas) PutManifest(
	tag string, manifest *manifestV1.Manifest) error

Jump to

Keyboard shortcuts

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