version

package
v2.36.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type V3MetadataV2ConfigVersion

type V3MetadataV2ConfigVersion struct {
	*VersionConfig
}

func NewV3MetadataVersion

func NewV3MetadataVersion(ec *cli.ExecutionContext, baseDir string) *V3MetadataV2ConfigVersion

TODO: improve naming as the method name is misleading because it gets called when we require version 2 metadata

func (*V3MetadataV2ConfigVersion) Build

func (a *V3MetadataV2ConfigVersion) Build() (map[string]interface{}, error)

func (*V3MetadataV2ConfigVersion) CreateFiles added in v2.5.1

func (a *V3MetadataV2ConfigVersion) CreateFiles() error

func (*V3MetadataV2ConfigVersion) Export

func (a *V3MetadataV2ConfigVersion) Export(_ map[string]yaml.Node) (map[string][]byte, error)

type Version

type Version struct {
	Version int `json:"version" yaml:"version"`
}

type VersionConfig

type VersionConfig struct {
	MetadataDir string
}

func New

func New(ec *cli.ExecutionContext, baseDir string) *VersionConfig

func (*VersionConfig) BaseDirectory

func (a *VersionConfig) BaseDirectory() string

func (*VersionConfig) Build

func (a *VersionConfig) Build() (map[string]interface{}, error)

func (*VersionConfig) CreateFiles

func (a *VersionConfig) CreateFiles() error

func (*VersionConfig) Export

func (a *VersionConfig) Export(metadata map[string]yaml.Node) (map[string][]byte, error)

func (*VersionConfig) Filename

func (a *VersionConfig) Filename() string

func (*VersionConfig) GetFiles

func (a *VersionConfig) GetFiles() ([]string, error)

func (*VersionConfig) Key

func (a *VersionConfig) Key() string

func (*VersionConfig) Validate

func (a *VersionConfig) Validate() error

func (*VersionConfig) WriteDiff

func (a *VersionConfig) WriteDiff(opts metadataobject.WriteDiffOpts) error

Jump to

Keyboard shortcuts

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