v1alpha1

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the dashboards v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=common.newrelic.io

Package v1alpha1 contains API Schema definitions for the io v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=alerts.newrelic.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "alerts.newrelic.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

This section is empty.

Types

type Status

type Status struct {
	// The value will be set to `Ready` once the policy has been created in New Relic
	Status string `json:"status"`
	// When a policy fails to be created, the value will be set to the error message received from New Relic
	Reason string `json:"reason,omitempty"`
	// The resource id in New Relic
	NewrelicId *int64 `json:"newrelicId,omitempty"`
}

Status defines the observed state of a New Relic resource

func NewError

func NewError(newrelicId *int64, err error) Status

func NewPending

func NewPending(newrelicId *int64) Status

func NewReady

func NewReady(newrelicId *int64) Status

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (Status) IsError

func (s Status) IsError() bool

func (Status) IsPending

func (s Status) IsPending() bool

func (Status) IsReady

func (s Status) IsReady() bool

Jump to

Keyboard shortcuts

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