v1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=inwinstack.com

Index

Constants

View Source
const (
	NATDynamicIPAndPort = "dynamic-ip-and-port"
	NATDynamicIP        = "dynamic-ip"
	NATStaticIP         = "static-ip"
)

These are the valid values for SatType.

View Source
const (
	NATInterfaceAddress  = "interface-address"
	NATTranslatedAddress = "translated-address"
)

These are the valid values for SatAddressType.

View Source
const (
	NATIP         = "ip"
	NATFloatingIP = "floating"
)

These are the valid settings for SatFallbackIPType.

View Source
const (
	NATIPv4 = "ipv4"
	NATIPv6 = "ipv6"
)

These are the valid ip type of a NAT.

View Source
const (
	NATDatStatic  = "destination-translation"
	NATDatDynamic = "dynamic-destination-translation"
)

These are the valid dat type of a NAT.

View Source
const (
	CustomResourceGroup = "inwinstack.com"
	Version             = "v1"
)
View Source
const (
	SecurityAllow = "allow"
	SecurityDeny  = "deny"
)

These are the valid action of a security.

View Source
const (
	NATSatNone = "none"
)

These are the valid sat type of a NAT.

View Source
const (
	SecurityUniversal = "universal"
)

These are the valid default of a security.

Variables

View Source
var (
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: inwinstack.GroupName, Version: Version}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

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

func (in *IP) DeepCopy() *IP

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

func (*IP) DeepCopyInto

func (in *IP) DeepCopyInto(out *IP)

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

func (*IP) DeepCopyObject

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

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

func (in *IPList) DeepCopy() *IPList

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

func (*IPList) DeepCopyInto

func (in *IPList) DeepCopyInto(out *IPList)

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

func (*IPList) DeepCopyObject

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

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

type IPPhase

type IPPhase string
const (
	IPActive      IPPhase = "Active"
	IPFailed      IPPhase = "Failed"
	IPTerminating IPPhase = "Terminating"
)

These are the valid phases of a IP.

type IPSpec

type IPSpec struct {
	PoolName string `json:"poolName"`
}

IPSpec is the spec for a IP resource.

func (*IPSpec) DeepCopy

func (in *IPSpec) DeepCopy() *IPSpec

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

func (*IPSpec) DeepCopyInto

func (in *IPSpec) DeepCopyInto(out *IPSpec)

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

func (in *IPStatus) DeepCopy() *IPStatus

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

func (*IPStatus) DeepCopyInto

func (in *IPStatus) DeepCopyInto(out *IPStatus)

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

func (in *NAT) DeepCopy() *NAT

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

func (*NAT) DeepCopyInto

func (in *NAT) DeepCopyInto(out *NAT)

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

func (*NAT) DeepCopyObject

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

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

func (in *NATList) DeepCopy() *NATList

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

func (*NATList) DeepCopyInto

func (in *NATList) DeepCopyInto(out *NATList)

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

func (*NATList) DeepCopyObject

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

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

type NATPhase

type NATPhase string
const (
	NATPending NATPhase = "Pending"
	NATActive  NATPhase = "Active"
	NATFailed  NATPhase = "Failed"
)

These are the valid phases of a NAT.

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

func (in *NATSpec) DeepCopy() *NATSpec

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

func (*NATSpec) DeepCopyInto

func (in *NATSpec) DeepCopyInto(out *NATSpec)

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

func (in *NATStatus) DeepCopy() *NATStatus

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

func (*NATStatus) DeepCopyInto

func (in *NATStatus) DeepCopyInto(out *NATStatus)

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

func (in *Pool) DeepCopy() *Pool

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

func (*Pool) DeepCopyInto

func (in *Pool) DeepCopyInto(out *Pool)

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

func (*Pool) DeepCopyObject

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

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

func (in *PoolList) DeepCopy() *PoolList

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

func (*PoolList) DeepCopyInto

func (in *PoolList) DeepCopyInto(out *PoolList)

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

func (*PoolList) DeepCopyObject

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

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

type PoolPhase

type PoolPhase string
const (
	PoolActive      PoolPhase = "Active"
	PoolFailed      PoolPhase = "Failed"
	PoolTerminating PoolPhase = "Terminating"
)

These are the valid phases of a pool.

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

func (in *PoolSpec) DeepCopy() *PoolSpec

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

func (*PoolSpec) DeepCopyInto

func (in *PoolSpec) DeepCopyInto(out *PoolSpec)

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

func (in *Security) DeepCopy() *Security

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

func (*Security) DeepCopyInto

func (in *Security) DeepCopyInto(out *Security)

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

func (*Security) DeepCopyObject

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

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

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto added in v0.5.0

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

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL