scheme

package
v1.22.0 Latest Latest
Warning

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

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

Documentation

Overview

Package scheme offers a builder capable of generating a scheme with the resources known by the CNP manager

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildWithAllKnownScheme

func BuildWithAllKnownScheme() *runtime.Scheme

BuildWithAllKnownScheme registers all the API used by the manager

Types

type Builder

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

Builder contains the fluent methods to build a schema

func New

func New() *Builder

New creates a new builder

func (*Builder) Build

func (b *Builder) Build() *runtime.Scheme

Build returns the built scheme

func (*Builder) WithAPIExtensionV1

func (b *Builder) WithAPIExtensionV1() *Builder

WithAPIExtensionV1 adds apiextensions/v1

func (*Builder) WithAPIV1

func (b *Builder) WithAPIV1() *Builder

WithAPIV1 adds the v1 scheme

func (*Builder) WithClientGoScheme

func (b *Builder) WithClientGoScheme() *Builder

WithClientGoScheme adds the kubernetes/scheme

func (*Builder) WithMonitoringV1

func (b *Builder) WithMonitoringV1() *Builder

WithMonitoringV1 adds prometheus-operator scheme

func (*Builder) WithStorageSnapshotV1 added in v1.21.0

func (b *Builder) WithStorageSnapshotV1() *Builder

WithStorageSnapshotV1 adds storagesnapshotv1

Jump to

Keyboard shortcuts

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