v1alpha1

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the tyk v1alpha1 API group +kubebuilder:object:generate=true +groupName=tyk.tyk.io

Index

Constants

View Source
const (

	// WatchNamespace is the constant for env variable WATCH_NAMESPACE
	// which specifies the Namespace to watch.
	// An empty value means the operator is running with cluster scope.
	WatchNamespace = "WATCH_NAMESPACE"

	// TykMode defines what environment the operator is running. The values are ce
	// for community edition and pro for pro version
	TykMode = "TYK_MODE"

	// TykURL holds the url to either tyk gateway or tyk dashboard
	TykURL = "TYK_URL"

	// TykAuth holds the authorization token used to make api calls to the
	// gateway/dashboard
	TykAuth = "TYK_AUTH"

	// TykORG holds the org id which perform api tasks with
	TykORG = "TYK_ORG"

	// SkipVerify the client will skip tls verification if this is true
	SkipVerify = "TYK_TLS_INSECURE_SKIP_VERIFY"

	// IngressClass overides the default class to watch for ingress
	IngressClass = "WATCH_INGRESS_CLASS"

	IngressTLSPort = "TYK_HTTPS_INGRESS_PORT"

	IngressHTTPPort = "TYK_HTTP_INGRESS_PORT"

	TykUserOwners = "TYK_USER_OWNERS"

	TykUserGroupOwners = "TYK_USER_GROUP_OWNERS"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "tyk.tyk.io", 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 (
	ErrEmptyValue = "can't be empty"
)

log is for logging in this package.

Functions

This section is empty.

Types

type APIDefinitionSpec

type APIDefinitionSpec struct {
	model.APIDefinitionSpec `json:",inline"`
	// Context specify namespace/name of the OperatorContext object used for
	// reconciling this APIDefinition
	Context *model.Target `json:"contextRef,omitempty"`
}

APIDefinitionSpec represents the configuration for a single proxied API and it's versions. +kubebuilder:object:generate=true

func (*APIDefinitionSpec) DeepCopy

func (in *APIDefinitionSpec) DeepCopy() *APIDefinitionSpec

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

func (*APIDefinitionSpec) DeepCopyInto

func (in *APIDefinitionSpec) DeepCopyInto(out *APIDefinitionSpec)

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

type APIDescription added in v0.7.0

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

	Spec   APIDescriptionSpec   `json:"spec,omitempty"`
	Status APIDescriptionStatus `json:"status,omitempty"`
}

APIDescription is the Schema for the apidescriptions API +kubebuilder:resource:categories=tyk

func (*APIDescription) DeepCopy added in v0.7.0

func (in *APIDescription) DeepCopy() *APIDescription

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

func (*APIDescription) DeepCopyInto added in v0.7.0

func (in *APIDescription) DeepCopyInto(out *APIDescription)

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

func (*APIDescription) DeepCopyObject added in v0.7.0

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

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

type APIDescriptionBase added in v0.7.0

type APIDescriptionBase struct {
	model.APIDescription `json:",inline"`
	APIDocumentation     *APIDocumentation `json:"docs,omitempty"`
	PolicyRef            *model.Target     `json:"policyRef,omitempty"`
}

func (*APIDescriptionBase) DeepCopy added in v0.7.0

func (in *APIDescriptionBase) DeepCopy() *APIDescriptionBase

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

func (*APIDescriptionBase) DeepCopyInto added in v0.7.0

func (in *APIDescriptionBase) DeepCopyInto(out *APIDescriptionBase)

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

type APIDescriptionList added in v0.7.0

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

APIDescriptionList contains a list of APIDescription

func (*APIDescriptionList) DeepCopy added in v0.7.0

func (in *APIDescriptionList) DeepCopy() *APIDescriptionList

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

func (*APIDescriptionList) DeepCopyInto added in v0.7.0

func (in *APIDescriptionList) DeepCopyInto(out *APIDescriptionList)

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

func (*APIDescriptionList) DeepCopyObject added in v0.7.0

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

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

type APIDescriptionSpec added in v0.7.0

type APIDescriptionSpec struct {
	APIDescriptionBase `json:",inline"`
	Context            *model.Target `json:"contextRef,omitempty"`
}

APIDescriptionSpec defines the desired state of APIDescription

