extensions

package
v0.0.0-...-268c44b Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName string = "ipcontroller.ext"
	Version   string = "v1"
)

Variables

View Source
var (
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
	SchemeBuilder      = runtime.NewSchemeBuilder(addKnownTypes)
)

Functions

func EnsureCRDsExist

func EnsureCRDsExist(config *rest.Config) error

func RemoveCRDs

func RemoveCRDs(config *rest.Config) error

func WaitCRDsEstablished

func WaitCRDsEstablished(config *rest.Config, timeout time.Duration) error

Types

type ExampleIpClaim

type ExampleIpClaim IpClaim

type ExampleIpClaimList

type ExampleIpClaimList IpClaimList

type ExampleIpClaimPool

type ExampleIpClaimPool IpClaimPool

type ExampleIpClaimPoolList

type ExampleIpClaimPoolList IpClaimPoolList

type ExampleIpNodesList

type ExampleIpNodesList IpNodeList

type ExtensionsClientset

type ExtensionsClientset interface {
	IPNodes() IPNodesInterface
	IPClaims() IPClaimsInterface
	IPClaimPools() IPClaimPoolsInterface
}

type IPClaimPoolsInterface

type IPClaimPoolsInterface interface {
	Create(*IpClaimPool) (*IpClaimPool, error)
	Get(name string) (*IpClaimPool, error)
	List(metav1.ListOptions) (*IpClaimPoolList, error)
	Update(*IpClaimPool) (*IpClaimPool, error)
	Delete(string, *metav1.DeleteOptions) error
}

type IPClaimsInterface

type IPClaimsInterface interface {
	Create(*IpClaim) (*IpClaim, error)
	Get(name string) (*IpClaim, error)
	List(metav1.ListOptions) (*IpClaimList, error)
	Watch(metav1.ListOptions) (watch.Interface, error)
	Update(*IpClaim) (*IpClaim, error)
	Delete(string, *metav1.DeleteOptions) error
}

type IPNodesClient

type IPNodesClient struct {
	// contains filtered or unexported fields
}

func (*IPNodesClient) Create

func (c *IPNodesClient) Create(ipnode *IpNode) (result *IpNode, err error)

func (*IPNodesClient) Delete

func (c *IPNodesClient) Delete(name string, options *metav1.DeleteOptions) error

func (*IPNodesClient) Get

func (c *IPNodesClient) Get(name string) (result *IpNode, err error)

func (*IPNodesClient) List

func (c *IPNodesClient) List(opts metav1.ListOptions) (result *IpNodeList, err error)

func (*IPNodesClient) Update

func (c *IPNodesClient) Update(ipnode *IpNode) (result *IpNode, err error)

func (*IPNodesClient) Watch

type IPNodesInterface

type IPNodesInterface interface {
	Create(*IpNode) (*IpNode, error)
	Get(name string) (*IpNode, error)
	List(metav1.ListOptions) (*IpNodeList, error)
	Watch(metav1.ListOptions) (watch.Interface, error)
	Update(*IpNode) (*IpNode, error)
	Delete(string, *metav1.DeleteOptions) error
}

type IpClaim

type IpClaim struct {
	metav1.TypeMeta `json:",inline"`

	// Standard object metadata
	Metadata metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec IpClaimSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}

func (*IpClaim) GetObjectKind

func (e *IpClaim) GetObjectKind() schema.ObjectKind

func (*IpClaim) GetObjectMeta

func (e *IpClaim) GetObjectMeta() metav1.Object

func (*IpClaim) UnmarshalJSON

func (e *IpClaim) UnmarshalJSON(data []byte) error

type IpClaimClient

type IpClaimClient struct {
	// contains filtered or unexported fields
}

func (*IpClaimClient) Create

func (c *IpClaimClient) Create(ipclaim *IpClaim) (result *IpClaim, err error)

func (*IpClaimClient) Delete

func (c *IpClaimClient) Delete(name string, options *metav1.DeleteOptions) error

func (*IpClaimClient) Get

func (c *IpClaimClient) Get(name string) (result *IpClaim, err error)

func (*IpClaimClient) List

func (c *IpClaimClient) List(opts metav1.ListOptions) (result *IpClaimList, err error)

func (*IpClaimClient) Update

func (c *IpClaimClient) Update(ipclaim *IpClaim) (result *IpClaim, err error)

func (*IpClaimClient) Watch

type IpClaimList

