types

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIVersion     string            `json:"apiVersion"`
	Kind           string            `json:"kind"`
	Namespace      string            `json:"namespace,omitempty"`
	Events         []EventType       `json:"events,omitempty"`
	MatchingLabels map[string]string `json:"matchingLabels,omitempty"`
	Clusters       []string          `json:"clusters,omitempty"`
}

Config is the config for resource controller

func (*Config) Key

func (c *Config) Key() string

Key returns the identifier of a Config.

func (*Config) Merge

func (c *Config) Merge(new Config)

Merge merges two Configs.

type Event

type Event struct {
	Type    EventType `json:"type"`
	Cluster string    `json:"cluster"`
}

Event represent an event got from k8s api server

type EventType

type EventType string

EventType is the type of the observed event.

const (
	EventTypeCreate EventType = "create"
	EventTypeUpdate EventType = "update"
	EventTypeDelete EventType = "delete"
)

EventTypes

type InformerEvent

type InformerEvent struct {
	Event
	EventObj interface{}
}

InformerEvent indicate the informerEvent

Jump to

Keyboard shortcuts

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