metadata

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	ProjectName   string
	GoVersion     string
	GitBranch     string
	CICDPlatform  string
	PipelineTasks map[string]bool
	LocalTasks    map[string]bool
}

func New

func New() *Metadata

func (*Metadata) ExtractGoVersionFromGoModFile

func (cfg *Metadata) ExtractGoVersionFromGoModFile(fs afero.Fs) (*string, error)

func (*Metadata) ExtractProjectNameFromGoModFile

func (cfg *Metadata) ExtractProjectNameFromGoModFile(fs afero.Fs) (*string, error)

func (*Metadata) SetCICDPlatform

func (cfg *Metadata) SetCICDPlatform(n string)

func (*Metadata) SetGitBranch

func (cfg *Metadata) SetGitBranch(n string)

func (*Metadata) SetGoVersion

func (cfg *Metadata) SetGoVersion(n string, fs afero.Fs) error

func (*Metadata) SetLocalTasks

func (cfg *Metadata) SetLocalTasks(n []string)

func (*Metadata) SetPipelineTasks

func (cfg *Metadata) SetPipelineTasks(n []string)

func (*Metadata) SetProjectName

func (cfg *Metadata) SetProjectName(n string, fs afero.Fs) error

Jump to

Keyboard shortcuts

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