keywords

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type From

type From struct {
}

func (From) GetStageName added in v0.84.0

func (f From) GetStageName(originalLine string) (string, error)

func (From) GetTokens added in v0.85.0

func (f From) GetTokens(originalLine string) (Tokens, error)

func (From) GetValue added in v0.84.0

func (f From) GetValue(originalLine, matcher string) (string, error)

func (From) IsLineMatching

func (f From) IsLineMatching(originalLine, matcher string) bool

func (From) ReplaceLine

func (f From) ReplaceLine(source, originalLine, matcher string) string

type FromToken added in v0.85.0

type FromToken struct {
	Keyword  string
	Platform string
	Image    string
	Tag      string
	Digest   string
	Alias    string
	AliasKw  string
	Comment  string
	Args     map[string]*FromTokenArgs
}

type FromTokenArgs added in v0.85.0

type FromTokenArgs struct {
	Prefix string
	Suffix string
	Name   string
}

type Logic

type Logic interface {
	IsLineMatching(originalLine, matcher string) bool
	ReplaceLine(source, originalLine, matcher string) string
	GetValue(originalLine, matcher string) (string, error)
	GetTokens(originalLine string) (Tokens, error)
}

type SimpleKeyword added in v0.85.0

type SimpleKeyword struct {
	Keyword string
}

func (SimpleKeyword) GetTokens added in v0.85.0

func (s SimpleKeyword) GetTokens(originalLine string) (Tokens, error)

func (SimpleKeyword) GetValue added in v0.85.0

func (s SimpleKeyword) GetValue(originalLine, matcher string) (string, error)

func (SimpleKeyword) IsLineMatching added in v0.85.0

func (s SimpleKeyword) IsLineMatching(originalLine, matcher string) bool

func (SimpleKeyword) ReplaceLine added in v0.85.0

func (s SimpleKeyword) ReplaceLine(source, originalLine, matcher string) string

type SimpleTokens added in v0.85.0

type SimpleTokens struct {
	Keyword string
	Name    string
	Value   string
	Comment string
}

func (SimpleTokens) String added in v0.85.0

func (t SimpleTokens) String() string

type Tokens added in v0.85.0

type Tokens interface {
}

Jump to

Keyboard shortcuts

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