Documentation
¶
Index ¶
- type K8sSync
- type Plugin
- func (p *Plugin) Describe(_ context.Context) (*plugin.Descriptor, error)
- func (p *Plugin) HandleRequest(_ context.Context, req *plugin.Request) (*plugin.Response, error)
- func (p *Plugin) HealthCheck(_ context.Context) (plugin.HealthStatus, string, error)
- func (p *Plugin) Init(_ context.Context, _ []byte, _ string, _ string) error
- func (p *Plugin) Shutdown(_ context.Context) error
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 ¶
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) HandleRequest ¶
func (*Plugin) HealthCheck ¶
Click to show internal directories.
Click to hide internal directories.