apply

package
v0.0.0-...-3a6e21b Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	// Set this option on the provided Options
	Set(*Options)
}

Option is a strategy for updating Options.

var CleanupConditionally Option = OptionFunc(func(opts *Options) {
	opts.Cleanup = cleanup.Conditionally
})

CleanupConditionally is an Option that sets Cleanup = cleanup.Conditionally.

var NoCleanup Option = OptionFunc(func(opts *Options) {
	opts.Cleanup = cleanup.None
})

NoCleanup is an Option that disables config cleanup.

var Wait Option = OptionFunc(func(opts *Options) {

})

Wait configures the Options to wait for configuration to propagate. This method currently does nothing, due to https://github.com/istio/istio/issues/37148

type OptionFunc

type OptionFunc func(*Options)

OptionFunc is a function-based Option.

func (OptionFunc) Set

func (f OptionFunc) Set(opts *Options)

Set just invokes this function to update the Options.

type Options

type Options struct {
	// Cleanup strategy
	Cleanup cleanup.Strategy

	// Wait for configuration to be propagated.
	Wait bool
}

Options provide options for applying configuration

Jump to

Keyboard shortcuts

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