controlplane

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions added in v0.5.0

func CompareVersions(version1, version2 string) int

CompareVersions checks if current and desired version for configurations matches

func StatusFromResponse

func StatusFromResponse(resp *controlplanes.ControlPlaneResponse, latestAvailableVersion *string) v1alpha1.ControlPlaneResponse

GetSecretValue fetches the referenced input secret key reference

Types

type ApplyParameters added in v0.5.0

type ApplyParameters struct {
	Name           string `json:"name"`
	Organization   string `json:"organization"`
	DesiredVersion string `json:"desiredVersion"`
}

type Client added in v0.5.0

type Client struct {
	*up.Config
}

func NewClient added in v0.5.0

func NewClient(cfg *up.Config) *Client

func (*Client) Apply added in v0.5.0

func (c *Client) Apply(ctx context.Context, params *ApplyParameters) error

type ControlPlanePatch added in v0.5.0

type ControlPlanePatch struct {
	Patches []SetDesiredVersion `json:"patches"`
}

type SetDesiredVersion added in v0.5.0

type SetDesiredVersion struct {
	SetDesiredVersion string `json:"setDesiredVersion"`
}

Jump to

Keyboard shortcuts

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