resource

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name      string
	Namespace string

	Version string

	Labels    map[string]string
	Resources []Resource
}

func App

func App(ctx context.Context, client kubernetes.Client, namespace, name string) (*Application, error)

func Apps

func Apps(ctx context.Context, client kubernetes.Client, namespace string) ([]Application, error)

type Resource added in v0.14.6

type Resource struct {
	Category string

	Kind   string
	Object interface{}

	Name      string
	Namespace string

	Version string

	Labels      map[string]string
	Annotations map[string]string

	Status ResourceStatus
}

type ResourceStatus added in v0.14.6

type ResourceStatus string
const (
	StatusPending   ResourceStatus = "Pending"
	StatusRunning   ResourceStatus = "Running"
	StatusSucceeded ResourceStatus = "Succeeded"
	StatusFailed    ResourceStatus = "Failed"
	StatusUnknown   ResourceStatus = ""
)

Jump to

Keyboard shortcuts

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