Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Api
- type ApiList
- type ApiSpec
- type ApiStatus
- func (in *ApiStatus) DeepCopy() *ApiStatus
- func (in *ApiStatus) DeepCopyInto(out *ApiStatus)
- func (s *ApiStatus) IsEmpty() bool
- func (s *ApiStatus) IsError() bool
- func (s *ApiStatus) IsHostnameOccupied() bool
- func (s *ApiStatus) IsInProgress() bool
- func (s *ApiStatus) IsSuccessful() bool
- func (s *ApiStatus) IsTargetServiceOccupied() bool
- func (s *ApiStatus) SetInProgress()
- type AuthenticationRule
- type AuthenticationType
- type JwtAuthentication
- type MatchExpression
- type Service
- type TriggerRule
Constants ¶
const ( Group = "gateway.kyma-project.io" Version = "v1alpha2" KindName = "Api" ListKindName = "ApiList" )
const ( JwtType AuthenticationType = "JWT" ExactMatch matchExpressionType = "exact" PrefixMatch matchExpressionType = "prefix" SuffixMatch matchExpressionType = "suffix" RegexMatch matchExpressionType = "regex" )
Variables ¶
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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Api.
func (*Api) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Api) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiList.
func (*ApiList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApiList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiSpec.
func (*ApiSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApiStatus.
func (*ApiStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApiStatus) IsHostnameOccupied ¶
func (*ApiStatus) IsInProgress ¶
func (*ApiStatus) IsSuccessful ¶
func (*ApiStatus) IsTargetServiceOccupied ¶
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 ¶
func (*Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
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.