v1alpha2

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package

Index

Constants

View Source
const (
	Group        = "gateway.kyma-project.io"
	Version      = "v1alpha2"
	KindName     = "Api"
	ListKindName = "ApiList"
)
View Source
const (
	JwtType     AuthenticationType  = "JWT"
	ExactMatch  matchExpressionType = "exact"
	PrefixMatch matchExpressionType = "prefix"
	SuffixMatch matchExpressionType = "suffix"
	RegexMatch  matchExpressionType = "regex"
)

Variables

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

	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

GatewayResource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Api

type Api struct {
	k8sMeta.TypeMeta   `json:",inline"`
	k8sMeta.ObjectMeta `json:"metadata,omitempty"`

	Spec   ApiSpec   `json:"spec"`
	Status ApiStatus `json:"status"`
}

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.

type ApiList

type ApiList struct {
	k8sMeta.TypeMeta `json:",inline"`
	k8sMeta.ListMeta `json:"metadata,omitempty"`

	Items []Api `json:"items"`
}

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 ApiSpec

type ApiSpec struct {
	Service                    Service `json:"service"`
	Hostname                   string  `json:"hostname"`
	DisableIstioAuthPolicyMTLS *bool   `json:"disableIstioAuthPolicyMTLS,omitempty"`
	AuthenticationEnabled      *bool   `json:"authenticationEnabled,omitempty"`
	// +optional
	Authentication []AuthenticationRule `json:"authentication"`
}

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 {
	ValidationStatus     kymaMeta.StatusCode            `json:"validationStatus,omitempty"`
	AuthenticationStatus kymaMeta.GatewayResourceStatus `json:"authenticationStatus,omitempty"`
	VirtualServiceStatus kymaMeta.GatewayResourceStatus `json:"virtualServiceStatus,omitempty"`
}

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.

func (*ApiStatus) IsEmpty

func (s *ApiStatus) IsEmpty() bool

func (*ApiStatus) IsError

func (s *ApiStatus) IsError() bool

func (*ApiStatus) IsHostnameOccupied

func (s *ApiStatus) IsHostnameOccupied() bool

func (*ApiStatus) IsInProgress

func (s *ApiStatus) IsInProgress() bool

func (*ApiStatus) IsSuccessful

func (s *ApiStatus) IsSuccessful() bool

func (*ApiStatus) IsTargetServiceOccupied

func (s *ApiStatus) IsTargetServiceOccupied() bool

func (*ApiStatus) SetInProgress

func (s *ApiStatus) SetInProgress()

type AuthenticationRule

type AuthenticationRule struct {
	Type AuthenticationType `json:"type"`
	Jwt  JwtAuthentication  `json:"jwt"`
}

func (*AuthenticationRule) DeepCopy

func (in *AuthenticationRule) DeepCopy() *AuthenticationRule

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

func (*AuthenticationRule) DeepCopyInto

func (in *AuthenticationRule) DeepCopyInto(out *AuthenticationRule)

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

type AuthenticationType

type AuthenticationType string

type JwtAuthentication

type JwtAuthentication struct {
	JwksUri     string       `json:"jwksUri"`
	Issuer      string       `json:"issuer"`
	TriggerRule *TriggerRule `json:"triggerRule,omitempty"`
}

func (*JwtAuthentication) DeepCopy

func (in *JwtAuthentication) DeepCopy() *JwtAuthentication

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

func (*JwtAuthentication) DeepCopyInto

func (in *JwtAuthentication) DeepCopyInto(out *JwtAuthentication)

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

type MatchExpression

type MatchExpression struct {
	ExprType matchExpressionType
	Value    string
}

func (*MatchExpression) DeepCopy

func (in *MatchExpression) DeepCopy() *MatchExpression

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

func (*MatchExpression) DeepCopyInto

func (in *MatchExpression) DeepCopyInto(out *MatchExpression)

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

func (MatchExpression) MarshalJSON

func (self MatchExpression) MarshalJSON() ([]byte, error)

func (*MatchExpression) UnmarshalJSON

func (self *MatchExpression) UnmarshalJSON(b []byte) error

type Service

type Service struct {
	Name string `json:"name"`
	Port int    `json:"port"`
}

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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

type TriggerRule

type TriggerRule struct {
	ExcludedPaths []MatchExpression `json:"excludedPaths,omitempty"`
}

func (*TriggerRule) DeepCopy

func (in *TriggerRule) DeepCopy() *TriggerRule

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

func (*TriggerRule) DeepCopyInto

func (in *TriggerRule) DeepCopyInto(out *TriggerRule)

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