dynatraceclient

package
v0.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	SetContext(ctx context.Context) Builder
	SetDynakube(dynakube dynatracev1beta1.DynaKube) Builder
	SetTokens(tokens token.Tokens) Builder
	Build() (dtclient.Client, error)
	BuildWithTokenVerification(dynaKubeStatus *dynatracev1beta1.DynaKubeStatus) (dtclient.Client, error)
}

func NewBuilder

func NewBuilder(apiReader client.Reader) Builder

type StubBuilder

type StubBuilder struct {
	DynatraceClient dtclient.Client
	Err             error
}

StubBuilder can be used for unit tests where a full builder implementation is not needed

func (StubBuilder) Build

func (stubBuilder StubBuilder) Build() (dtclient.Client, error)

func (StubBuilder) BuildWithTokenVerification

func (stubBuilder StubBuilder) BuildWithTokenVerification(*dynatracev1beta1.DynaKubeStatus) (dtclient.Client, error)

func (StubBuilder) LastApiProbeTimestamp

func (stubBuilder StubBuilder) LastApiProbeTimestamp() *metav1.Time

func (StubBuilder) SetContext

func (stubBuilder StubBuilder) SetContext(context.Context) Builder

func (StubBuilder) SetDynakube

func (stubBuilder StubBuilder) SetDynakube(dynatracev1beta1.DynaKube) Builder

func (StubBuilder) SetTokens

func (stubBuilder StubBuilder) SetTokens(token.Tokens) Builder

Jump to

Keyboard shortcuts

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