docs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterProvider

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

ClusterProvider allows to maintain the addons cluster-wide documentation

func NewClusterProvider

func NewClusterProvider(dynamicClient client.Client, log logrus.FieldLogger) *ClusterProvider

NewClusterProvider creates a new Provider

func (*ClusterProvider) EnsureAssetGroup added in v1.1.0

func (d *ClusterProvider) EnsureAssetGroup(addon *internal.Addon) error

EnsureAssetGroup creates ClusterAssetGroup for a given addon or updates it in case it already exists

func (*ClusterProvider) EnsureAssetGroupRemoved added in v1.1.0

func (d *ClusterProvider) EnsureAssetGroupRemoved(id string) error

EnsureAssetGroupRemoved removes ClusterAssetGroup for a given addon

func (*ClusterProvider) SetNamespace

func (d *ClusterProvider) SetNamespace(namespace string)

SetNamespace sets service's working namespace

type DummyProvider

type DummyProvider struct {
}

DummyProvider is an implementation which does not perform any work but have the same interface as the Provider

func (*DummyProvider) EnsureAssetGroup added in v1.1.0

func (s *DummyProvider) EnsureAssetGroup(addon *internal.Addon) error

EnsureAssetGroup fulfills the docsFacade interface

func (*DummyProvider) EnsureAssetGroupRemoved added in v1.1.0

func (*DummyProvider) EnsureAssetGroupRemoved(id string) error

EnsureAssetGroupRemoved fulfills the docsFacade interface

func (*DummyProvider) SetNamespace

func (*DummyProvider) SetNamespace(namespace string)

SetNamespace fulfills the docsFacade interface

type Provider

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

Provider allows to maintain the addons namespace-scoped documentation

func NewProvider

func NewProvider(dynamicClient client.Client, log logrus.FieldLogger) *Provider

NewProvider creates a new Provider

func (*Provider) EnsureAssetGroup added in v1.1.0

func (d *Provider) EnsureAssetGroup(addon *internal.Addon) error

EnsureAssetGroup creates AssetGroup for a given addon or updates it in case it already exists

func (*Provider) EnsureAssetGroupRemoved added in v1.1.0

func (d *Provider) EnsureAssetGroupRemoved(id string) error

EnsureAssetGroupRemoved removes AssetGroup for a given addon

func (*Provider) SetNamespace

func (d *Provider) SetNamespace(namespace string)

SetNamespace sets service's working namespace

Jump to

Keyboard shortcuts

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