templates

package
v0.0.0-...-f4dfa5d Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerdConfigTemplate = `` /* 4620-byte string literal not displayed */
View Source
const HostsTomlTemplate = `` /* 826-byte string literal not displayed */

Variables

This section is empty.

Functions

func ParseHostsTemplateFromConfig

func ParseHostsTemplateFromConfig(templateBuffer string, config interface{}) (string, error)

func ParseTemplateFromConfig

func ParseTemplateFromConfig(templateBuffer string, config interface{}) (string, error)

Types

type ContainerdConfig

type ContainerdConfig struct {
	NodeConfig            *config.Node
	DisableCgroup         bool
	SystemdCgroup         bool
	NoPivotRoot           bool
	IsRunningInUserNS     bool
	EnableUnprivileged    bool
	NoDefaultEndpoint     bool
	PrivateRegistryConfig *registries.Registry
	ExtraRuntimes         map[string]ContainerdRuntimeConfig
	Program               string
}

type ContainerdRuntimeConfig

type ContainerdRuntimeConfig struct {
	RuntimeType string
	BinaryName  string
}

type HostConfig

type HostConfig struct {
	Host      string
	Program   string
	Endpoints []RegistryEndpoint
}

type RegistryEndpoint

type RegistryEndpoint struct {
	OverridePath bool
	URI          string
	Rewrites     map[string]string
	Config       registries.RegistryConfig
}

Jump to

Keyboard shortcuts

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