func (*APIDescriptionSpec) DeepCopy added in v0.7.0

func (in *APIDescriptionSpec) DeepCopy() *APIDescriptionSpec

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

func (*APIDescriptionSpec) DeepCopyInto added in v0.7.0

func (in *APIDescriptionSpec) DeepCopyInto(out *APIDescriptionSpec)

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

type APIDescriptionStatus added in v0.7.0

type APIDescriptionStatus struct{}

APIDescriptionStatus defines the observed state of APIDescription

func (*APIDescriptionStatus) DeepCopy added in v0.7.0

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

func (*APIDescriptionStatus) DeepCopyInto added in v0.7.0

func (in *APIDescriptionStatus) DeepCopyInto(out *APIDescriptionStatus)

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

type APIDocumentation added in v0.7.0

type APIDocumentation struct {
	DocumentationType model.DocumentationType `json:"doc_type"`
	Documentation     string                  `json:"documentation,omitempty"`
}

func (*APIDocumentation) DeepCopy added in v0.7.0

func (in *APIDocumentation) DeepCopy() *APIDocumentation

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

func (*APIDocumentation) DeepCopyInto added in v0.7.0

func (in *APIDocumentation) DeepCopyInto(out *APIDocumentation)

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

type ApiDefinition

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

	Spec   APIDefinitionSpec   `json:"spec,omitempty"`
	Status ApiDefinitionStatus `json:"status,omitempty"`
}

ApiDefinition is the Schema for the apidefinitions API +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Domain",type=string,JSONPath=`.spec.domain` +kubebuilder:printcolumn:name="ListenPath",type=string,JSONPath=`.spec.proxy.listen_path` +kubebuilder:printcolumn:name="Proxy.TargetURL",type=string,JSONPath=`.spec.proxy.target_url` +kubebuilder:printcolumn:name="Enabled",type=boolean,JSONPath=`.spec.active` +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.latestTransaction.status` +kubebuilder:resource:categories="tyk",shortName="tykapis"

func (*ApiDefinition) DeepCopy

func (in *ApiDefinition) DeepCopy() *ApiDefinition

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

func (*ApiDefinition) DeepCopyInto

func (in *ApiDefinition) DeepCopyInto(out *ApiDefinition)

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

func (*ApiDefinition) DeepCopyObject

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

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

func (*ApiDefinition) Default

func (in *ApiDefinition) Default()

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

func (*ApiDefinition) SetupWebhookWithManager

func (in *ApiDefinition) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ApiDefinition) ValidateCreate

func (in *ApiDefinition) ValidateCreate() error

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

func (*ApiDefinition) ValidateDelete

func (in *ApiDefinition) ValidateDelete() error

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

func (*ApiDefinition) ValidateUpdate

func (in *ApiDefinition) ValidateUpdate(old runtime.Object) error

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

type ApiDefinitionList

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

ApiDefinitionList contains a list of ApiDefinition +kubebuilder:object:root=true

func (*ApiDefinitionList) DeepCopy

func (in *ApiDefinitionList) DeepCopy() *ApiDefinitionList

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

func (*ApiDefinitionList) DeepCopyInto

func (in *ApiDefinitionList) DeepCopyInto(out *ApiDefinitionList)

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

func (*ApiDefinitionList) DeepCopyObject

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

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

type ApiDefinitionStatus

type ApiDefinitionStatus struct {
	ApiID string `json:"api_id"`

	// LinkedByPolicies is a list policies that references this api definition
	//+optional
	LinkedByPolicies []model.Target `json:"linked_by_policies,omitempty"`

	// LinkedByAPIs is a list of ApiDefinition namespaced/name that links to this
	// resource
	LinkedByAPIs []model.Target `json:"linked_by_apis,omitempty"`

	// LinkedToAPIs is a list of ApiDefinition namespaced/name that this resource
	// links to.
	LinkedToAPIs []model.Target `json:"linked_to_apis,omitempty"`

	// LinkedToSubgraph corresponds to the name of the Subgraph CR if the ApiDefinition is GraphQL Federation Subgraph.
	// ApiDefinition CR can only be linked to Subgraph CRs that are created in the same namespace as ApiDefinition CR.
	LinkedToSubgraph string `json:"linked_to_subgraph,omitempty"`

	// LatestTykSpecHash stores the hash of ApiDefinition created on Tyk. This information is updated after
	// creating or updating the ApiDefinition. It is useful for Operator to understand running update
	// operation or not. If there is a change in latestTykSpecHash as well as latestCRDSpecHash, Operator
	// runs update logic and updates resources on Tyk Gateway or Tyk Dashboard.
	LatestTykSpecHash string `json:"latestTykSpecHash,omitempty"`

	// LatestCRDSpecHash stores the hash of ApiDefinition CRD created on K8s. This information is updated after
	// creating or updating the ApiDefinition. It is useful for Operator to understand running update
	// operation or not. If there is a change in latestCRDSpecHash as well as latestTykSpecHash, Operator
	// runs update logic and updates resources on Tyk Gateway or Tyk Dashboard.
	LatestCRDSpecHash string `json:"latestCRDSpecHash,omitempty"`

	LatestTransaction TransactionInfo `json:"latestTransaction,omitempty"`
}

