kubernetes

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin implements the CloudMock plugin interface for Kubernetes API emulation.

func New

func New() *Plugin

New creates a new Kubernetes plugin.

func (*Plugin) Describe

func (p *Plugin) Describe(_ context.Context) (*plugin.Descriptor, error)

func (*Plugin) EnsureDeployment

func (p *Plugin) EnsureDeployment(namespace, name string, labels map[string]string, matchLabels map[string]string)

EnsureDeployment creates a deployment if it does not already exist. This is used by the ArgoCD plugin during sync operations.

func (*Plugin) EnsureNamespace

func (p *Plugin) EnsureNamespace(name string)

EnsureNamespace creates the namespace if it does not already exist. This is used by the ArgoCD plugin during sync operations.

func (*Plugin) HandleRequest

func (p *Plugin) HandleRequest(_ context.Context, req *plugin.Request) (*plugin.Response, error)

func (*Plugin) HealthCheck

func (p *Plugin) HealthCheck(_ context.Context) (plugin.HealthStatus, string, error)

func (*Plugin) Init

func (p *Plugin) Init(_ context.Context, _ []byte, _ string, _ string) error

func (*Plugin) Shutdown

func (p *Plugin) Shutdown(_ context.Context) error

func (*Plugin) Store

func (p *Plugin) Store() *internal.Store

Store returns the internal store for cross-plugin access (e.g., ArgoCD sync).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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