v1alpha1

package
v0.0.3-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the nodes v1alpha1 API group +kubebuilder:object:generate=true +groupName=nodes.pokt.network

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "nodes.pokt.network", Version: "v1alpha1"}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var ErrUnableToConvertPocketSet = errors.New("unable to convert to PocketSet")
View Source
var ErrUnableToConvertPocketValidator = errors.New("unable to convert to PocketValidator")

Functions

This section is empty.

Types

type PocketSet

type PocketSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PocketSetSpec   `json:"spec,omitempty"`
	Status            PocketSetStatus `json:"status,omitempty"`
}

PocketSet is the Schema for the pocketsets API.

func (*PocketSet) DeepCopy

func (in *PocketSet) DeepCopy() *PocketSet

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

func (*PocketSet) DeepCopyInto

func (in *PocketSet) DeepCopyInto(out *PocketSet)

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

func (*PocketSet) DeepCopyObject

func (in *PocketSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PocketSet) GetChildResourceConditions

func (component *PocketSet) GetChildResourceConditions() []*status.ChildResource

GetResources returns the child resource status for a component.

func (*PocketSet) GetDependencies

func (*PocketSet) GetDependencies() []workload.Workload

GetDependencies returns the dependencies for a component.

func (*PocketSet) GetDependencyStatus

func (component *PocketSet) GetDependencyStatus() bool

GetDependencyStatus returns the dependency status for a component.

func (*PocketSet) GetPhaseConditions

func (component *PocketSet) GetPhaseConditions() []*status.PhaseCondition

GetPhaseConditions returns the phase conditions for a component.

func (*PocketSet) GetReadyStatus

func (component *PocketSet) GetReadyStatus() bool

GetReadyStatus returns the ready status for a component.

func (*PocketSet) GetWorkloadGVK

func (*PocketSet) GetWorkloadGVK() schema.GroupVersionKind

GetComponentGVK returns a GVK object for the component.

func (*PocketSet) SetChildResourceCondition

func (component *PocketSet) SetChildResourceCondition(resource *status.ChildResource)

SetResources sets the phase conditions for a component.

func (*PocketSet) SetDependencyStatus

func (component *PocketSet) SetDependencyStatus(dependencyStatus bool)

SetDependencyStatus sets the dependency status for a component.

func (*PocketSet) SetPhaseCondition

func (component *PocketSet) SetPhaseCondition(condition *status.PhaseCondition)

SetPhaseCondition sets the phase conditions for a component.

func (*PocketSet) SetReadyStatus

func (component *PocketSet) SetReadyStatus(ready bool)

SetReadyStatus sets the ready status for a component.

type PocketSetList

type PocketSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PocketSet `json:"items"`
}

PocketSetList contains a list of PocketSet.

func (*PocketSetList) DeepCopy

func (in *PocketSetList) DeepCopy() *PocketSetList

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

func (*PocketSetList) DeepCopyInto

func (in *PocketSetList) DeepCopyInto(out *PocketSetList)

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

func (*PocketSetList) DeepCopyObject

func (in *PocketSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PocketSetSpec

type PocketSetSpec struct {
}

PocketSetSpec defines the desired state of PocketSet.

func (*PocketSetSpec) DeepCopy

func (in *PocketSetSpec) DeepCopy() *PocketSetSpec

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

func (*PocketSetSpec) DeepCopyInto

func (in *PocketSetSpec) DeepCopyInto(out *PocketSetSpec)

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

type PocketSetStatus

type PocketSetStatus struct {
	Created               bool                     `json:"created,omitempty"`
	DependenciesSatisfied bool                     `json:"dependenciesSatisfied,omitempty"`
	Conditions            []*status.PhaseCondition `json:"conditions,omitempty"`
	Resources             []*status.ChildResource  `json:"resources,omitempty"`
}

PocketSetStatus defines the observed state of PocketSet.

func (*PocketSetStatus) DeepCopy

func (in *PocketSetStatus) DeepCopy() *PocketSetStatus

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

func (*PocketSetStatus) DeepCopyInto

func (in *PocketSetStatus) DeepCopyInto(out *PocketSetStatus)

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

type PocketValidator

type PocketValidator struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PocketValidatorSpec   `json:"spec,omitempty"`
	Status            PocketValidatorStatus `json:"status,omitempty"`
}

PocketValidator is the Schema for the pocketvalidators API.

func (*PocketValidator) DeepCopy

func (in *PocketValidator) DeepCopy() *PocketValidator

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

func (*PocketValidator) DeepCopyInto

func (in *PocketValidator) DeepCopyInto(out *PocketValidator)

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

func (*PocketValidator) DeepCopyObject

func (in *PocketValidator) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PocketValidator) GetChildResourceConditions