ApiDefinitionStatus defines the observed state of ApiDefinition

func (*ApiDefinitionStatus) DeepCopy

func (in *ApiDefinitionStatus) DeepCopy() *ApiDefinitionStatus

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

func (*ApiDefinitionStatus) DeepCopyInto

func (in *ApiDefinitionStatus) DeepCopyInto(out *ApiDefinitionStatus)

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

type Environment added in v0.7.0

type Environment struct {
	Mode               OperatorContextMode `json:"mode,omitempty"`
	URL                string              `json:"url,omitempty"`
	Auth               string              `json:"auth,omitempty"`
	Org                string              `json:"org,omitempty"`
	Ingress            Ingress             `json:"ingress,omitempty"`
	InsecureSkipVerify bool                `json:"insecureSkipVerify,omitempty"`
	UserOwners         []string            `json:"user_owners,omitempty"`
	UserGroupOwners    []string            `json:"user_group_owners,omitempty"`
}

func (*Environment) DeepCopy added in v0.7.0

func (in *Environment) DeepCopy() *Environment

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

func (*Environment) DeepCopyInto added in v0.7.0

func (in *Environment) DeepCopyInto(out *Environment)

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

type Ingress added in v0.7.0

type Ingress struct {
	HTTPPort  int `json:"httpPort,omitempty"`
	HTTPSPort int `json:"httpsPort,omitempty"`
}

func (*Ingress) DeepCopy added in v0.7.0

func (in *Ingress) DeepCopy() *Ingress

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

func (*Ingress) DeepCopyInto added in v0.7.0

func (in *Ingress) DeepCopyInto(out *Ingress)

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

type OperatorContext added in v0.7.0

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

	Spec   OperatorContextSpec   `json:"spec,omitempty"`
	Status OperatorContextStatus `json:"status,omitempty"`
}

OperatorContext is the Schema for the operatorcontexts API +kubebuilder:resource:categories=tyk

func (*OperatorContext) DeepCopy added in v0.7.0

func (in *OperatorContext) DeepCopy() *OperatorContext

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

func (*OperatorContext) DeepCopyInto added in v0.7.0

func (in *OperatorContext) DeepCopyInto(out *OperatorContext)

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

func (*OperatorContext) DeepCopyObject added in v0.7.0

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

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

type OperatorContextList added in v0.7.0

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

OperatorContextList contains a list of OperatorContext

func (*OperatorContextList) DeepCopy added in v0.7.0

func (in *OperatorContextList) DeepCopy() *OperatorContextList

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

func (*OperatorContextList) DeepCopyInto added in v0.7.0

func (in *OperatorContextList) DeepCopyInto(out *OperatorContextList)

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

func (*OperatorContextList) DeepCopyObject added in v0.7.0

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

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

type OperatorContextMode added in v0.7.0

type OperatorContextMode string

OperatorContextMode is the mode to which the admin api binding is done values are ce for community edition and pro for dashboard +kubebuilder:validation:Enum=ce;pro

type OperatorContextSpec added in v0.7.0

type OperatorContextSpec struct {
	// Reference to k8s secret resource that we load environment from.
	FromSecret *model.Target `json:"secretRef,omitempty"`
	// Env is the values of the admin api endpoint that the operator will use to
	// reconcile resources
	Env *Environment `json:"env,omitempty"`
}

OperatorContextSpec defines the desired state of OperatorContext

