{"modulePath":"github.com/SovereignCloudStack/cluster-stack-operator","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package extension\n\nPackage extension defines a hook server for multi-stage cluster addons.\n\n## Constants\n\n```go\nconst (\n\t// BeforeClusterUpgradeHook is the hook for before cluster upgrade.\n\tBeforeClusterUpgradeHook = \"BeforeClusterUpgrade\"\n)\n```\n\n## Types\n\n```go\ntype Handler struct {\n\tclient.Client\n\t// APIReader reads directly from the API server, not from the cache.\n\tAPIReader  client.Reader\n\tHookRecord map[string]string\n}\n```\nHandler is the handler object with client.Client for the hook server.\n\n```go\nfunc NewHandler(c client.Client, apiReader client.Reader) *Handler\n```\nNewHandler gives an extension handler.\n\n```go\nfunc (*Handler) DoAfterClusterUpgrade(ctx context.Context, request *runtimehooksv1.AfterClusterUpgradeRequest, response *runtimehooksv1.AfterClusterUpgradeResponse)\n```\nDoAfterClusterUpgrade satisfies the CAPI interface for hook server.\n\n```go\nfunc (e *Handler) DoAfterControlPlaneInitialized(ctx context.Context, request *runtimehooksv1.AfterControlPlaneInitializedRequest, response *runtimehooksv1.AfterControlPlaneInitializedResponse)\n```\nDoAfterControlPlaneInitialized satisfies the CAPI interface for hook server.\n\n```go\nfunc (e *Handler) DoBeforeClusterUpgrade(ctx context.Context, request *runtimehooksv1.BeforeClusterUpgradeRequest, response *runtimehooksv1.BeforeClusterUpgradeResponse)\n```\nDoBeforeClusterUpgrade satisfies the CAPI interface for hook server.\n\n","path":"github.com/SovereignCloudStack/cluster-stack-operator/extension","name":"extension","synopsis":"Package extension defines a hook server for multi-stage cluster addons.","isRedistributable":true}
