v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the api v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=capabilities.3scale.net

Package v1alpha1 contains API Schema definitions for the api v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=capabilities.3scale.net

Index

Constants

View Source
const BINDING_FINALIZER = "binding.capabilities.3scale.net"
View Source
const (
	TenantKind = "Tenant"
)

Variables

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

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var CredentialTypeToBackendVersion = map[string]string{
	"OpenIDConnector": "oidc",
	"AppID":           "2",
	"APIKey":          "1",
}
View Source
var IntegrationMethodToDeploymentType = map[string]string{
	"ApicastHosted": "hosted",
	"ApicastOnPrem": "self_managed",
	"CodePlugin":    "plugin_rest",
}

Functions

func CompareInternalAPI

func CompareInternalAPI(APIA, APIB InternalAPI) bool

CompareInternalAPI Compares two InternalAPIs and return true or false.

func CompareStates

func CompareStates(A, B State) bool

CompareStates compares two state objects and return true if equal

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

Types

type API

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

	Spec   APISpec   `json:"spec,omitempty"`
	Status APIStatus `json:"status,omitempty"`
}

API is the Schema for the apis API +k8s:openapi-gen=true

func (*API) DeepCopy

func (in *API) DeepCopy() *API

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

func (*API) DeepCopyInto

func (in *API) DeepCopyInto(out *API)

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

func (*API) DeepCopyObject

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

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

func (API) GetInternalAPI

func (api API) GetInternalAPI(c client.Client) (*InternalAPI, error)

type APIBase

type APIBase struct {
	Description       string            `json:"description"`
	IntegrationMethod IntegrationMethod `json:"integrationMethod"`
}

func (*APIBase) DeepCopy

func (in *APIBase) DeepCopy() *APIBase

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

func (*APIBase) DeepCopyInto

func (in *APIBase) DeepCopyInto(out *APIBase)

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

type APIBaseInternal

type APIBaseInternal struct {
	APIBase `json:",omitempty"`
	// We shadow the APIBase IntegrationMethod to point to our Internal representation
	IntegrationMethod InternalIntegration `json:"integrationMethod"`
}

func (*APIBaseInternal) DeepCopy

func (in *APIBaseInternal) DeepCopy() *APIBaseInternal

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

func (*APIBaseInternal) DeepCopyInto

func (in *APIBaseInternal) DeepCopyInto(out *APIBaseInternal)

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

type APIKey

type APIKey struct {
	AuthParameterName   string `json:"authParameterName"`
	CredentialsLocation string `json:"credentialsLocation"`
}

func (*APIKey) DeepCopy

func (in *APIKey) DeepCopy() *APIKey

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

func (*APIKey) DeepCopyInto

func (in *APIKey) DeepCopyInto(out *APIKey)

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

type APIList

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

APIList contains a list of API

func (*APIList) DeepCopy

func (in *APIList) DeepCopy() *APIList

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

func (*APIList) DeepCopyInto

func (in *APIList) DeepCopyInto(out *APIList)

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

func (*APIList) DeepCopyObject

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

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

type APIPair

type APIPair struct {
	A InternalAPI
	B InternalAPI
}

func (*APIPair) DeepCopy

func (in *APIPair) DeepCopy() *APIPair

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

func (*APIPair) DeepCopyInto

func (in *APIPair) DeepCopyInto(out *APIPair)

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

type APISelectors

type APISelectors struct {
	// +optional
	PlanSelector *metav1.LabelSelector `json:"planSelector,omitempty"`
	// +optional
	MetricSelector *metav1.LabelSelector `json:"metricSelector,omitempty"`
}

func (*APISelectors) DeepCopy

func (in *APISelectors) DeepCopy() *APISelectors

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

func (*APISelectors) DeepCopyInto

func (in *APISelectors) DeepCopyInto(out *APISelectors)

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

type APISpec

type APISpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	APIBase      `json:",inline"`
	APISelectors `json:",inline"`
}

APISpec defines the desired state of API

func (*APISpec) DeepCopy

func (in *APISpec) DeepCopy() *APISpec

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

func (*APISpec) DeepCopyInto

func (in *APISpec) DeepCopyInto(out *APISpec)

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

type APIStatus

type APIStatus struct {
}

APIStatus defines the observed state of API

func (*APIStatus) DeepCopy

func (in *APIStatus) DeepCopy() *APIStatus

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

func (*APIStatus) DeepCopyInto

func (in *APIStatus) DeepCopyInto(out *APIStatus)

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

type APIcastBaseOptions

