project

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveProjectConfig

func SaveProjectConfig(projectConfig *Config) error

SaveProjectConfig saves a project configuration file.

Types

type Config

type Config struct {
	Meta            config.Metadata
	DefaultRegistry string
	Dependencies    []dependency.Dependency
	// contains filtered or unexported fields
}

Config describes structure of klio.yaml files.

func CreateDefaultProjectConfig

func CreateDefaultProjectConfig(filePath string) (*Config, error)

CreateDefaultProjectConfig creates default Config and save it to give path if it's not already there.

func LoadProjectConfig

func LoadProjectConfig(filePath string) (*Config, error)

LoadProjectConfig reads a project configuration file.

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) MarshalYAML

func (p *Config) MarshalYAML() (interface{}, error)

func (*Config) UnmarshalYAML

func (p *Config) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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