func (component *PocketValidator) GetChildResourceConditions() []*status.ChildResource

GetResources returns the child resource status for a component.

func (*PocketValidator) GetDependencies

func (*PocketValidator) GetDependencies() []workload.Workload

GetDependencies returns the dependencies for a component.

func (*PocketValidator) GetDependencyStatus

func (component *PocketValidator) GetDependencyStatus() bool

GetDependencyStatus returns the dependency status for a component.

func (*PocketValidator) GetPhaseConditions

func (component *PocketValidator) GetPhaseConditions() []*status.PhaseCondition

GetPhaseConditions returns the phase conditions for a component.

func (*PocketValidator) GetReadyStatus

func (component *PocketValidator) GetReadyStatus() bool

GetReadyStatus returns the ready status for a component.

func (*PocketValidator) GetWorkloadGVK

func (*PocketValidator) GetWorkloadGVK() schema.GroupVersionKind

GetComponentGVK returns a GVK object for the component.

func (*PocketValidator) SetChildResourceCondition

func (component *PocketValidator) SetChildResourceCondition(resource *status.ChildResource)

SetResources sets the phase conditions for a component.

func (*PocketValidator) SetDependencyStatus

func (component *PocketValidator) SetDependencyStatus(dependencyStatus bool)

SetDependencyStatus sets the dependency status for a component.

func (*PocketValidator) SetPhaseCondition

func (component *PocketValidator) SetPhaseCondition(condition *status.PhaseCondition)

SetPhaseCondition sets the phase conditions for a component.

func (*PocketValidator) SetReadyStatus

func (component *PocketValidator) SetReadyStatus(ready bool)

SetReadyStatus sets the ready status for a component.

type PocketValidatorCollectionSpec

type PocketValidatorCollectionSpec struct {
	// +kubebuilder:validation:Required
	// Required if specifying collection.  The name of the collection
	// within a specific collection.namespace to reference.
	Name string `json:"name"`

	// +kubebuilder:validation:Optional
	// (Default: "") The namespace where the collection exists.  Required only if
	// the collection is namespace scoped and not cluster scoped.
	Namespace string `json:"namespace"`
}

func (*PocketValidatorCollectionSpec) DeepCopy

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

func (*PocketValidatorCollectionSpec) DeepCopyInto

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

type PocketValidatorList

type PocketValidatorList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PocketValidator `json:"items"`
}

PocketValidatorList contains a list of PocketValidator.

func (*PocketValidatorList) DeepCopy

func (in *PocketValidatorList) DeepCopy() *PocketValidatorList

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

func (*PocketValidatorList) DeepCopyInto

func (in *PocketValidatorList) DeepCopyInto(out *PocketValidatorList)

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

func (*PocketValidatorList) DeepCopyObject

