clusterstatus

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package clusterstatus provides a set of primitives to compose the SetStatusInCluster RPC Response

Index

Constants

This section is empty.

Variables

View Source
var ErrNilObject = errors.New("nil object passed, use NoOpResponse")

ErrNilObject is used when a nil object is passed to the builder.

Functions

This section is empty.

Types

type NotAnObjectError

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

NotAnObjectError is used when the passed value cannot be represented as a JSON object.

func (NotAnObjectError) Error

func (err NotAnObjectError) Error() string

type SetStatusInClusterResponseBuilder

type SetStatusInClusterResponseBuilder struct{}

SetStatusInClusterResponseBuilder a SetStatus response builder.

func NewSetStatusInClusterResponseBuilder

func NewSetStatusInClusterResponseBuilder() *SetStatusInClusterResponseBuilder

NewSetStatusInClusterResponseBuilder is an helper that creates the SetStatus endpoint responses.

func (SetStatusInClusterResponseBuilder) JSONStatusResponse

JSONStatusResponse requires a struct or map that can be translated to a JSON object, will set the status to the passed object.

func (SetStatusInClusterResponseBuilder) NoOpResponse

NoOpResponse this response will ensure that no changes will be done to the plugin status.

func (SetStatusInClusterResponseBuilder) SetEmptyStatusResponse

SetEmptyStatusResponse will set the plugin status to an empty object '{}'.

Jump to

Keyboard shortcuts

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