models

package
v0.6.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth []struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type Config

type Config struct {
	LogLevel        string `yaml:"logLevel"`
	CleanupInterval string `yaml:"cleanupInterval"`
	Kubernetes      struct {
		ClusterEndpoint string `yaml:"clusterEndpoint"`
	}
	Namespace struct {
		Prefix    string    `yaml:"prefix"`
		Suffix    string    `yaml:"suffix"`
		Duration  string    `yaml:"duration"`
		Resources Resources `yaml:"resources"`
	} `yaml:"namespace"`
	BasicAuth BasicAuth `yaml:"basicAuth"`
}

type GetInfo200Response

type GetInfo200Response struct {
	BuildDate string `json:"buildDate,omitempty"`

	Commit string `json:"commit,omitempty"`

	Version string `json:"version,omitempty"`
}

type GetNamespaces200Response

type GetNamespaces200Response struct {
	Message string `json:"message,omitempty"`

	Namespaces []string `json:"namespaces,omitempty"`
}

type Namespace

type Namespace struct {
	Infix string `json:"infix,omitempty"`

	Suffix string `json:"suffix,omitempty"`

	// How long should the namespace be preserved until it becomes obsolete and is automatically cleaned up.
	Duration string `json:"duration,omitempty"`

	// A list of users to be authorized as editors in this namespace.
	Users []string `json:"users,omitempty"`
}

type Resources

type Resources struct {
	Requests struct {
		CPU     string `yaml:"cpu"`
		Memory  string `yaml:"memory"`
		Storage string `yaml:"storage"`
	} `yaml:"requests"`
	Limits struct {
		CPU    string `yaml:"cpu"`
		Memory string `yaml:"memory"`
	} `yaml:"limits"`
}

type Response

type Response struct {
	Message    string   `json:"message"`
	Namespace  string   `json:"namespace,omitempty"`
	Namespaces []string `json:"namespaces,omitempty"`
	KubeConfig []byte   `json:"kubeconfig,omitempty"`
}

Jump to

Keyboard shortcuts

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