type APIcastBaseOptions struct {
	PrivateBaseURL         string                        `json:"privateBaseURL"`
	APITestGetRequest      string                        `json:"apiTestGetRequest"`
	AuthenticationSettings ApicastAuthenticationSettings `json:"authenticationSettings"`
}

func (*APIcastBaseOptions) DeepCopy

func (in *APIcastBaseOptions) DeepCopy() *APIcastBaseOptions

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

func (*APIcastBaseOptions) DeepCopyInto

func (in *APIcastBaseOptions) DeepCopyInto(out *APIcastBaseOptions)

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

type APIcastBaseSelectors

type APIcastBaseSelectors struct {
	// +optional
	MappingRulesSelector *metav1.LabelSelector `json:"mappingRulesSelector,omitempty"`
	// +optional
	PoliciesSelector *metav1.LabelSelector `json:"policiesSelector,omitempty"`
}

func (*APIcastBaseSelectors) DeepCopy

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

func (*APIcastBaseSelectors) DeepCopyInto

func (in *APIcastBaseSelectors) DeepCopyInto(out *APIcastBaseSelectors)

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

type APIsDiff

type APIsDiff struct {
	MissingFromA []InternalAPI
	MissingFromB []InternalAPI
	Equal        []InternalAPI
	NotEqual     []APIPair
}

TODO: Refactor Diffs.

func DiffAPIs

func DiffAPIs(APIs1 []InternalAPI, APIs2 []InternalAPI) APIsDiff

DiffAPIs generate an APIsDiff object with equal, different and missing APIs from two InternalAPI slices.

func (*APIsDiff) DeepCopy

func (in *APIsDiff) DeepCopy() *APIsDiff

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

func (*APIsDiff) DeepCopyInto

func (in *APIsDiff) DeepCopyInto(out *APIsDiff)

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

func (*APIsDiff) ReconcileWith3scale

func (d *APIsDiff) ReconcileWith3scale(creds InternalCredentials) error

reconcileWith3scale creates/modifies/deletes APIs based on the information of the APIsDiff object.

type ApicastAuthenticationSettings

type ApicastAuthenticationSettings struct {
	HostHeader  string                 `json:"hostHeader"`
	SecretToken string                 `json:"secretToken"`
	Credentials IntegrationCredentials `json:"credentials"`
	Errors      Errors                 `json:"errors"`
}

func (*ApicastAuthenticationSettings) DeepCopy

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

func (*ApicastAuthenticationSettings) DeepCopyInto

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

type ApicastHosted

type ApicastHosted struct {
	APIcastBaseOptions   `json:",inline"`
	APIcastBaseSelectors `json:",inline"`
}

func (*ApicastHosted) DeepCopy

func (in *ApicastHosted) DeepCopy() *ApicastHosted

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

func (*ApicastHosted) DeepCopyInto

func (in *ApicastHosted) DeepCopyInto(out *ApicastHosted)

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

type ApicastOnPrem

type ApicastOnPrem struct {
	APIcastBaseOptions      `json:",inline"`
	StagingPublicBaseURL    string `json:"stagingPublicBaseURL"`
	ProductionPublicBaseURL string `json:"productionPublicBaseURL"`
	APIcastBaseSelectors    `json:",inline"`
}

func (*ApicastOnPrem) DeepCopy

func (in *ApicastOnPrem) DeepCopy() *ApicastOnPrem

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

func (*ApicastOnPrem) DeepCopyInto

func (in *ApicastOnPrem) DeepCopyInto(out *ApicastOnPrem)

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

type AppID

type AppID struct {
	AppIDParameterName  string `json:"appIDParameterName"`
	AppKeyParameterName string `json:"appKeyParameterName"`
	CredentialsLocation string `json:"credentialsLocation"`
}

func (*AppID) DeepCopy

func (in *AppID) DeepCopy() *AppID

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

func (*AppID) DeepCopyInto

func (in *AppID) DeepCopyInto(out *AppID)

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

type Authentication

type Authentication struct {
	ResponseCode int64  `json:"responseCode"`
	ContentType  string `json:"contentType"`
	ResponseBody string `json:"responseBody"`
}

func (*Authentication) DeepCopy

func (in *Authentication) DeepCopy() *Authentication

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

func (*Authentication) DeepCopyInto

func (in *Authentication) DeepCopyInto(out *Authentication)

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

type Binding

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

	Spec   BindingSpec   `json:"spec,omitempty"`
	Status BindingStatus `json:"status,omitempty"`
}

Binding is the Schema for the bindings API +k8s:openapi-gen=true

func (*Binding) AddFinalizer

func (b *Binding) AddFinalizer(c client.Client) error

AddFinalizer adds the binding finalizer to the meta of the binding object

func (*Binding) CleanUp

