cloudconfig

package
v0.0.0-...-0bb286d Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cloudconfig contains Webmesh node cloud config rendering. Returned cloud-configs are intended for use with ubuntu images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config represents a rendered cloud config.

func New

func New(opts Options) (*Config, error)

New returns a new cloud config.

func (*Config) Checksum

func (c *Config) Checksum() string

Checksum returns the checksum of the config.

func (*Config) Raw

func (c *Config) Raw() []byte

Raw returns the raw config.

type Options

type Options struct {
	// Image is the image to run.
	Image string
	// Config is the node config.
	Config *nodeconfig.Config
	// TLSCert is the TLS cert.
	TLSCert []byte
	// TLSKey is the TLS key.
	TLSKey []byte
	// CA is the CA.
	CA []byte
}

Options are options for generating a cloud config.

Jump to

Keyboard shortcuts

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