func (*OperatorContextSpec) DeepCopy added in v0.7.0

func (in *OperatorContextSpec) DeepCopy() *OperatorContextSpec

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

func (*OperatorContextSpec) DeepCopyInto added in v0.7.0

func (in *OperatorContextSpec) DeepCopyInto(out *OperatorContextSpec)

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

type OperatorContextStatus added in v0.7.0

type OperatorContextStatus struct {
	LinkedApiDefinitions      []model.Target `json:"linked_api_definitions,omitempty"`
	LinkedApiDescriptions     []model.Target `json:"linked_api_descriptions,omitempty"`
	LinkedPortalAPICatalogues []model.Target `json:"linked_portal_catalogues,omitempty"`
	LinkedSecurityPolicies    []model.Target `json:"linked_security_policies,omitempty"`
	LinkedPortalConfigs       []model.Target `json:"linked_portal_configs,omitempty"`
}

OperatorContextStatus defines the observed state of OperatorContext

func (*OperatorContextStatus) AddLinkedAPIDefinition added in v0.8.2

func (opStatus *OperatorContextStatus) AddLinkedAPIDefinition(target model.Target)

func (*OperatorContextStatus) AddLinkedApiDescriptions added in v0.8.2

func (opStatus *OperatorContextStatus) AddLinkedApiDescriptions(target model.Target)

func (*OperatorContextStatus) AddLinkedPortalAPICatalogues added in v0.8.2

func (opStatus *OperatorContextStatus) AddLinkedPortalAPICatalogues(target model.Target)

func (*OperatorContextStatus) AddLinkedPortalConfig added in v0.8.2

func (opStatus *OperatorContextStatus) AddLinkedPortalConfig(target model.Target)

func (*OperatorContextStatus) AddLinkedSecurityPolicies added in v0.8.2

func (opStatus *OperatorContextStatus) AddLinkedSecurityPolicies(target model.Target)

func (*OperatorContextStatus) DeepCopy added in v0.7.0

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

func (*OperatorContextStatus) DeepCopyInto added in v0.7.0

func (in *OperatorContextStatus) DeepCopyInto(out *OperatorContextStatus)

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

func (*OperatorContextStatus) RemoveLinkedAPIDefinition added in v0.8.2

func (opStatus *OperatorContextStatus) RemoveLinkedAPIDefinition(target model.Target)

func (*OperatorContextStatus) RemoveLinkedApiDescriptions added in v0.8.2

func (opStatus *OperatorContextStatus) RemoveLinkedApiDescriptions(target model.Target)

func (*OperatorContextStatus) RemoveLinkedPortalAPICatalogues added in v0.8.2

func (opStatus *OperatorContextStatus) RemoveLinkedPortalAPICatalogues(target model.Target)

func (*OperatorContextStatus) RemoveLinkedPortalConfig added in v0.8.2

func (opStatus *OperatorContextStatus) RemoveLinkedPortalConfig(target model.Target)

func (*OperatorContextStatus) RemoveLinkedSecurityPolicies added in v0.8.2

func (opStatus *OperatorContextStatus) RemoveLinkedSecurityPolicies(target model.Target)

type PortalAPICatalogue added in v0.7.0

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

	Spec   PortalAPICatalogueSpec   `json:"spec,omitempty"`
	Status PortalAPICatalogueStatus `json:"status,omitempty"`
}

PortalAPICatalogue is the Schema for the portalapicatalogues API

func (*PortalAPICatalogue) DeepCopy added in v0.7.0

func (in *PortalAPICatalogue) DeepCopy() *PortalAPICatalogue

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

func (*PortalAPICatalogue) DeepCopyInto added in v0.7.0

func (in *PortalAPICatalogue) DeepCopyInto(out *PortalAPICatalogue)

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

func (*PortalAPICatalogue) DeepCopyObject added in v0.7.0

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

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

type PortalAPICatalogueList added in v0.7.0

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

PortalAPICatalogueList contains a list of PortalAPICatalogue

func (*PortalAPICatalogueList) DeepCopy added in v0.7.0

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

func (*PortalAPICatalogueList) DeepCopyInto added in v0.7.0

func (in *PortalAPICatalogueList) DeepCopyInto(out *PortalAPICatalogueList)

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