func (b *Binding) CleanUp(c client.Client) error

CleanUp remove all the objects referenced by the binding object current state.

func (*Binding) DeepCopy

func (in *Binding) DeepCopy() *Binding

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

func (*Binding) DeepCopyInto

func (in *Binding) DeepCopyInto(out *Binding)

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

func (*Binding) DeepCopyObject

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

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

func (Binding) GetCurrentState

func (b Binding) GetCurrentState() (*State, error)

GetCurrentState returns the status field CurrentState

func (Binding) GetDesiredState

func (b Binding) GetDesiredState() (*State, error)

GetDesiredState returns the status field DesiredState

func (Binding) GetLastSuccessfulSync

func (b Binding) GetLastSuccessfulSync() *metav1.Timestamp

GetLastSuccessfulSync gets the status field LastSuccessfulSync

func (Binding) GetPreviousState

func (b Binding) GetPreviousState() (*State, error)

GetPreviousState returns the status field PreviousState

func (Binding) HasFinalizer

func (b Binding) HasFinalizer() bool

HasFinalizer checks if the binding object has the binding finalizer set

func (*Binding) IsTerminating

func (b *Binding) IsTerminating() bool

IsTerminating checks if the objects has been marked for deletion

func (Binding) NewCurrentState

func (b Binding) NewCurrentState(c client.Client) (*State, error)

NewDesiredState creates a new state from the 3scale system

func (Binding) NewDesiredState

func (b Binding) NewDesiredState(c client.Client) (*State, error)

NewDesiredState creates a new state from the CRDs objects

func (*Binding) SetCurrentState

func (b *Binding) SetCurrentState(state State) error

SetCurrentState adds the referenced state to the bindingStatus object

func (*Binding) SetDesiredState

func (b *Binding) SetDesiredState(state State) error

SetDesiredState adds the referenced state to the bindingStatus object

func (*Binding) SetLastSuccessfulSync

func (b *Binding) SetLastSuccessfulSync()

SetLastSuccessfulSync adds a timestamp to the binding object

func (*Binding) SetPreviousState

func (b *Binding) SetPreviousState(state State) error

SetPreviousState adds the referenced state to the bindingStatus object

func (*Binding) StateInSync

func (b *Binding) StateInSync() bool

StateInSync compares the current and desired state of the binding object and returns if those are in sync

func (*Binding) UpdateStatus

func (b *Binding) UpdateStatus(c client.Client) error

UpdateStatus Updates the Binding Object Status with the Desired and Current State

type BindingList

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

BindingList contains a list of Binding

func (*BindingList) DeepCopy

func (in *BindingList) DeepCopy() *BindingList

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

func (*BindingList) DeepCopyInto

func (in *BindingList) DeepCopyInto(out *BindingList)

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

func (*BindingList) DeepCopyObject

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

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

type BindingSpec

type BindingSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	CredentialsRef v1.SecretReference `json:"credentialsRef"`
	//+optional
	APISelector metav1.LabelSelector `json:"APISelector,omitempty"`
}

BindingSpec defines the desired state of Binding

func (*BindingSpec) DeepCopy

func (in *BindingSpec) DeepCopy() *BindingSpec

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

func (*BindingSpec) DeepCopyInto

func (in *BindingSpec) DeepCopyInto(out *BindingSpec)

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

type BindingStatus

type BindingStatus struct {
	//+optional
	LastSuccessfulSync *metav1.Timestamp `json:"lastSync,omitempty"`
	//+optional
	CurrentState *string `json:"currentState,omitempty"`
	//+optional
	DesiredState *string `json:"desiredState,omitempty"`
	//+optional
	PreviousState *string `json:"previousState,omitempty"`
}

BindingStatus defines the observed state of Binding

func (*BindingStatus) DeepCopy

func (in *BindingStatus) DeepCopy() *BindingStatus

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

func (*BindingStatus) DeepCopyInto

func (in *BindingStatus) DeepCopyInto(out *BindingStatus)

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

type CodePlugin

type CodePlugin struct {
	AuthenticationSettings CodePluginAuthenticationSettings `json:"authenticationSettings"`
}

func (*CodePlugin) DeepCopy

func (in *CodePlugin) DeepCopy() *CodePlugin

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

func (*CodePlugin) DeepCopyInto

func (in *CodePlugin) DeepCopyInto(out *CodePlugin)

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

type CodePluginAuthenticationSettings

type CodePluginAuthenticationSettings struct {
	Credentials IntegrationCredentials `json:"credentials"`
}

func (*CodePluginAuthenticationSettings) DeepCopy

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