func (in *PocketValidatorList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PocketValidatorSpec

type PocketValidatorSpec struct {

	// +kubebuilder:validation:Optional
	// Specifies a reference to the collection to use for this workload.
	// Requires the name and namespace input to find the collection.
	// If no collection field is set, default to selecting the only
	// workload collection in the cluster, which will result in an error
	// if not exactly one collection is found.
	Collection PocketValidatorCollectionSpec `json:"collection"`

	// +kubebuilder:default=false
	// +kubebuilder:validation:Optional
	// (Default: false)
	PrometheusScrape bool `json:"prometheusScrape,omitempty"`

	// +kubebuilder:validation:Required
	PocketImage string `json:"pocketImage,omitempty"`

	// +kubebuilder:validation:Optional
	Ports PocketValidatorSpecPorts `json:"ports,omitempty"`

	// +kubebuilder:validation:Optional
	PrivateKey PocketValidatorSpecPrivateKey `json:"privateKey,omitempty"`

	// +kubebuilder:validation:Optional
	Postgres PocketValidatorSpecPostgres `json:"postgres,omitempty"`
}

PocketValidatorSpec defines the desired state of PocketValidator.

func (*PocketValidatorSpec) DeepCopy

func (in *PocketValidatorSpec) DeepCopy() *PocketValidatorSpec

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

func (*PocketValidatorSpec) DeepCopyInto

func (in *PocketValidatorSpec) DeepCopyInto(out *PocketValidatorSpec)

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

type PocketValidatorSpecPorts

type PocketValidatorSpecPorts struct {
	// +kubebuilder:default=42069
	// +kubebuilder:validation:Optional
	// (Default: 42069)
	Consensus int `json:"consensus,omitempty"`

	// +kubebuilder:default=50832
	// +kubebuilder:validation:Optional
	// (Default: 50832)
	Rpc int `json:"rpc,omitempty"`

	// +kubebuilder:default=9000
	// +kubebuilder:validation:Optional
	// (Default: 9000)
	Metrics int `json:"metrics,omitempty"`
}

func (*PocketValidatorSpecPorts) DeepCopy

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

func (*PocketValidatorSpecPorts) DeepCopyInto

func (in *PocketValidatorSpecPorts) DeepCopyInto(out *PocketValidatorSpecPorts)

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

type PocketValidatorSpecPostgres

type PocketValidatorSpecPostgres struct {
	// +kubebuilder:validation:Optional
	User PocketValidatorSpecPostgresUser `json:"user,omitempty"`

	// +kubebuilder:validation:Optional
	Password PocketValidatorSpecPostgresPassword `json:"password,omitempty"`

	// +kubebuilder:validation:Required
	Host string `json:"host,omitempty"`

	// +kubebuilder:validation:Required
	Port string `json:"port,omitempty"`

	// +kubebuilder:default="validatordb"
	// +kubebuilder:validation:Optional
	// (Default: "validatordb")
	Database string `json:"database,omitempty"`

	// +kubebuilder:default="v1-validator1"
	// +kubebuilder:validation:Optional
	// (Default: "v1-validator1")
	Schema string `json:"schema,omitempty"`
}

func (*PocketValidatorSpecPostgres) DeepCopy

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

func (*PocketValidatorSpecPostgres) DeepCopyInto

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

type PocketValidatorSpecPostgresPassword

type PocketValidatorSpecPostgresPassword struct {
	// +kubebuilder:validation:Optional
	SecretKeyRef PocketValidatorSpecPostgresPasswordSecretKeyRef `json:"secretKeyRef,omitempty"`
}

func (*PocketValidatorSpecPostgresPassword) DeepCopy

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

func (*PocketValidatorSpecPostgresPassword) DeepCopyInto

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

type PocketValidatorSpecPostgresPasswordSecretKeyRef

type PocketValidatorSpecPostgresPasswordSecretKeyRef struct {
	// +kubebuilder:validation:Required
	Name string `json:"name,omitempty"`

	// +kubebuilder:validation:Required
	Key string `json:"key,omitempty"`
}

func (*PocketValidatorSpecPostgresPasswordSecretKeyRef) DeepCopy

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

func (*PocketValidatorSpecPostgresPasswordSecretKeyRef) DeepCopyInto

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

type PocketValidatorSpecPostgresUser

type PocketValidatorSpecPostgresUser struct {
	// +kubebuilder:validation:Optional
	SecretKeyRef PocketValidatorSpecPostgresUserSecretKeyRef `json:"secretKeyRef,omitempty"`
}

func (*PocketValidatorSpecPostgresUser) DeepCopy

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

func (*PocketValidatorSpecPostgresUser) DeepCopyInto

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

type PocketValidatorSpecPostgresUserSecretKeyRef

type PocketValidatorSpecPostgresUserSecretKeyRef struct {
	// +kubebuilder:validation:Required
	Name string `json:"name,omitempty"`

	// +kubebuilder:validation:Required
	Key string `json:"key,omitempty"`
}

func (*PocketValidatorSpecPostgresUserSecretKeyRef) DeepCopy

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

func (*PocketValidatorSpecPostgresUserSecretKeyRef) DeepCopyInto

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

type PocketValidatorSpecPrivateKey

type PocketValidatorSpecPrivateKey struct {
	// +kubebuilder:validation:Optional
	SecretKeyRef PocketValidatorSpecPrivateKeySecretKeyRef `json:"secretKeyRef,omitempty"`
}

func (*PocketValidatorSpecPrivateKey) DeepCopy

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

func (*PocketValidatorSpecPrivateKey) DeepCopyInto

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

type PocketValidatorSpecPrivateKeySecretKeyRef

type PocketValidatorSpecPrivateKeySecretKeyRef struct {
	// +kubebuilder:validation:Required
	Name string `json:"name,omitempty"`

	// +kubebuilder:validation:Required
	Key string `json:"key,omitempty"`
}

func (*PocketValidatorSpecPrivateKeySecretKeyRef) DeepCopy

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

func (*PocketValidatorSpecPrivateKeySecretKeyRef) DeepCopyInto

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

type PocketValidatorStatus

type PocketValidatorStatus struct {
	Created               bool                     `json:"created,omitempty"`
	DependenciesSatisfied bool                     `json:"dependenciesSatisfied,omitempty"`
	Conditions            []*status.PhaseCondition `json:"conditions,omitempty"`
	Resources             []*status.ChildResource  `json:"resources,omitempty"`
}

PocketValidatorStatus defines the observed state of PocketValidator.

func (*PocketValidatorStatus) DeepCopy

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

func (*PocketValidatorStatus) DeepCopyInto

func (in *PocketValidatorStatus) DeepCopyInto(out *PocketValidatorStatus)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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