Documentation ¶
Index ¶
- Constants
- type DomainList
- type IcpResponse
- type IcpValidator
- type IngressMutator
- type IngressValidator
- func (v *IngressValidator) SetupWithManager(mgr ctrl.Manager) error
- func (v *IngressValidator) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (v *IngressValidator) ValidateDelete(_ context.Context, obj runtime.Object) error
- func (v *IngressValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) error
- type NamespaceMutator
- type NamespaceValidator
Constants ¶
View Source
const IngressHostIndex = "host"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainList ¶
type DomainList []string
func (*DomainList) Set ¶
func (s *DomainList) Set(value string) error
func (*DomainList) String ¶
func (s *DomainList) String() string
type IcpResponse ¶
type IcpResponse struct { ErrorCode int `json:"error_code"` Reason string `json:"reason"` Result struct { CompanyName string `json:"CompanyName"` CompanyType string `json:"CompanyType"` MainPage string `json:"MainPage"` SiteLicense string `json:"SiteLicense"` SiteName string `json:"SiteName"` VerifyTime string `json:"VerifyTime"` } `json:"result"` }
type IcpValidator ¶
type IcpValidator struct {
// contains filtered or unexported fields
}
func NewIcpValidator ¶
func NewIcpValidator(icpEnabled bool, icpEndpoint string, icpKey string) *IcpValidator
func (*IcpValidator) Query ¶
func (i *IcpValidator) Query(rule *netv1.IngressRule) (*IcpResponse, error)
type IngressMutator ¶
type IngressMutator struct { client.Client Domains DomainList IngressAnnotations map[string]string }
func (*IngressMutator) SetupWithManager ¶
func (m *IngressMutator) SetupWithManager(mgr ctrl.Manager) error
type IngressValidator ¶
type IngressValidator struct { client.Client Domains DomainList IcpValidator *IcpValidator // contains filtered or unexported fields }
func (*IngressValidator) SetupWithManager ¶
func (v *IngressValidator) SetupWithManager(mgr ctrl.Manager) error
func (*IngressValidator) ValidateCreate ¶
func (*IngressValidator) ValidateDelete ¶
func (*IngressValidator) ValidateUpdate ¶
type NamespaceMutator ¶
type NamespaceValidator ¶
func (*NamespaceValidator) ValidateCreate ¶
func (*NamespaceValidator) ValidateDelete ¶
func (*NamespaceValidator) ValidateUpdate ¶
Click to show internal directories.
Click to hide internal directories.