userdata

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvisionFiles

func ProvisionFiles(cfg *Config) error

Types

type AWSUserDataProvider

type AWSUserDataProvider struct{ DefaultRetry }

func (AWSUserDataProvider) GetUserData

func (a AWSUserDataProvider) GetUserData(ctx context.Context) ([]byte, error)

type AzureUserDataProvider

type AzureUserDataProvider struct{ DefaultRetry }

func (AzureUserDataProvider) GetUserData

func (a AzureUserDataProvider) GetUserData(ctx context.Context) ([]byte, error)

type CloudConfig

type CloudConfig struct {
	WriteFiles []WriteFile `yaml:"write_files"`
}

type Config

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

func NewConfig

func NewConfig(authJsonPath, daemonConfigPath, cdhConfig string, fetchTimeout int) *Config

type DefaultRetry

type DefaultRetry struct{}

func (DefaultRetry) GetRetryDelay

func (d DefaultRetry) GetRetryDelay() time.Duration

type UserDataProvider

type UserDataProvider interface {
	GetUserData(ctx context.Context) ([]byte, error)
	GetRetryDelay() time.Duration
}

type WriteFile

type WriteFile struct {
	Path    string `yaml:"path"`
	Content string `yaml:"content"`
}

Jump to

Keyboard shortcuts

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