func (*PortalAPICatalogueList) DeepCopyObject added in v0.7.0

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

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

type PortalAPICatalogueSpec added in v0.7.0

type PortalAPICatalogueSpec struct {
	// OrgID is the organization ID
	OrgID string `json:"org_id,omitempty"`

	// Email is Catalogue owner email address.Catalogue owner will be notified at
	// this email address when an API subscription request is submitted or granted
	Email string `json:"email,omitempty"`

	// APIDescriptionList is a list of PortalCatalogueDescription published on this PortalAPICatalogue
	APIDescriptionList []*PortalCatalogueDescription `json:"apis,omitempty"`
	// Context is reference to OperatorContext resource. Set this if you want to
	// target a specific OperatorContext. When omitted default OperatorContext is
	// used.
	Context *model.Target `json:"contextRef,omitempty"`
}

PortalAPICatalogueSpec defines the desired state of PortalAPICatalogue

func (*PortalAPICatalogueSpec) DeepCopy added in v0.7.0

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

func (*PortalAPICatalogueSpec) DeepCopyInto added in v0.7.0

func (in *PortalAPICatalogueSpec) DeepCopyInto(out *PortalAPICatalogueSpec)

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

type PortalAPICatalogueStatus added in v0.7.0

type PortalAPICatalogueStatus struct {
	// ID is the mongo ID of the PortalAPICatalogue object created by the dashboard.
	ID string `json:"id,omitempty"`
}

PortalAPICatalogueStatus defines the observed state of PortalAPICatalogue

func (*PortalAPICatalogueStatus) DeepCopy added in v0.7.0

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

func (*PortalAPICatalogueStatus) DeepCopyInto added in v0.7.0

func (in *PortalAPICatalogueStatus) DeepCopyInto(out *PortalAPICatalogueStatus)

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

type PortalCatalogueDescription added in v0.7.0

type PortalCatalogueDescription struct {
	APIDescriptionBase `json:",inline"`
	APIDescriptionRef  *model.Target `json:"apiDescriptionRef,omitempty"`
}

func (*PortalCatalogueDescription) DeepCopy added in v0.7.0

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

func (*PortalCatalogueDescription) DeepCopyInto added in v0.7.0

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

type PortalConfig added in v0.7.0

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

	Spec   PortalConfigSpec   `json:"spec,omitempty"`
	Status PortalConfigStatus `json:"status,omitempty"`
}

PortalConfig is the Schema for the portalconfigs API +kubebuilder:resource:categories=tyk

func (*PortalConfig) DeepCopy added in v0.7.0

func (in *PortalConfig) DeepCopy() *PortalConfig

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

func (*PortalConfig) DeepCopyInto added in v0.7.0

func (in *PortalConfig) DeepCopyInto(out *PortalConfig)

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

func (*PortalConfig) DeepCopyObject added in v0.7.0

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

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

type PortalConfigList added in v0.7.0

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

PortalConfigList contains a list of PortalConfig

func (*PortalConfigList) DeepCopy added in v0.7.0

func (in *PortalConfigList) DeepCopy() *PortalConfigList

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

func (*PortalConfigList) DeepCopyInto added in v0.7.0

func (in *PortalConfigList) DeepCopyInto(out *PortalConfigList)

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

func (*PortalConfigList) DeepCopyObject added in v0.7.0

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

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

type PortalConfigSpec added in v0.7.0

type PortalConfigSpec struct {
	model.PortalModelPortalConfig `json:",inline"`
	Context                       *model.Target `json:"contextRef,omitempty"`
}

PortalConfigSpec defines the desired state of PortalConfig

func (*PortalConfigSpec) DeepCopy added in v0.7.0

func (in *PortalConfigSpec) DeepCopy() *PortalConfigSpec

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

func (*PortalConfigSpec) DeepCopyInto added in v0.7.0

func (in *PortalConfigSpec) DeepCopyInto(out *PortalConfigSpec)

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

type PortalConfigStatus added in v0.7.0

type PortalConfigStatus struct {
	ID string `json:"id,omitempty"`
}

PortalConfigStatus defines the observed state of PortalConfig

func (*PortalConfigStatus) DeepCopy added in v0.7.0

func (in *PortalConfigStatus) DeepCopy() *PortalConfigStatus

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

