Documentation ¶
Index ¶
- Constants
- func KetosFolder() (string, error)
- func SeekKetosFolder(path string) (string, error)
- type KetosConfig
- type MetaFolders
- func (m MetaFolders) Config() string
- func (m MetaFolders) Container() string
- func (m MetaFolders) InitConfig(image string) error
- func (m MetaFolders) InitFolders() error
- func (m MetaFolders) Layer(digest digest.Digest) string
- func (m MetaFolders) Layers() string
- func (m MetaFolders) Manifest(tag string) string
- func (m MetaFolders) Manifests() string
- func (m MetaFolders) MetaLayer(digest digest.Digest) string
- func (m MetaFolders) Pack(digest digest.Digest) string
- func (m MetaFolders) Packs() string
- type Metadatas
- func (d *Metadatas) ConnectRegistry() (*registry.Repository, error)
- func (d *Metadatas) ContainerPath() string
- func (d *Metadatas) GetConfig() (*KetosConfig, error)
- func (d *Metadatas) GetManifest(tag string) (*manifestV1.Manifest, error)
- func (d *Metadatas) LayerPath(digest digest.Digest) string
- func (d *Metadatas) ListTags() ([]string, error)
- func (d *Metadatas) MetaFolderPath() string
- func (d *Metadatas) PackFile(digest digest.Digest) string
- func (d *Metadatas) PutManifest(tag string, manifest *manifestV1.Manifest) error
Constants ¶
View Source
const KetosMetaFolder = ".ketos"
Variables ¶
This section is empty.
Functions ¶
func KetosFolder ¶
KetosFolder seek .ketos from current working directory to root
func SeekKetosFolder ¶
SeekKetosFolder seek .ketos from path to root
Types ¶
type KetosConfig ¶
type MetaFolders ¶
type MetaFolders string
MetaFolders represents ketos metadata folders
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
type Metadatas ¶
type Metadatas struct {
// contains filtered or unexported fields
}
func ConnMetadata ¶
func CurrentMetadatas ¶
func GetMetadatas ¶
func (*Metadatas) ConnectRegistry ¶
func (d *Metadatas) ConnectRegistry() (*registry.Repository, error)
func (*Metadatas) ContainerPath ¶
func (*Metadatas) GetConfig ¶
func (d *Metadatas) GetConfig() (*KetosConfig, error)
func (*Metadatas) GetManifest ¶
func (d *Metadatas) GetManifest(tag string) (*manifestV1.Manifest, error)
func (*Metadatas) MetaFolderPath ¶
func (*Metadatas) PutManifest ¶
func (d *Metadatas) PutManifest( tag string, manifest *manifestV1.Manifest) error
Click to show internal directories.
Click to hide internal directories.