func (*CodePluginAuthenticationSettings) DeepCopyInto

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

type Errors

type Errors struct {
	AuthenticationFailed  Authentication `json:"authenticationFailed"`
	AuthenticationMissing Authentication `json:"authenticationMissing"`
}

func (*Errors) DeepCopy

func (in *Errors) DeepCopy() *Errors

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

func (*Errors) DeepCopyInto

func (in *Errors) DeepCopyInto(out *Errors)

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

type Integration

type Integration interface {
	GetMappingRules() []InternalMappingRule
	GetCredentialTypeName() string
}

type IntegrationCredentials

type IntegrationCredentials struct {
	// +optional
	APIKey *APIKey `json:"apiKey,omitempty"`
	// +optional
	AppID *AppID `json:"appID,omitempty"`
	// +optional
	OpenIDConnector *OpenIDConnector `json:"openIDConnector,omitempty"`
}

func (*IntegrationCredentials) DeepCopy

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

func (*IntegrationCredentials) DeepCopyInto

func (in *IntegrationCredentials) DeepCopyInto(out *IntegrationCredentials)

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

type IntegrationMethod

type IntegrationMethod struct {
	// +optional
	ApicastOnPrem *ApicastOnPrem `json:"apicastOnPrem,omitempty"`
	// +optional
	CodePlugin *CodePlugin `json:"codePlugin,omitempty"`
	// +optional
	ApicastHosted *ApicastHosted `json:"apicastHosted,omitempty"`
}

func (*IntegrationMethod) DeepCopy

func (in *IntegrationMethod) DeepCopy() *IntegrationMethod

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

func (*IntegrationMethod) DeepCopyInto

func (in *IntegrationMethod) DeepCopyInto(out *IntegrationMethod)

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

type InternalAPI

type InternalAPI struct {
	Name            string `json:"name"`
	APIBaseInternal `json:",omitempty"`
	Metrics         []InternalMetric `json:"metrics,omitempty"`
	Plans           []InternalPlan   `json:"Plans,omitempty"`
}

func (*InternalAPI) DeepCopy

func (in *InternalAPI) DeepCopy() *InternalAPI

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

func (*InternalAPI) DeepCopyInto

func (in *InternalAPI) DeepCopyInto(out *InternalAPI)

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

func (InternalAPI) DeleteFrom3scale

func (api InternalAPI) DeleteFrom3scale(c *portaClient.ThreeScaleClient) error

DeleteFrom3scale Removes an InternalAPI from 3scale

type InternalApicastHosted

type InternalApicastHosted struct {
	APIcastBaseOptions
	MappingRules []InternalMappingRule `json:"mappingRules"`
}

func (*InternalApicastHosted) DeepCopy

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

func (*InternalApicastHosted) DeepCopyInto

func (in *InternalApicastHosted) DeepCopyInto(out *InternalApicastHosted)

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

func (*InternalApicastHosted) GetCredentialTypeName

func (i *InternalApicastHosted) GetCredentialTypeName() string

func (*InternalApicastHosted) GetMappingRules

func (i *InternalApicastHosted) GetMappingRules() []InternalMappingRule

type InternalApicastOnPrem

type InternalApicastOnPrem struct {
	APIcastBaseOptions
	StagingPublicBaseURL    string                `json:"stagingPublicBaseURL"`
	ProductionPublicBaseURL string                `json:"productionPublicBaseURL"`
	MappingRules            []InternalMappingRule `json:"mappingRules"`
}

func (*InternalApicastOnPrem) DeepCopy

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

func (*InternalApicastOnPrem) DeepCopyInto

func (in *InternalApicastOnPrem) DeepCopyInto(out *InternalApicastOnPrem)

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

func (*InternalApicastOnPrem) GetCredentialTypeName

func (i *InternalApicastOnPrem) GetCredentialTypeName() string

func (*InternalApicastOnPrem) GetMappingRules

func (i *InternalApicastOnPrem) GetMappingRules() []InternalMappingRule

type InternalCodePlugin

type InternalCodePlugin struct {
	AuthenticationSettings CodePluginAuthenticationSettings `json:"authenticationSettings"`
}

func (*InternalCodePlugin) DeepCopy

func (in *InternalCodePlugin) DeepCopy() *InternalCodePlugin

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

func (*InternalCodePlugin) DeepCopyInto

func (in *InternalCodePlugin) DeepCopyInto(out *InternalCodePlugin)

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

func (*InternalCodePlugin) GetCredentialTypeName

func (i *InternalCodePlugin) GetCredentialTypeName() string

func (*InternalCodePlugin) GetMappingRules

func (i *InternalCodePlugin) GetMappingRules() []InternalMappingRule

