eniconfig

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 11 Imported by: 39

Documentation

Overview

Package eniconfig handles eniconfig CRD

Index

Constants

This section is empty.

Variables

View Source
var ErrNoENIConfig = errors.New("eniconfig: eniconfig is not available")

Functions

func NewHandler

func NewHandler(controller *ENIConfigController) sdk.Handler

NewHandler creates a new handler for sdk

Types

type ENIConfig

type ENIConfig interface {
	MyENIConfig() (*v1alpha1.ENIConfigSpec, error)
	Getter() *ENIConfigInfo
}

type ENIConfigController

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

ENIConfigController defines global context for ENIConfig controller

func NewENIConfigController

func NewENIConfigController() *ENIConfigController

NewENIConfigController creates a new ENIConfig controller

func (*ENIConfigController) Getter

func (eniCfg *ENIConfigController) Getter() *ENIConfigInfo

func (*ENIConfigController) MyENIConfig

func (eniCfg *ENIConfigController) MyENIConfig() (*v1alpha1.ENIConfigSpec, error)

MyENIConfig returns the security

func (*ENIConfigController) Start

func (eniCfg *ENIConfigController) Start()

Start kicks off ENIConfig controller

type ENIConfigInfo

type ENIConfigInfo struct {
	ENI                    map[string]v1alpha1.ENIConfigSpec
	MyENI                  string
	EniConfigAnnotationDef string
	EniConfigLabelDef      string
}

ENIConfigInfo returns locally cached ENIConfigs

type Handler

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

Handler stores the ENIConfigController

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, event sdk.Event) error

Handle handles ENIConfig updates from API Server and store them in local cache

Directories

Path Synopsis
Package mock_eniconfig is a generated GoMock package.
Package mock_eniconfig is a generated GoMock package.

Jump to

Keyboard shortcuts

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