certconfig

package
v3.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

NOTE this file is copied from operatorkit for migration purposes. The goal here is to get rid of the crud primitive and move to the implementation of the new handler interface eventually.

NOTE this file is copied from operatorkit for migration purposes. The goal here is to get rid of the crud primitive and move to the implementation of the new handler interface eventually.

Index

Constants

View Source
const (
	// Name is the identifier of the resource.
	Name = "certconfig"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsWrongType

func IsWrongType(err error) bool

IsWrongType asserts wrongTypeError.

Types

type Config

type Config struct {
	BaseDomain     basedomain.Interface
	G8sClient      versioned.Interface
	HAMaster       hamaster.Interface
	Logger         micrologger.Logger
	ReleaseVersion releaseversion.Interface

	APIIP         string
	CertTTL       string
	ClusterDomain string
	Provider      string
}

Config represents the configuration used to create a new cloud config resource.

type Resource

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

Resource implements the cloud config resource.

func New

func New(config Config) (*Resource, error)

New creates a new configured cloud config resource.

func (*Resource) EnsureCreated

func (r *Resource) EnsureCreated(ctx context.Context, obj interface{}) error

func (*Resource) EnsureDeleted

func (r *Resource) EnsureDeleted(ctx context.Context, obj interface{}) error

func (*Resource) Name

func (r *Resource) Name() string

Name returns name of the Resource.

Jump to

Keyboard shortcuts

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