client

package
v0.0.0-...-8a22b0b Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PollInterval = time.Second * 10
)

Functions

func GetGVKWithName

func GetGVKWithName(content []byte) string

func IsCRD

func IsCRD(content []byte) bool

Types

type ApplicationManifests

type ApplicationManifests struct {
	AppID                string   `json:"app_id"`
	AppSlug              string   `json:"app_slug"`
	KubectlVersion       string   `json:"kubectl_version"`
	AdditionalNamespaces []string `json:"additional_namespaces"`
	ImagePullSecret      string   `json:"image_pull_secret"`
	Namespace            string   `json:"namespace"`
	PreviousManifests    string   `json:"previous_manifests"`
	Manifests            string   `json:"manifests"`
	Wait                 bool     `json:"wait"`
	ResultCallback       string   `json:"result_callback"`
	ClearNamespaces      []string `json:"clear_namespaces"`
	ClearPVCs            bool     `json:"clear_pvcs"`
	AnnotateSlug         bool     `json:"annotate_slug"`
}

type Client

type Client struct {
	APIEndpoint     string
	Token           string
	TargetNamespace string
	// contains filtered or unexported fields
}

func (*Client) Run

func (c *Client) Run() error

Run is the main entrypoint of the operator when running in standard, normal operations

type DesiredState

type DesiredState struct {
	Present   []ApplicationManifests `json:"present"`
	Missing   map[string][]string    `json:"missing"`
	Preflight []string               `json:"preflight"`
}

DesiredState is what we receive from the kotsadm-api server

type InformRequest

type InformRequest struct {
	AppID     string                       `json:"app_id"`
	Informers []types.StatusInformerString `json:"informers"`
}

type OverlySimpleGVKWithName

type OverlySimpleGVKWithName struct {
	APIVersion string               `yaml:"apiVersion"`
	Kind       string               `yaml:"kind"`
	Metadata   OverlySimpleMetadata `yaml:"metadata"`
}

type OverlySimpleMetadata

type OverlySimpleMetadata struct {
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace"`
}

type PreflightRequest

type PreflightRequest struct {
	URI               string `json:"uri"`
	IgnorePermissions bool   `json:"ignorePermissions"`
}

type SupportBundleRequest

type SupportBundleRequest struct {
	URI string `json:"uri"`
}

Jump to

Keyboard shortcuts

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