v1alpha1

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the styra v1alpha1 API group.

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "styra.bankdata.dk", 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
)

Functions

This section is empty.

Types

type GlobalDatasource

type GlobalDatasource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GlobalDatasourceSpec   `json:"spec,omitempty"`
	Status GlobalDatasourceStatus `json:"status,omitempty"`
}

GlobalDatasource is a resource used for creating global datasources in Styra. These datasources are available across systems and can be used for shared data. GlobalDatasource can also be used to create libraries by using the GlobalDatasourceCategoryGitRego category.

func (*GlobalDatasource) DeepCopy

func (in *GlobalDatasource) DeepCopy() *GlobalDatasource

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

func (*GlobalDatasource) DeepCopyInto

func (in *GlobalDatasource) DeepCopyInto(out *GlobalDatasource)

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

func (*GlobalDatasource) DeepCopyObject

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

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

func (*GlobalDatasource) Default

func (r *GlobalDatasource) Default()

Default implements webhook.Defaulter so that a webhook can be registered for the type.

func (*GlobalDatasource) SetupWebhookWithManager

func (r *GlobalDatasource) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up the GlobalDatasource webhooks with the Manager.

func (*GlobalDatasource) ValidateCreate

func (r *GlobalDatasource) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so that a webhook can be registered for the type.

func (*GlobalDatasource) ValidateDelete

func (r *GlobalDatasource) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so that a webhook can be registered for the type.

func (*GlobalDatasource) ValidateUpdate

func (r *GlobalDatasource) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so that a webhook can be registered for the type.

type GlobalDatasourceCategory

type GlobalDatasourceCategory string

GlobalDatasourceCategory represents a datasource category. +kubebuilder:validation:Enum=git/rego

const (
	// GlobalDatasourceCategoryGitRego represents the git/rego datasource category.
	GlobalDatasourceCategoryGitRego GlobalDatasourceCategory = "git/rego"
)

type GlobalDatasourceList

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

GlobalDatasourceList represents a list of GlobalDatasource resources.

func (*GlobalDatasourceList) DeepCopy

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

func (*GlobalDatasourceList) DeepCopyInto

func (in *GlobalDatasourceList) DeepCopyInto(out *GlobalDatasourceList)

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

func (*GlobalDatasourceList) DeepCopyObject

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

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

type GlobalDatasourceSecretRef

type GlobalDatasourceSecretRef struct {
	// Namespace is the namespace where the secret resides.
	Namespace string `json:"namespace"`
	// Name is the name of the secret.
	Name string `json:"name"`
}

GlobalDatasourceSecretRef represents a reference to a secret.

func (*GlobalDatasourceSecretRef) DeepCopy

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

func (*GlobalDatasourceSecretRef) DeepCopyInto

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

type GlobalDatasourceSpec

type GlobalDatasourceSpec struct {
	// Name is the name to use for the global datasource in Styra DAS
	Name string `json:"name"`
	// Category is the datasource category. For more information about
	// supported categories see the available GlobalDatasourceCategory
	// constants in the package.
	Category GlobalDatasourceCategory `json:"category"`
	// Description describes the datasource.
	Description string `json:"description,omitempty"`
	// Enabled toggles whether or not the datasource should be enabled.
	Enabled *bool `json:"enabled,omitempty"`
	// PollingInterval sets the interval for when the datasource should be refreshed.
	PollingInterval string `json:"pollingInterval,omitempty"`
	// Commit is a commit SHA for the git/xx datasources. If `Reference` and this
	// is set, this takes precedence.
	Commit string `json:"commit,omitempty"`
	// CredentialsSecretRef references a secret with keys `name` and `secret`
	// which will be used for authentication.
	CredentialsSecretRef *GlobalDatasourceSecretRef `json:"credentialsSecretRef,omitempty"`
	// Reference is a git reference for the git/xx datasources.
	Reference string `json:"reference,omitempty"`
	// URL is used in http and git/xx datasources.
	URL string `json:"url,omitempty"`
	// DeletionProtection skips deleting the datasource in Styra when the
	// `GlobalDatasource` resource is deleted.
	DeletionProtection *bool `json:"deletionProtection,omitempty"`
	// Path is the path in git in git/xx datasources.
	Path string `json:"path,omitempty"`
}

GlobalDatasourceSpec is the specification of the GlobalDatasource.

func (*GlobalDatasourceSpec) DeepCopy

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

func (*GlobalDatasourceSpec) DeepCopyInto

func (in *GlobalDatasourceSpec) DeepCopyInto(out *GlobalDatasourceSpec)

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

type GlobalDatasourceStatus

type GlobalDatasourceStatus struct{}

GlobalDatasourceStatus holds the status of the GlobalDatasource resource.

func (*GlobalDatasourceStatus) DeepCopy

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

func (*GlobalDatasourceStatus) DeepCopyInto

func (in *GlobalDatasourceStatus) DeepCopyInto(out *GlobalDatasourceStatus)

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

Jump to

Keyboard shortcuts

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