stevedore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthToken

func GetAuthToken(from string) (string, error)

func GetGitUserEmail added in v0.0.11

func GetGitUserEmail() string

func MakeLabel

func MakeLabel(child *parser.Node, layer int64, myUser *user.User, endLine int, file *string) *parser.Node

Types

type Dockerfile added in v0.1.0

type Dockerfile struct {
	Parsed *parser.Result
	Path   string
	Image  string
}

func (*Dockerfile) GetDockerLabels added in v0.1.0

func (result *Dockerfile) GetDockerLabels() (map[string]interface{}, error)

func (*Dockerfile) Label added in v0.1.0

func (result *Dockerfile) Label() (string, error)

func (*Dockerfile) ParseFile added in v0.1.0

func (result *Dockerfile) ParseFile() error

type GitService added in v0.0.11

type GitService struct {
	BlameByFile *sync.Map
	// contains filtered or unexported fields
}

func NewGitService added in v0.0.11

func NewGitService(rootDir string) (*GitService, error)

func (*GitService) ComputeRelativeFilePath added in v0.0.11

func (g *GitService) ComputeRelativeFilePath(fp string) string

func (*GitService) GetFileBlame added in v0.0.11

func (g *GitService) GetFileBlame(filePath string) (*git.BlameResult, error)

func (*GitService) GetOrganization added in v0.0.11

func (g *GitService) GetOrganization() string

func (*GitService) GetRepoName added in v0.0.11

func (g *GitService) GetRepoName() string

type Parser added in v0.1.0

type Parser struct {
	File      *string
	Output    string
	Directory string
}

func (*Parser) Parse added in v0.1.0

func (content *Parser) Parse() error

func (*Parser) ParseAll added in v0.1.0

func (content *Parser) ParseAll() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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