values

package
v0.2.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForOceanController

func ForOceanController(ctx context.Context, values string, builder Builder) (string, error)

func ForOceanOperator

func ForOceanOperator(ctx context.Context, values string, builder Builder) (string, error)

func Merge

func Merge(values ...string) (string, error)

Types

type Builder

type Builder interface {
	// Build builds chart values.
	Build(ctx context.Context) (string, error)
}

Builder defines the interface used by chart builders.

type OceanBaseBuilder

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

OceanBaseBuilder builds values passed to Helm charts.

func NewOceanBaseBuilder

func NewOceanBaseBuilder() *OceanBaseBuilder

NewOceanBaseBuilder returns a new OceanBaseBuilder.

func (*OceanBaseBuilder) Complete

func (b *OceanBaseBuilder) Complete(ctx context.Context) error

Complete completes the setup of the builder.

func (*OceanBaseBuilder) WithACDIdentifier

func (b *OceanBaseBuilder) WithACDIdentifier(value string) *OceanBaseBuilder

WithACDIdentifier sets the value for `oceanController.acdIdentifier`. It's a shorthand for WithConfig(&Value{ACDIdentifier:"redacted"}).

func (*OceanBaseBuilder) WithAccount

func (b *OceanBaseBuilder) WithAccount(value string) *OceanBaseBuilder

WithAccount sets the value for `spotinst.account`. It's a shorthand for WithCredentials(&Value{Account:"redacted"}).

func (*OceanBaseBuilder) WithClient

func (b *OceanBaseBuilder) WithClient(client client.Client) *OceanBaseBuilder

WithClient sets the client that should be used to fetch in-cluster config/credentials.

func (*OceanBaseBuilder) WithClusterIdentifier

func (b *OceanBaseBuilder) WithClusterIdentifier(value string) *OceanBaseBuilder

WithClusterIdentifier sets the value for `oceanController.clusterIdentifier`. It's a shorthand for WithConfig(&Value{ClusterIdentifier:"redacted"}).

func (*OceanBaseBuilder) WithConfig

func (b *OceanBaseBuilder) WithConfig(value *config.Value) *OceanBaseBuilder

WithConfig sets the config that should be used.

func (*OceanBaseBuilder) WithCredentials

func (b *OceanBaseBuilder) WithCredentials(value *credentials.Value) *OceanBaseBuilder

WithCredentials sets the credentials that should be used.

func (*OceanBaseBuilder) WithToken

func (b *OceanBaseBuilder) WithToken(value string) *OceanBaseBuilder

WithToken sets the value for `spotinst.token`. It's a shorthand for WithCredentials(&Value{Token:"redacted"}).

type OceanControllerBuilder

type OceanControllerBuilder struct {
	*OceanBaseBuilder
}

func NewOceanControllerBuilder

func NewOceanControllerBuilder(base *OceanBaseBuilder) *OceanControllerBuilder

func (*OceanControllerBuilder) Build

type OceanOperatorBuilder

type OceanOperatorBuilder struct {
	*OceanBaseBuilder
	// contains filtered or unexported fields
}

func NewOceanOperatorBuilder

func NewOceanOperatorBuilder(base *OceanBaseBuilder) *OceanOperatorBuilder

func (*OceanOperatorBuilder) Build

func (b *OceanOperatorBuilder) Build(ctx context.Context) (string, error)

func (*OceanOperatorBuilder) WithComponents

func (b *OceanOperatorBuilder) WithComponents(components []string) *OceanOperatorBuilder

WithComponents sets the value for `bootstrap.components`.

Jump to

Keyboard shortcuts

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