type InternalCredentials

type InternalCredentials struct {
	AuthToken string `json:"token"`
	AdminURL  string `json:"adminURL"`
}

+k8s:openapi-gen=false

func (*InternalCredentials) DeepCopy

func (in *InternalCredentials) DeepCopy() *InternalCredentials

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

func (*InternalCredentials) DeepCopyInto

func (in *InternalCredentials) DeepCopyInto(out *InternalCredentials)

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

type InternalIntegration

type InternalIntegration struct {
	ApicastOnPrem *InternalApicastOnPrem `json:"apicastOnPrem"`
	CodePlugin    *InternalCodePlugin    `json:"codePlugin"`
	ApicastHosted *InternalApicastHosted `json:"apicastHosted"`
}

func (*InternalIntegration) DeepCopy

func (in *InternalIntegration) DeepCopy() *InternalIntegration

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

func (*InternalIntegration) DeepCopyInto

func (in *InternalIntegration) DeepCopyInto(out *InternalIntegration)

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

type InternalLimit

type InternalLimit struct {
	Name     string `json:"name"`
	Period   string `json:"period"`
	MaxValue int64  `json:"maxValue"`
	Metric   string `json:"metric"`
}

func (*InternalLimit) DeepCopy

func (in *InternalLimit) DeepCopy() *InternalLimit

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

func (*InternalLimit) DeepCopyInto

func (in *InternalLimit) DeepCopyInto(out *InternalLimit)

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

type InternalMappingRule

type InternalMappingRule struct {
	Name      string `json:"name"`
	Path      string `json:"path"`
	Method    string `json:"method"`
	Increment int64  `json:"increment"`
	Metric    string `json:"metric"`
}

func (*InternalMappingRule) DeepCopy

func (in *InternalMappingRule) DeepCopy() *InternalMappingRule

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

func (*InternalMappingRule) DeepCopyInto

func (in *InternalMappingRule) DeepCopyInto(out *InternalMappingRule)

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

type InternalMetric

type InternalMetric struct {
	Name        string `json:"name"`
	Unit        string `json:"unit"`
	Description string `json:"description"`
}

func (*InternalMetric) DeepCopy

func (in *InternalMetric) DeepCopy() *InternalMetric

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

func (*InternalMetric) DeepCopyInto

func (in *InternalMetric) DeepCopyInto(out *InternalMetric)

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

type InternalPlan

type InternalPlan struct {
	Name             string          `json:"name"`
	Default          bool            `json:"default"`
	TrialPeriodDays  int64           `json:"trialPeriodDays"`
	ApprovalRequired bool            `json:"approvalRequired"`
	Costs            PlanCost        `json:"costs"`
	Limits           []InternalLimit `json:"limits"`
}

func (*InternalPlan) DeepCopy

func (in *InternalPlan) DeepCopy() *InternalPlan

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

func (*InternalPlan) DeepCopyInto

func (in *InternalPlan) DeepCopyInto(out *InternalPlan)

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

func (*InternalPlan) Sort

func (plan *InternalPlan) Sort()

type Limit

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

	Spec   LimitSpec   `json:"spec,omitempty"`
	Status LimitStatus `json:"status,omitempty"`
}

Limit is the Schema for the limits API object +k8s:openapi-gen=true

func (*Limit) DeepCopy

func (in *Limit) DeepCopy() *Limit

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

func (*Limit) DeepCopyInto

func (in *Limit) DeepCopyInto(out *Limit)

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

func (*Limit) DeepCopyObject

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

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

type LimitBase

type LimitBase struct {
	Period   string `json:"period"`
	MaxValue int64  `json:"maxValue"`
}

LimitBase contains the limit period and the max value for said period.

func (*LimitBase) DeepCopy

func (in *LimitBase) DeepCopy() *LimitBase

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

func (*LimitBase) DeepCopyInto

func (in *LimitBase) DeepCopyInto(out *LimitBase)

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

type LimitList

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

LimitList contains a list of Limit

func (*LimitList) DeepCopy

func (in *LimitList) DeepCopy() *LimitList

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

func (*LimitList) DeepCopyInto

func (in *LimitList) DeepCopyInto(out *LimitList)

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

func (*LimitList) DeepCopyObject

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

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

type LimitObjectRef

type LimitObjectRef struct {
	Metric v1.ObjectReference `json:"metricRef"`
}

LimitObjectRef contains he Metric ObjectReference

func (*LimitObjectRef) DeepCopy

func (in *LimitObjectRef) DeepCopy() *LimitObjectRef

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

func (*LimitObjectRef) DeepCopyInto

