Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the nodes v1alpha1 API group +kubebuilder:object:generate=true +groupName=nodes.pokt.network
Index ¶
- Variables
- type PocketSet
- func (in *PocketSet) DeepCopy() *PocketSet
- func (in *PocketSet) DeepCopyInto(out *PocketSet)
- func (in *PocketSet) DeepCopyObject() runtime.Object
- func (component *PocketSet) GetChildResourceConditions() []*status.ChildResource
- func (*PocketSet) GetDependencies() []workload.Workload
- func (component *PocketSet) GetDependencyStatus() bool
- func (component *PocketSet) GetPhaseConditions() []*status.PhaseCondition
- func (component *PocketSet) GetReadyStatus() bool
- func (*PocketSet) GetWorkloadGVK() schema.GroupVersionKind
- func (component *PocketSet) SetChildResourceCondition(resource *status.ChildResource)
- func (component *PocketSet) SetDependencyStatus(dependencyStatus bool)
- func (component *PocketSet) SetPhaseCondition(condition *status.PhaseCondition)
- func (component *PocketSet) SetReadyStatus(ready bool)
- type PocketSetList
- type PocketSetSpec
- type PocketSetStatus
- type PocketValidator
- func (in *PocketValidator) DeepCopy() *PocketValidator
- func (in *PocketValidator) DeepCopyInto(out *PocketValidator)
- func (in *PocketValidator) DeepCopyObject() runtime.Object
- func (component *PocketValidator) GetChildResourceConditions() []*status.ChildResource
- func (*PocketValidator) GetDependencies() []workload.Workload
- func (component *PocketValidator) GetDependencyStatus() bool
- func (component *PocketValidator) GetPhaseConditions() []*status.PhaseCondition
- func (component *PocketValidator) GetReadyStatus() bool
- func (*PocketValidator) GetWorkloadGVK() schema.GroupVersionKind
- func (component *PocketValidator) SetChildResourceCondition(resource *status.ChildResource)
- func (component *PocketValidator) SetDependencyStatus(dependencyStatus bool)
- func (component *PocketValidator) SetPhaseCondition(condition *status.PhaseCondition)
- func (component *PocketValidator) SetReadyStatus(ready bool)
- type PocketValidatorCollectionSpec
- type PocketValidatorList
- type PocketValidatorSpec
- type PocketValidatorSpecPorts
- type PocketValidatorSpecPostgres
- type PocketValidatorSpecPostgresPassword
- type PocketValidatorSpecPostgresPasswordSecretKeyRef
- type PocketValidatorSpecPostgresUser
- type PocketValidatorSpecPostgresUserSecretKeyRef
- type PocketValidatorSpecPrivateKey
- type PocketValidatorSpecPrivateKeySecretKeyRef
- type PocketValidatorStatus
Constants ¶
This section is empty.
Variables ¶
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 )
var ErrUnableToConvertPocketSet = errors.New("unable to convert to PocketSet")
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PocketSet.
func (*PocketSet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PocketSet) DeepCopyObject ¶
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 ¶
GetDependencies returns the dependencies for a component.
func (*PocketSet) GetDependencyStatus ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (in *PocketValidatorCollectionSpec) DeepCopy() *PocketValidatorCollectionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PocketValidatorCollectionSpec.
func (*PocketValidatorCollectionSpec) DeepCopyInto ¶
func (in *PocketValidatorCollectionSpec) DeepCopyInto(out *PocketValidatorCollectionSpec)
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 ¶
func (in *PocketValidatorSpecPorts) DeepCopy() *PocketValidatorSpecPorts
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 ¶
func (in *PocketValidatorSpecPostgres) DeepCopy() *PocketValidatorSpecPostgres
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PocketValidatorSpecPostgres.
func (*PocketValidatorSpecPostgres) DeepCopyInto ¶
func (in *PocketValidatorSpecPostgres) DeepCopyInto(out *PocketValidatorSpecPostgres)
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 ¶
func (in *PocketValidatorSpecPostgresPassword) DeepCopy() *PocketValidatorSpecPostgresPassword
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PocketValidatorSpecPostgresPassword.
func (*PocketValidatorSpecPostgresPassword) DeepCopyInto ¶
func (in *PocketValidatorSpecPostgresPassword) DeepCopyInto(out *PocketValidatorSpecPostgresPassword)
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 ¶
func (in *PocketValidatorSpecPostgresPasswordSecretKeyRef) DeepCopy() *PocketValidatorSpecPostgresPasswordSecretKeyRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PocketValidatorSpecPostgresPasswordSecretKeyRef.
func (*PocketValidatorSpecPostgresPasswordSecretKeyRef) DeepCopyInto ¶
func (in *PocketValidatorSpecPostgresPasswordSecretKeyRef) DeepCopyInto(out *PocketValidatorSpecPostgresPasswordSecretKeyRef)
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 ¶
func (in *PocketValidatorSpecPostgresUser) DeepCopy() *PocketValidatorSpecPostgresUser
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PocketValidatorSpecPostgresUser.
func (*PocketValidatorSpecPostgresUser) DeepCopyInto ¶
func (in *PocketValidatorSpecPostgresUser) DeepCopyInto(out *PocketValidatorSpecPostgresUser)
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 ¶
func (in *PocketValidatorSpecPostgresUserSecretKeyRef) DeepCopy() *PocketValidatorSpecPostgresUserSecretKeyRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PocketValidatorSpecPostgresUserSecretKeyRef.
func (*PocketValidatorSpecPostgresUserSecretKeyRef) DeepCopyInto ¶
func (in *PocketValidatorSpecPostgresUserSecretKeyRef) DeepCopyInto(out *PocketValidatorSpecPostgresUserSecretKeyRef)
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 ¶
func (in *PocketValidatorSpecPrivateKey) DeepCopy() *PocketValidatorSpecPrivateKey
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PocketValidatorSpecPrivateKey.
func (*PocketValidatorSpecPrivateKey) DeepCopyInto ¶
func (in *PocketValidatorSpecPrivateKey) DeepCopyInto(out *PocketValidatorSpecPrivateKey)
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 ¶
func (in *PocketValidatorSpecPrivateKeySecretKeyRef) DeepCopy() *PocketValidatorSpecPrivateKeySecretKeyRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PocketValidatorSpecPrivateKeySecretKeyRef.
func (*PocketValidatorSpecPrivateKeySecretKeyRef) DeepCopyInto ¶
func (in *PocketValidatorSpecPrivateKeySecretKeyRef) DeepCopyInto(out *PocketValidatorSpecPrivateKeySecretKeyRef)
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 ¶
func (in *PocketValidatorStatus) DeepCopy() *PocketValidatorStatus
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.