type IpClaimList struct {
	metav1.TypeMeta `json:",inline"`

	// Standard list metadata.
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Items []IpClaim `json:"items" protobuf:"bytes,2,rep,name=items"`
}

func (*IpClaimList) UnmarshalJSON

func (el *IpClaimList) UnmarshalJSON(data []byte) error

type IpClaimPool

type IpClaimPool struct {
	metav1.TypeMeta `json:",inline"`

	// Standard object metadata
	Metadata metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec IpClaimPoolSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}

func (*IpClaimPool) AvailableIP

func (p *IpClaimPool) AvailableIP() (availableIP string, err error)

func (*IpClaimPool) GetObjectKind

func (p *IpClaimPool) GetObjectKind() schema.ObjectKind

func (*IpClaimPool) GetObjectMeta

func (p *IpClaimPool) GetObjectMeta() metav1.Object

func (*IpClaimPool) UnmarshalJSON

func (e *IpClaimPool) UnmarshalJSON(data []byte) error

type IpClaimPoolClient

type IpClaimPoolClient struct {
	// contains filtered or unexported fields
}

func (*IpClaimPoolClient) Create

func (c *IpClaimPoolClient) Create(ipclaimpool *IpClaimPool) (result *IpClaimPool, err error)

func (*IpClaimPoolClient) Delete

func (c *IpClaimPoolClient) Delete(name string, options *metav1.DeleteOptions) error

func (*IpClaimPoolClient) Get

func (c *IpClaimPoolClient) Get(name string) (result *IpClaimPool, err error)

func (*IpClaimPoolClient) List

func (c *IpClaimPoolClient) List(opts metav1.ListOptions) (result *IpClaimPoolList, err error)

func (*IpClaimPoolClient) Update

func (c *IpClaimPoolClient) Update(ipclaimpool *IpClaimPool) (result *IpClaimPool, err error)

type IpClaimPoolList

type IpClaimPoolList struct {
	metav1.TypeMeta `json:",inline"`

	// Standard list metadata.
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Items []IpClaimPool `json:"items" protobuf:"bytes,2,rep,name=items"`
}

func (*IpClaimPoolList) UnmarshalJSON

func (e *IpClaimPoolList) UnmarshalJSON(data []byte) error

type IpClaimPoolSpec

type IpClaimPoolSpec struct {
	CIDR      string            `json:"cidr" protobuf:"bytes,10,opt,name=cidr"`
	Ranges    [][]string        `json:"ranges,omitempty" protobuf:"bytes,5,opt,name=ranges"`
	Allocated map[string]string `json:"allocated,omitempty" protobuf:"bytes,2,opt,name=allocated"`
}

type IpClaimSpec

type IpClaimSpec struct {
	// NodeName used to identify where IPClaim is assigned (IPNode.Name)
	NodeName string `json:"nodeName" protobuf:"bytes,10,opt,name=nodeName"`
	Cidr     string `json:"cidr,omitempty" protobuf:"bytes,10,opt,name=cidr"`
	Link     string `json:"link" protobuf:"bytes,10,opt,name=link"`
}

type IpNode

type IpNode struct {
	metav1.TypeMeta `json:",inline"`

	// Standard object metadata
	Metadata metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// used as a heartbeat
	Revision int64 `json:",string"`
}

func (*IpNode) GetObjectKind

func (e *IpNode) GetObjectKind() schema.ObjectKind

func (*IpNode) GetObjectMeta

func (e *IpNode) GetObjectMeta() metav1.Object

func (*IpNode) UnmarshalJSON

func (e *IpNode) UnmarshalJSON(data []byte) error

type IpNodeList

type IpNodeList struct {
	metav1.TypeMeta `json:",inline"`

	// Standard list metadata.
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Items []IpNode `json:"items" protobuf:"bytes,2,rep,name=items"`
}

func (*IpNodeList) UnmarshalJSON

func (el *IpNodeList) UnmarshalJSON(data []byte) error

type WrappedClientset

type WrappedClientset struct {
	Client *rest.RESTClient
}

func WrapClientsetWithExtensions

func WrapClientsetWithExtensions(clientset *kubernetes.Clientset, config *rest.Config) (*WrappedClientset, error)

func (*WrappedClientset) IPClaimPools

func (w *WrappedClientset) IPClaimPools() IPClaimPoolsInterface

func (*WrappedClientset) IPClaims

func (w *WrappedClientset) IPClaims() IPClaimsInterface

func (*WrappedClientset) IPNodes

func (w *WrappedClientset) IPNodes() IPNodesInterface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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