options

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailabilityZone

type AvailabilityZone struct {
	Name string `json:"name"`
}

type KubernetesOptionsService

type KubernetesOptionsService common.Service

KubernetesOptionsService is the service that retrieves the provider options

func New

New returns a new handler for the service

func (*KubernetesOptionsService) List

func (svc *KubernetesOptionsService) List(ctx context.Context) (res ProviderOptions, err error)

List returns all of the SKE provider options See also https://api.stackit.schwarz/ske-service/openapi.v1.html#tag/ProviderOptions

type KubernetesVersion

type KubernetesVersion struct {
	Version        string            `json:"version"`
	State          string            `json:"state"`
	ExpirationDate string            `json:"expirationDate"`
	FeatureGates   map[string]string `json:"featureGates"`
}

type MachineImage

type MachineImage struct {
	Name     string `json:"name"`
	Versions []struct {
		Version        string `json:"version"`
		State          string `json:"state"`
		ExpirationDate string `json:"expirationDate"`
		CRI            []struct {
			Name string `json:"name"`
		} `json:"cri"`
	} `json:"versions"`
}

type MachineType

type MachineType struct {
	Name   string `json:"name"`
	CPU    int    `json:"cpu"`
	Memory int    `json:"memory"`
}

type ProviderOptions

type ProviderOptions struct {
	KubernetesVersions []KubernetesVersion `json:"kubernetesVersions"`
	MachineTypes       []MachineType       `json:"machineTypes"`
	MachineImages      []MachineImage      `json:"machineImages"`
	VolumeTypes        []VolumeType        `json:"volumeTypes"`
	AvailabilityZones  []AvailabilityZone  `json:"availabilityZones"`
}

ProviderOptions is the api's provider options response struct

type VolumeType

type VolumeType struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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