flatcar

package
v0.0.0-...-4b28da7 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidArch

func IsValidArch(arch string) bool

func IsValidChannel

func IsValidChannel(channel string) bool

func IsValidVersion

func IsValidVersion(version string) bool

Types

type Fetcher

type Fetcher struct {
	// contains filtered or unexported fields
}

func New

func New(option Option) *Fetcher

func (*Fetcher) FetchKernel

func (f *Fetcher) FetchKernel(ctx context.Context, w io.Writer, key Key) error

func (*Fetcher) ResolveKey

func (f *Fetcher) ResolveKey(ctx context.Context, channel, arch, version string) (Key, error)

type Key

type Key struct {
	// contains filtered or unexported fields
}

func (Key) InitrdKey

func (k Key) InitrdKey() string

func (Key) KernelKey

func (k Key) KernelKey() string

func (Key) String

func (k Key) String() string

type Option

type Option struct {
	RequestConcurrency int
	HTTP               *http.Client
}

Jump to

Keyboard shortcuts

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