func (in *LimitObjectRef) DeepCopyInto(out *LimitObjectRef)

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

type LimitPair

type LimitPair struct {
	A InternalLimit
	B InternalLimit
}

func (*LimitPair) DeepCopy

func (in *LimitPair) DeepCopy() *LimitPair

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

func (*LimitPair) DeepCopyInto

func (in *LimitPair) DeepCopyInto(out *LimitPair)

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

type LimitSpec

type LimitSpec struct {
	LimitBase      `json:",inline"`
	LimitObjectRef `json:",inline"`
}

LimitSpec defines SPEC of the limit object, contains LimitBase and the LimitObjectRef

func (*LimitSpec) DeepCopy

func (in *LimitSpec) DeepCopy() *LimitSpec

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

func (*LimitSpec) DeepCopyInto

func (in *LimitSpec) DeepCopyInto(out *LimitSpec)

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

type LimitStatus

type LimitStatus struct {
}

LimitStatus defines the observed state of Limit

func (*LimitStatus) DeepCopy

func (in *LimitStatus) DeepCopy() *LimitStatus

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

func (*LimitStatus) DeepCopyInto

func (in *LimitStatus) DeepCopyInto(out *LimitStatus)

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

type LimitsDiff

type LimitsDiff struct {
	MissingFromA []InternalLimit
	MissingFromB []InternalLimit
	Equal        []InternalLimit
	NotEqual     []LimitPair
}

func (*LimitsDiff) DeepCopy

func (in *LimitsDiff) DeepCopy() *LimitsDiff

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

func (*LimitsDiff) DeepCopyInto

func (in *LimitsDiff) DeepCopyInto(out *LimitsDiff)

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

type MappingRule

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

	Spec   MappingRuleSpec   `json:"spec,omitempty"`
	Status MappingRuleStatus `json:"status,omitempty"`
}

MappingRule is the Schema for the mappingrules API +k8s:openapi-gen=true

func (*MappingRule) DeepCopy

func (in *MappingRule) DeepCopy() *MappingRule

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

func (*MappingRule) DeepCopyInto

func (in *MappingRule) DeepCopyInto(out *MappingRule)

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

func (*MappingRule) DeepCopyObject

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

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

type MappingRuleBase

type MappingRuleBase struct {
	Path      string `json:"path"`
	Method    string `json:"method"`
	Increment int64  `json:"increment"`
}

func (*MappingRuleBase) DeepCopy

func (in *MappingRuleBase) DeepCopy() *MappingRuleBase

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

func (*MappingRuleBase) DeepCopyInto

func (in *MappingRuleBase) DeepCopyInto(out *MappingRuleBase)

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

type MappingRuleDiff

type MappingRuleDiff struct {
	MissingFromA []InternalMappingRule
	MissingFromB []InternalMappingRule
	Equal        []InternalMappingRule
	NotEqual     []MappingRulePair
}

TODO: Refactor Diffs.

func (*MappingRuleDiff) DeepCopy

func (in *MappingRuleDiff) DeepCopy() *MappingRuleDiff

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

func (*MappingRuleDiff) DeepCopyInto

func (in *MappingRuleDiff) DeepCopyInto(out *MappingRuleDiff)

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

type MappingRuleList

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

MappingRuleList contains a list of MappingRule

func (*MappingRuleList) DeepCopy

func (in *MappingRuleList) DeepCopy() *MappingRuleList

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

func (*MappingRuleList) DeepCopyInto

func (in *MappingRuleList) DeepCopyInto(out *MappingRuleList)

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

func (*MappingRuleList) DeepCopyObject

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

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

type MappingRuleMetricRef

type MappingRuleMetricRef struct {
	MetricRef v1.ObjectReference `json:"metricRef"`
}

func (*MappingRuleMetricRef) DeepCopy

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

func (*MappingRuleMetricRef) DeepCopyInto

func (in *MappingRuleMetricRef) DeepCopyInto(out *MappingRuleMetricRef)

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

type MappingRulePair

type MappingRulePair struct {
	A InternalAPI
	B InternalAPI
}

func (*MappingRulePair) DeepCopy

func (in *MappingRulePair) DeepCopy() *MappingRulePair

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

func (*MappingRulePair) DeepCopyInto

func (in *MappingRulePair) DeepCopyInto(out *MappingRulePair)

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

type MappingRuleSpec

type MappingRuleSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	MappingRuleBase      `json:",inline"`
	MappingRuleMetricRef `json:",inline"`
}

MappingRuleSpec defines the desired state of MappingRule

func (*MappingRuleSpec) DeepCopy

func (in *MappingRuleSpec) DeepCopy() *MappingRuleSpec

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

