Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=inwinstack.com
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type IP
- type IPList
- type IPPhase
- type IPSpec
- type IPStatus
- type NAT
- type NATList
- type NATPhase
- type NATSpec
- type NATStatus
- type Pool
- type PoolList
- type PoolPhase
- type PoolSpec
- type PoolStatus
- type Security
- type SecurityList
- type SecurityPhase
- type SecuritySpec
- type SecurityStatus
- type Service
- type ServiceList
- type ServicePhase
- type ServiceSpec
- type ServiceStatus
Constants ¶
const ( NATDynamicIPAndPort = "dynamic-ip-and-port" NATDynamicIP = "dynamic-ip" NATStaticIP = "static-ip" )
These are the valid values for SatType.
const ( NATInterfaceAddress = "interface-address" NATTranslatedAddress = "translated-address" )
These are the valid values for SatAddressType.
const ( NATIP = "ip" NATFloatingIP = "floating" )
These are the valid settings for SatFallbackIPType.
const ( NATIPv4 = "ipv4" NATIPv6 = "ipv6" )
These are the valid ip type of a NAT.
const ( NATDatStatic = "destination-translation" NATDatDynamic = "dynamic-destination-translation" )
These are the valid dat type of a NAT.
const ( CustomResourceGroup = "inwinstack.com" Version = "v1" )
const ( SecurityAllow = "allow" SecurityDeny = "deny" )
These are the valid action of a security.
const (
NATSatNone = "none"
)
These are the valid sat type of a NAT.
const (
SecurityUniversal = "universal"
)
These are the valid default of a security.
Variables ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: inwinstack.GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type IP ¶
type IP struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec IPSpec `json:"spec"` Status IPStatus `json:"status,omitempty"` }
IP represents a Kubernetes IP Custom Resource. The IP will be used as IP.
func (*IP) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IP.
func (*IP) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IP) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPList ¶
type IPList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []IP `json:"items"` }
IPList is a list of IP.
func (*IPList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPList.
func (*IPList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IPList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IPSpec ¶
type IPSpec struct {
PoolName string `json:"poolName"`
}
IPSpec is the spec for a IP resource.
func (*IPSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPSpec.
func (*IPSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPStatus ¶
type IPStatus struct { Phase IPPhase `json:"phase"` Reason string `json:"reason,omitempty"` LastUpdateTime metav1.Time `json:"lastUpdateTime"` Address string `json:"address,omitempty"` Ports []int `json:"ports,omitempty"` }
IPStatus represents the current state of a IP resource.
func (*IPStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPStatus.
func (*IPStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NAT ¶
type NAT struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec NATSpec `json:"spec"` Status NATStatus `json:"status,omitempty"` }
NAT represents a Kubernetes NAT Custom Resource. The NAT will be used as PA NAT policy.
func (*NAT) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NAT.
func (*NAT) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NAT) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NATList ¶
type NATList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []NAT `json:"items"` }
NATList is a list of NAT.
func (*NATList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NATList.
func (*NATList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NATList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NATSpec ¶
type NATSpec struct { Type string `json:"type,omitempty"` Description string `json:"description,omitempty"` SourceZones []string `json:"sourceZones,omitempty"` SourceAddresses []string `json:"sourceAddresses,omitempty"` DestinationAddresses []string `json:"destinationAddresses,omitempty"` DestinationZone string `json:"destinationZone,omitempty"` ToInterface string `json:"toInterface,omitempty"` Service string `json:"service,omitempty"` SatType string `json:"satType,omitempty"` SatAddressType string `json:"satAddressType,omitempty"` SatTranslatedAddresses []string `json:"satTranslatedAddresses,omitempty"` SatInterface string `json:"satInterface,omitempty"` SatIPAddress string `json:"satIPAddress,omitempty"` SatFallbackType string `json:"satFallbackType,omitempty"` SatFallbackTranslatedAddresses []string `json:"satFallbackTranslatedAddresses,omitempty"` SatFallbackInterface string `json:"satFallbackInterface,omitempty"` SatFallbackIPType string `json:"satFallbackIPType,omitempty"` SatFallbackIPAddress string `json:"satFallbackIPAddress,omitempty"` SatStaticTranslatedAddress string `json:"satStaticTranslatedAddress,omitempty"` SatStaticBiDirectional bool `json:"satStaticBiDirectional,omitempty"` DatType string `json:"datType,omitempty"` DatAddress string `json:"datAddress,omitempty"` DatPort int32 `json:"datPort,omitempty"` DatDynamicDistribution string `json:"datDynamicDistribution,omitempty"` Disabled bool `json:"disabled,omitempty"` Targets map[string][]string `json:"targets,omitempty"` NegateTarget bool `json:"negateTarget,omitempty"` Tags []string `json:"tags,omitempty"` }
NATSpec is the spec for a NAT resource.
func (*NATSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NATSpec.
func (*NATSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NATStatus ¶
type NATStatus struct { Phase NATPhase `json:"phase"` Reason string `json:"reason,omitempty"` LastUpdateTime metav1.Time `json:"lastUpdateTime"` }
NATStatus represents the current state of a NAT resource.
func (*NATStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NATStatus.
func (*NATStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Pool ¶
type Pool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec PoolSpec `json:"spec"` Status PoolStatus `json:"status,omitempty"` }
Pool represents a Kubernetes Pool Custom Resource. The Pool will be used as IP pools.
func (*Pool) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pool.
func (*Pool) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Pool) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PoolList ¶
type PoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Pool `json:"items"` }
PoolList is a list of Pool.
func (*PoolList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PoolList.
func (*PoolList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PoolList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PoolSpec ¶
type PoolSpec struct { Addresses []string `json:"addresses"` IgnoreNamespaces []string `json:"ignoreNamespaces"` IgnoreNamespaceAnnotation bool `json:"ignoreNamespaceAnnotation"` AssignToNamespace bool `json:"assignToNamespace"` AvoidBuggyIPs bool `json:"avoidBuggyIPs"` AvoidGatewayIPs bool `json:"avoidGatewayIPs"` FilterIPs []string `json:"filterIPs,omitempty"` }
PoolSpec is the spec for a pool resource.
func (*PoolSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PoolSpec.
func (*PoolSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PoolStatus ¶
type PoolStatus struct { Phase PoolPhase `json:"phase"` Reason string `json:"reason,omitempty"` LastUpdateTime metav1.Time `json:"lastUpdateTime"` AllocatedIPs []string `json:"allocatedIPs"` Capacity int `json:"capacity"` Allocatable int `json:"allocatable"` }
PoolStatus represents the current state of a pool resource.
func (*PoolStatus) DeepCopy ¶
func (in *PoolStatus) DeepCopy() *PoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PoolStatus.
func (*PoolStatus) DeepCopyInto ¶
func (in *PoolStatus) DeepCopyInto(out *PoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Security ¶
type Security struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec SecuritySpec `json:"spec"` Status SecurityStatus `json:"status,omitempty"` }
Security represents a Kubernetes Security Custom Resource. The Security will be used as PA security policy.
func (*Security) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Security.
func (*Security) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Security) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecurityList ¶
type SecurityList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Security `json:"items"` }
SecurityList is a list of security.
func (*SecurityList) DeepCopy ¶
func (in *SecurityList) DeepCopy() *SecurityList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityList.
func (*SecurityList) DeepCopyInto ¶
func (in *SecurityList) DeepCopyInto(out *SecurityList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecurityList) DeepCopyObject ¶
func (in *SecurityList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecurityPhase ¶
type SecurityPhase string
const ( SecurityPending SecurityPhase = "Pending" SecurityActive SecurityPhase = "Active" SecurityFailed SecurityPhase = "Failed" )
These are the valid phases of a security.
type SecuritySpec ¶
type SecuritySpec struct { Type string `json:"type,omitempty"` Description string `json:"description,omitempty"` SourceZones []string `json:"sourceZones,omitempty"` SourceAddresses []string `json:"sourceAddresses,omitempty"` SourceUsers []string `json:"sourceUsers,omitempty"` HipProfiles []string `json:"hipProfiles,omitempty"` DestinationZones []string `json:"destinationZones,omitempty"` DestinationAddresses []string `json:"destinationAddresses,omitempty"` Applications []string `json:"applications,omitempty"` Services []string `json:"services,omitempty"` Categories []string `json:"categories,omitempty"` Action string `json:"action,omitempty"` IcmpUnreachable bool `json:"icmpUnreachable,omitempty"` DisableServerResponseInspection bool `json:"disableServerResponseInspection"` NegateDestination bool `json:"negateDestination,omitempty"` NegateSource bool `json:"negateSource,omitempty"` NegateTarget bool `json:"negateTarget,omitempty"` LogSetting string `json:"logSetting,omitempty"` LogStart bool `json:"logStart,omitempty"` LogEnd bool `json:"logEnd,omitempty"` Disabled bool `json:"disabled,omitempty"` Schedule string `json:"schedule,omitempty"` Group string `json:"group,omitempty"` Targets map[string][]string `json:"targets,omitempty"` Virus string `json:"virus,omitempty"` Spyware string `json:"spyware,omitempty"` Vulnerability string `json:"vulnerability,omitempty"` URLFiltering string `json:"urlFiltering,omitempty"` FileBlocking string `json:"fileBlocking,omitempty"` WildFireAnalysis string `json:"wildFireAnalysis,omitempty"` DataFiltering string `json:"dataFiltering,omitempty"` Tags []string `json:"tags,omitempty"` }
SecuritySpec is the spec for a security resource.
func (*SecuritySpec) DeepCopy ¶
func (in *SecuritySpec) DeepCopy() *SecuritySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecuritySpec.
func (*SecuritySpec) DeepCopyInto ¶
func (in *SecuritySpec) DeepCopyInto(out *SecuritySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecurityStatus ¶
type SecurityStatus struct { Phase SecurityPhase `json:"phase"` Reason string `json:"reason,omitempty"` LastUpdateTime metav1.Time `json:"lastUpdateTime"` }
SecurityStatus represents the current state of a security resource.
func (*SecurityStatus) DeepCopy ¶
func (in *SecurityStatus) DeepCopy() *SecurityStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityStatus.
func (*SecurityStatus) DeepCopyInto ¶
func (in *SecurityStatus) DeepCopyInto(out *SecurityStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Service ¶ added in v0.5.0
type Service struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec ServiceSpec `json:"spec"` Status ServiceStatus `json:"status,omitempty"` }
Service represents a Kubernetes Service Custom Resource. The Service will be used as PA service object.
func (*Service) DeepCopy ¶ added in v0.5.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶ added in v0.5.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Service) DeepCopyObject ¶ added in v0.5.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceList ¶ added in v0.5.0
type ServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Service `json:"items"` }
ServiceList is a list of service.
func (*ServiceList) DeepCopy ¶ added in v0.5.0
func (in *ServiceList) DeepCopy() *ServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceList.
func (*ServiceList) DeepCopyInto ¶ added in v0.5.0
func (in *ServiceList) DeepCopyInto(out *ServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceList) DeepCopyObject ¶ added in v0.5.0
func (in *ServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServicePhase ¶ added in v0.5.0
type ServicePhase string
const ( ServicePending ServicePhase = "Pending" ServiceActive ServicePhase = "Active" ServiceFailed ServicePhase = "Failed" )
These are the valid phases of a Service.
type ServiceSpec ¶ added in v0.5.0
type ServiceSpec struct { Description string `json:"description,omitempty"` Protocol string `json:"protocol,omitempty"` SourcePort string `json:"sourcePort,omitempty"` DestinationPort string `json:"destinationPort,omitempty"` Tags []string `json:"tags,omitempty"` }
ServiceSpec is the spec for a Service resource.
func (*ServiceSpec) DeepCopy ¶ added in v0.5.0
func (in *ServiceSpec) DeepCopy() *ServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec.
func (*ServiceSpec) DeepCopyInto ¶ added in v0.5.0
func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceStatus ¶ added in v0.5.0
type ServiceStatus struct { Phase ServicePhase `json:"phase"` Reason string `json:"reason,omitempty"` LastUpdateTime metav1.Time `json:"lastUpdateTime"` }
ServiceStatus represents the current state of a Service resource.
func (*ServiceStatus) DeepCopy ¶ added in v0.5.0
func (in *ServiceStatus) DeepCopy() *ServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceStatus.
func (*ServiceStatus) DeepCopyInto ¶ added in v0.5.0
func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.