func (*PortalConfigStatus) DeepCopyInto added in v0.7.0

func (in *PortalConfigStatus) DeepCopyInto(out *PortalConfigStatus)

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

type SecurityPolicy

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

	Spec   SecurityPolicySpec   `json:"spec,omitempty"`
	Status SecurityPolicyStatus `json:"status,omitempty"`
}

SecurityPolicy is the Schema for the securitypolicies API +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:categories="tyk",shortName="tykpolicies"

func (*SecurityPolicy) DeepCopy

func (in *SecurityPolicy) DeepCopy() *SecurityPolicy

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

func (*SecurityPolicy) DeepCopyInto

func (in *SecurityPolicy) DeepCopyInto(out *SecurityPolicy)

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

func (*SecurityPolicy) DeepCopyObject

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

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

func (*SecurityPolicy) Default

func (r *SecurityPolicy) Default()

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

func (*SecurityPolicy) SetupWebhookWithManager

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

func (*SecurityPolicy) ValidateCreate

func (r *SecurityPolicy) ValidateCreate() error

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

func (*SecurityPolicy) ValidateDelete

func (r *SecurityPolicy) ValidateDelete() error

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

func (*SecurityPolicy) ValidateUpdate

func (r *SecurityPolicy) ValidateUpdate(old runtime.Object) error

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

type SecurityPolicyList

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

SecurityPolicyList contains a list of SecurityPolicy +kubebuilder:object:root=true

func (*SecurityPolicyList) DeepCopy

func (in *SecurityPolicyList) DeepCopy() *SecurityPolicyList

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

func (*SecurityPolicyList) DeepCopyInto

func (in *SecurityPolicyList) DeepCopyInto(out *SecurityPolicyList)

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

func (*SecurityPolicyList) DeepCopyObject

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

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

type SecurityPolicySpec

type SecurityPolicySpec struct {
	model.SecurityPolicySpec `json:",inline"`

	// Context specify namespace/name of the OperatorContext object used for
	// reconciling this APIDefinition
	Context *model.Target `json:"contextRef,omitempty"`
}

SecurityPolicySpec defines the desired state of SecurityPolicy

func (*SecurityPolicySpec) DeepCopy

func (in *SecurityPolicySpec) DeepCopy() *SecurityPolicySpec

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

func (*SecurityPolicySpec) DeepCopyInto

func (in *SecurityPolicySpec) DeepCopyInto(out *SecurityPolicySpec)

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

type SecurityPolicyStatus

type SecurityPolicyStatus struct {
	PolID      string         `json:"pol_id"`
	LinkedAPIs []model.Target `json:"linked_apis,omitempty"`

	LatestTykSpecHash string `json:"latestTykSpecHash,omitempty"`
	LatestCRDSpecHash string `json:"latestCRDSpecHash,omitempty"`
}

SecurityPolicyStatus defines the observed state of SecurityPolicy

func (*SecurityPolicyStatus) DeepCopy

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

func (*SecurityPolicyStatus) DeepCopyInto

func (in *SecurityPolicyStatus) DeepCopyInto(out *SecurityPolicyStatus)

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

type SubGraph added in v0.10.0

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

	Spec   SubGraphSpec   `json:"spec,omitempty"`
	Status SubGraphStatus `json:"status,omitempty"`
}

SubGraph is the Schema for the subgraphs API +kubebuilder:resource:categories=tyk

func (*SubGraph) DeepCopy added in v0.10.0

func (in *SubGraph) DeepCopy() *SubGraph

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

func (*SubGraph) DeepCopyInto added in v0.10.0

func (in *SubGraph) DeepCopyInto(out *SubGraph)

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

func (*SubGraph) DeepCopyObject added in v0.10.0

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

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

type SubGraphList added in v0.10.0

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

SubGraphList contains a list of SubGraph

func (*SubGraphList) DeepCopy added in v0.10.0

func (in *SubGraphList) DeepCopy() *SubGraphList

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

func (*SubGraphList) DeepCopyInto added in v0.10.0

func (in *SubGraphList) DeepCopyInto(out *SubGraphList)

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

func (*SubGraphList) DeepCopyObject added in v0.10.0

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

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

type SubGraphSpec added in v0.10.0

type SubGraphSpec struct {
	model.SubGraphSpec `json:",inline"`
}

