eniconfig

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 8 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")

ErrNoENIConfig is the missing ENIConfig error

Functions

func GetNodeSpecificENIConfigName added in v1.8.0

func GetNodeSpecificENIConfigName(ctx context.Context, k8sClient client.Client) (string, error)

func MyENIConfig added in v1.8.0

func MyENIConfig(ctx context.Context, k8sClient client.Client) (*v1alpha1.ENIConfigSpec, error)

MyENIConfig returns the ENIConfig applicable to the particular node

Types

type ENIConfig

type ENIConfig interface {
	MyENIConfig(client.Client) (*v1alpha1.ENIConfigSpec, error)
	GetENIConfigName(context.Context, client.Client) (string, error)
}

ENIConfig interface

type ENIConfigInfo

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

ENIConfigInfo returns locally cached ENIConfigs

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