cniserver

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSocketPath = "/run/tetrapod/cni.sock"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(socketPath string) *Client

func (*Client) GetExtraPodCIDRs

func (c *Client) GetExtraPodCIDRs(namespace, name string) (*controlplanev1alpha1.CIDRClaimList, error)

func (*Client) GetPodCIDRs

func (c *Client) GetPodCIDRs() (*controlplanev1alpha1.CIDRClaimList, error)

type GetExtraPodCIDRsArgs

type GetExtraPodCIDRsArgs struct {
	Namespace, Name string
}

type GetPodCIDRsArgs

type GetPodCIDRsArgs struct {
}

type Handler

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

func (*Handler) GetExtraPodCIDRs

func (h *Handler) GetExtraPodCIDRs(args *GetExtraPodCIDRsArgs, cidrClaims *controlplanev1alpha1.CIDRClaimList) error

func (*Handler) GetPodCIDRs

func (h *Handler) GetPodCIDRs(args *GetPodCIDRsArgs, cidrClaims *controlplanev1alpha1.CIDRClaimList) error

type Options

type Options struct {
	Cache                    cache.Cache
	LocalCache               cache.Cache
	ControlPlaneNamespace    string
	ClusterName              string
	NodeName                 string
	PodAddressClaimTemplates []string
}

type Server

type Server interface {
	Run() error
	Shutdown()
}

func NewServer

func NewServer(socketPath string, opt Options) (Server, error)

Jump to

Keyboard shortcuts

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