SubGraphSpec defines the desired state of SubGraph

func (*SubGraphSpec) DeepCopy added in v0.10.0

func (in *SubGraphSpec) DeepCopy() *SubGraphSpec

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

func (*SubGraphSpec) DeepCopyInto added in v0.10.0

func (in *SubGraphSpec) DeepCopyInto(out *SubGraphSpec)

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

type SubGraphStatus added in v0.10.0

type SubGraphStatus struct {
	model.SubGraphStatus `json:",inline"`
}

SubGraphStatus defines the observed state of SubGraph

func (*SubGraphStatus) DeepCopy added in v0.10.0

func (in *SubGraphStatus) DeepCopy() *SubGraphStatus

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

func (*SubGraphStatus) DeepCopyInto added in v0.10.0

func (in *SubGraphStatus) DeepCopyInto(out *SubGraphStatus)

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

type SuperGraph added in v0.10.0

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

	Spec   SuperGraphSpec   `json:"spec,omitempty"`
	Status SuperGraphStatus `json:"status,omitempty"`
}

SuperGraph is the Schema for the supergraphs API +kubebuilder:resource:categories=tyk

func (*SuperGraph) DeepCopy added in v0.10.0

func (in *SuperGraph) DeepCopy() *SuperGraph

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

func (*SuperGraph) DeepCopyInto added in v0.10.0

func (in *SuperGraph) DeepCopyInto(out *SuperGraph)

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

func (*SuperGraph) DeepCopyObject added in v0.10.0

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

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

type SuperGraphList added in v0.10.0

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

SuperGraphList contains a list of SuperGraph

func (*SuperGraphList) DeepCopy added in v0.10.0

func (in *SuperGraphList) DeepCopy() *SuperGraphList

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

func (*SuperGraphList) DeepCopyInto added in v0.10.0

func (in *SuperGraphList) DeepCopyInto(out *SuperGraphList)

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

func (*SuperGraphList) DeepCopyObject added in v0.10.0

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

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

type SuperGraphSpec added in v0.10.0

type SuperGraphSpec struct {
	model.SuperGraphSpec `json:",inline"`
}

SuperGraphSpec defines the desired state of SuperGraph

func (*SuperGraphSpec) DeepCopy added in v0.10.0

func (in *SuperGraphSpec) DeepCopy() *SuperGraphSpec

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

func (*SuperGraphSpec) DeepCopyInto added in v0.10.0

func (in *SuperGraphSpec) DeepCopyInto(out *SuperGraphSpec)

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

type SuperGraphStatus added in v0.10.0

type SuperGraphStatus struct{}

SuperGraphStatus defines the observed state of SuperGraph

func (*SuperGraphStatus) DeepCopy added in v0.10.0

func (in *SuperGraphStatus) DeepCopy() *SuperGraphStatus

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

func (*SuperGraphStatus) DeepCopyInto added in v0.10.0

func (in *SuperGraphStatus) DeepCopyInto(out *SuperGraphStatus)

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

type TransactionInfo added in v0.15.0

type TransactionInfo struct {
	// Time corresponds to the time of last transaction.
	Time metav1.Time `json:"time,omitempty"`

	// Status corresponds to the status of the last transaction.
	Status TransactionStatus `json:"status,omitempty"`

	// Error corresponds to the error happened on Tyk API level, if any.
	Error string `json:"error,omitempty"`
}

TransactionInfo holds information about the status of object's reconciliation.

func (*TransactionInfo) DeepCopy added in v0.15.0

func (in *TransactionInfo) DeepCopy() *TransactionInfo

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

func (*TransactionInfo) DeepCopyInto added in v0.15.0

func (in *TransactionInfo) DeepCopyInto(out *TransactionInfo)

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

type TransactionStatus added in v0.15.0

type TransactionStatus string

TransactionStatus indicates the status of the Tyk API calls for currently reconciled object. Valid values are: - "Successful": showing that Tyk API calls on resource is completed successfully. - "Failed": showing that Tyk API calls on resource is failed.

const (
	// Successful shows that Tyk API calls on currently reconciled object finished successfully.
	Successful TransactionStatus = "Successful"

	// Failed shows that the operation on resource is failed due to Tyk API errors.
	Failed TransactionStatus = "Failed"
)

Jump to

Keyboard shortcuts

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