types

package
v0.0.0-...-bc2ca9b Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ArchAMD64   string = "amd64"
	Arch_x86_64 string = "x86_64"
	ArchARM64   string = "arm64"
	ArchAARCH64 string = "aarch64"
)

Variables

This section is empty.

Functions

func ToCoreOSStreamArch

func ToCoreOSStreamArch(arch string) string

ToCoreOSStreamArch maps "our" architectures constants to arch strings that make sense in the CoreOS stream.json

Types

type CmdBuilder

type CmdBuilder func(ctx context.Context, program string, args ...string) *exec.Cmd

type CmdRunner

type CmdRunner func(cmd *exec.Cmd) error

type ExcludeManifest

type ExcludeManifest struct {
	Exclude []string `json:"exclude,omitempty"`
}

func (*ExcludeManifest) Filter

func (e *ExcludeManifest) Filter(path string) (string, bool)

Filter checks whether any exclusion paths match the path in input. It returns the matching glob expression, if any.

type ManifestGenerator

type ManifestGenerator interface {
	Name() string
	Skip() SkipStep
	Generate(context.Context, *logrus.Entry) (map[string][]interface{}, error)
	ExcludedManifests() ExcludeManifest
	Patches() []cinitmanifest.Patch
}

type SkipStep

type SkipStep struct {
	Skip   bool   `json:"skip,omitempty"`
	Reason string `json:"reason,omitempty"`
}

type Step

type Step interface {
	Run(ctx context.Context) error
	Name() string
}

Directories

Path Synopsis
aws package contains AWS-specific types
aws package contains AWS-specific types
gcp package contains GCP-specific types
gcp package contains GCP-specific types

Jump to

Keyboard shortcuts

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