userdata

package
v0.0.0-...-2083380 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserData

type UserData struct {
	Logger logger
}

UserData defines a user data struct.

func New

func New(logger logger) *UserData

New returns a new UserData struct

func (UserData) RenderComputeCloudConfig

func (u UserData) RenderComputeCloudConfig(cloudProviderName, clusterName, kubeVersion string) ([]byte, error)

RenderComputeCloudConfig renders a compute cloud-config.

func (UserData) RenderMasterCloudConfig

func (u UserData) RenderMasterCloudConfig(
	cloudProviderName string,
	clusterName string,
	kubeVersion string,
	masterPersistentNodeIDIP map[string]string,
) ([]byte, error)

RenderMasterCloudConfig renders a master cloud-config.

type UserDater

type UserDater interface {
	RenderMasterCloudConfig(string, string, string, map[string]string) ([]byte, error)
	RenderComputeCloudConfig(string, string, string) ([]byte, error)
}

UserDater is an abstract interface for UserData, mainly for testing.

Jump to

Keyboard shortcuts

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