Documentation ¶
Index ¶
- func ForOceanController(ctx context.Context, values string, builder Builder) (string, error)
- func ForOceanOperator(ctx context.Context, values string, builder Builder) (string, error)
- func Merge(values ...string) (string, error)
- type Builder
- type OceanBaseBuilder
- func (b *OceanBaseBuilder) Complete(ctx context.Context) error
- func (b *OceanBaseBuilder) WithACDIdentifier(value string) *OceanBaseBuilder
- func (b *OceanBaseBuilder) WithAccount(value string) *OceanBaseBuilder
- func (b *OceanBaseBuilder) WithClient(client client.Client) *OceanBaseBuilder
- func (b *OceanBaseBuilder) WithClusterIdentifier(value string) *OceanBaseBuilder
- func (b *OceanBaseBuilder) WithConfig(value *config.Value) *OceanBaseBuilder
- func (b *OceanBaseBuilder) WithCredentials(value *credentials.Value) *OceanBaseBuilder
- func (b *OceanBaseBuilder) WithToken(value string) *OceanBaseBuilder
- type OceanControllerBuilder
- type OceanOperatorBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForOceanController ¶
func ForOceanOperator ¶
Types ¶
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
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`.