providerconfig

package
v0.0.0-...-c780cb7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectionProviderConfigFor

func ConnectionProviderConfigFor(o resource.ConnectionSecretOwner, kind schema.GroupVersionKind) *v1beta1.ProviderConfig

ConnectionProviderConfigFor returns a connectionProvider Config

Types

type Publisher

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

An Publisher publishes ConnectionDetails by submitting a Secret and ProviderConfig to a Kubernetes API server.

func NewProviderConfigPublisher

func NewProviderConfigPublisher(c client.Client, ot runtime.ObjectTyper) *Publisher

NewProviderConfigPublisher returns a new Publisher.

func (*Publisher) PublishConnection

func (pcp *Publisher) PublishConnection(ctx context.Context, mg resource.Managed, c managed.ConnectionDetails) error

PublishConnection publishes the supplied ConnectionDetails to a Secret in the same namespace as the supplied Managed resource. It is a no-op if the secret already exists with the supplied ConnectionDetails.

func (*Publisher) UnpublishConnection

func (pcp *Publisher) UnpublishConnection(ctx context.Context, mg resource.Managed, c managed.ConnectionDetails) error

UnpublishConnection is no-op since PublishConnection only creates resources that will be garbage collected by Kubernetes when the managed resource is deleted.

Jump to

Keyboard shortcuts

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