func (*MappingRuleSpec) DeepCopyInto

func (in *MappingRuleSpec) DeepCopyInto(out *MappingRuleSpec)

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

type MappingRuleStatus

type MappingRuleStatus struct {
}

MappingRuleStatus defines the observed state of MappingRule

func (*MappingRuleStatus) DeepCopy

func (in *MappingRuleStatus) DeepCopy() *MappingRuleStatus

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

func (*MappingRuleStatus) DeepCopyInto

func (in *MappingRuleStatus) DeepCopyInto(out *MappingRuleStatus)

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

type MatchLabels

type MatchLabels struct {
	API string `json:"api"`
}

func (*MatchLabels) DeepCopy

func (in *MatchLabels) DeepCopy() *MatchLabels

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

func (*MatchLabels) DeepCopyInto

func (in *MatchLabels) DeepCopyInto(out *MatchLabels)

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

type Metric

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

	Spec   MetricSpec   `json:"spec,omitempty"`
	Status MetricStatus `json:"status,omitempty"`
}

Metric is the Schema for the metrics API +k8s:openapi-gen=true

func (*Metric) DeepCopy

func (in *Metric) DeepCopy() *Metric

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

func (*Metric) DeepCopyInto

func (in *Metric) DeepCopyInto(out *Metric)

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

func (*Metric) DeepCopyObject

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

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

type MetricList

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

MetricList contains a list of Metric

func (*MetricList) DeepCopy

func (in *MetricList) DeepCopy() *MetricList

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

func (*MetricList) DeepCopyInto

func (in *MetricList) DeepCopyInto(out *MetricList)

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

func (*MetricList) DeepCopyObject

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

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

type MetricSpec

type MetricSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	Unit           string `json:"unit"`
	Description    string `json:"description"`
	IncrementsHits bool   `json:"incrementHits"`
}

MetricSpec defines the desired state of Metric

func (*MetricSpec) DeepCopy

func (in *MetricSpec) DeepCopy() *MetricSpec

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

func (*MetricSpec) DeepCopyInto

func (in *MetricSpec) DeepCopyInto(out *MetricSpec)

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

type MetricStatus

type MetricStatus struct {
}

MetricStatus defines the observed state of Metric

func (*MetricStatus) DeepCopy

func (in *MetricStatus) DeepCopy() *MetricStatus

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

func (*MetricStatus) DeepCopyInto

func (in *MetricStatus) DeepCopyInto(out *MetricStatus)

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

type MetricsDiff

type MetricsDiff struct {
	MissingFromA []InternalMetric
	MissingFromB []InternalMetric
	Equal        []InternalMetric
	NotEqual     []MetricsPair
}

func (*MetricsDiff) DeepCopy

func (in *MetricsDiff) DeepCopy() *MetricsDiff

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

func (*MetricsDiff) DeepCopyInto

func (in *MetricsDiff) DeepCopyInto(out *MetricsDiff)

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

func (*MetricsDiff) ReconcileWith3scale

func (d *MetricsDiff) ReconcileWith3scale(c *portaClient.ThreeScaleClient, serviceId string, api InternalAPI) error

type MetricsPair

type MetricsPair struct {
	A InternalMetric
	B InternalMetric
}

func (*MetricsPair) DeepCopy

func (in *MetricsPair) DeepCopy() *MetricsPair

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

func (*MetricsPair) DeepCopyInto

func (in *MetricsPair) DeepCopyInto(out *MetricsPair)

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

type OpenIDConnector

type OpenIDConnector struct {
	Issuer              string `json:"issuer"`
	CredentialsLocation string `json:"credentialsLocation"`
}

func (*OpenIDConnector) DeepCopy

func (in *OpenIDConnector) DeepCopy() *OpenIDConnector

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

func (*OpenIDConnector) DeepCopyInto

func (in *OpenIDConnector) DeepCopyInto(out *OpenIDConnector)

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

type Plan

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

	Spec   PlanSpec   `json:"spec,omitempty"`
	Status PlanStatus `json:"status,omitempty"`
}

Plan is the Schema for the plans API +k8s:openapi-gen=true

func (*Plan) DeepCopy

func (in *Plan) DeepCopy() *Plan

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

func (*Plan) DeepCopyInto

func (in *Plan) DeepCopyInto(out *Plan)

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

func (*Plan) DeepCopyObject

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

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

type PlanBase

type PlanBase struct {
	Default          bool  `json:"default"`
	TrialPeriod      int64 `json:"trialPeriod"`
	ApprovalRequired bool  `json:"approvalRequired"`
	// +optional
	Costs PlanCost `json:"costs,omitempty"`
}

