argocd

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 K8sSync

type K8sSync interface {
	// EnsureNamespace creates the namespace if it does not already exist.
	EnsureNamespace(name string)
	// EnsureDeployment creates a deployment if it does not already exist.
	EnsureDeployment(namespace, name string, labels map[string]string, matchLabels map[string]string)
}

K8sSync defines the interface the ArgoCD plugin needs from the Kubernetes plugin to create resources during a sync operation.

type Plugin

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

Plugin implements the CloudMock plugin interface for ArgoCD API emulation.

func New

func New(k8sSync K8sSync) *Plugin

New creates a new ArgoCD plugin. k8sSync is optional — if provided, sync operations will apply resources to the k8s plugin's store for cross-plugin integration.

func (*Plugin) Describe

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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