func (*PlanBase) DeepCopy

func (in *PlanBase) DeepCopy() *PlanBase

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

func (*PlanBase) DeepCopyInto

func (in *PlanBase) DeepCopyInto(out *PlanBase)

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

type PlanCost

type PlanCost struct {
	SetupFee  float64 `json:"setupFee,omitempty"`
	CostMonth float64 `json:"costMonth,omitempty"`
}

func (*PlanCost) DeepCopy

func (in *PlanCost) DeepCopy() *PlanCost

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

func (*PlanCost) DeepCopyInto

func (in *PlanCost) DeepCopyInto(out *PlanCost)

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

type PlanList

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

PlanList contains a list of Plan

func (*PlanList) DeepCopy

func (in *PlanList) DeepCopy() *PlanList

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

func (*PlanList) DeepCopyInto

func (in *PlanList) DeepCopyInto(out *PlanList)

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

func (*PlanList) DeepCopyObject

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

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

type PlanSelectors

type PlanSelectors struct {
	LimitSelector metav1.LabelSelector `json:"limitSelector"`
}

func (*PlanSelectors) DeepCopy

func (in *PlanSelectors) DeepCopy() *PlanSelectors

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

func (*PlanSelectors) DeepCopyInto

func (in *PlanSelectors) DeepCopyInto(out *PlanSelectors)

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

type PlanSpec

type PlanSpec struct {
	PlanBase      `json:",inline"`
	PlanSelectors `json:",inline"`
}

PlanSpec defines the desired state of Plan

func (*PlanSpec) DeepCopy

func (in *PlanSpec) DeepCopy() *PlanSpec

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

func (*PlanSpec) DeepCopyInto

func (in *PlanSpec) DeepCopyInto(out *PlanSpec)

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

type PlanStatus

type PlanStatus struct {
}

PlanStatus defines the observed state of Plan

func (*PlanStatus) DeepCopy

func (in *PlanStatus) DeepCopy() *PlanStatus

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

func (*PlanStatus) DeepCopyInto

func (in *PlanStatus) DeepCopyInto(out *PlanStatus)

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

type State

type State struct {
	Credentials InternalCredentials `json:"credentials"`
	APIs        []InternalAPI       `json:"apis"`
}

State defines an snapshot of the APIs and credentials

func (*State) DeepCopy

func (in *State) DeepCopy() *State

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

func (*State) DeepCopyInto

func (in *State) DeepCopyInto(out *State)

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

type Tenant

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

	Spec   TenantSpec   `json:"spec,omitempty"`
	Status TenantStatus `json:"status,omitempty"`
}

Tenant is the Schema for the tenants API +k8s:openapi-gen=true

func (*Tenant) DeepCopy

func (in *Tenant) DeepCopy() *Tenant

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

func (*Tenant) DeepCopyInto

func (in *Tenant) DeepCopyInto(out *Tenant)

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

func (*Tenant) DeepCopyObject

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

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

func (*Tenant) SetDefaults

func (t *Tenant) SetDefaults() bool

SetDefaults sets the default vaules for the tenant spec and returns true if the spec was changed

type TenantList

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

TenantList contains a list of Tenant

func (*TenantList) DeepCopy

func (in *TenantList) DeepCopy() *TenantList

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

func (*TenantList) DeepCopyInto

func (in *TenantList) DeepCopyInto(out *TenantList)

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

func (*TenantList) DeepCopyObject

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

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

type TenantSpec

type TenantSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	UserName             string             `json:"username"`
	Email                string             `json:"email"`
	OrgName              string             `json:"organizationName"`
	SystemMasterURL      string             `json:"systemMasterUrl"`
	TenantSecretRef      v1.SecretReference `json:"tenantSecretRef"`
	AdminPasswordRef     v1.SecretReference `json:"passwordCredentialsRef"`
	MasterCredentialsRef v1.SecretReference `json:"masterCredentialsRef"`
}

TenantSpec defines the desired state of Tenant

func (*TenantSpec) DeepCopy

func (in *TenantSpec) DeepCopy() *TenantSpec

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

func (*TenantSpec) DeepCopyInto

func (in *TenantSpec) DeepCopyInto(out *TenantSpec)

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

type TenantStatus

type TenantStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	TenantID    int64 `json:"tenantID"`
	AdminUserID int64 `json:"adminID"`
}

TenantStatus defines the observed state of Tenant

func (*TenantStatus) DeepCopy

func (in *TenantStatus) DeepCopy() *TenantStatus

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

func (*TenantStatus) DeepCopyInto

func (in *TenantStatus) DeepCopyInto(out *TenantStatus)

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