model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package model is a generated protocol buffer package.

It is generated from these files:

ipam.proto

It has these top-level messages:

AllocatedIP

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key(pod string) string

Key returns the key for a given allocatedIP record

func KeyPrefix

func KeyPrefix() string

KeyPrefix return prefix where all ipam items are persisted

Types

type AllocatedIP

type AllocatedIP struct {
	// id represents the assigned IP address
	ID uint32 `protobuf:"varint,1,opt,name=ID" json:"ID,omitempty"`
	// pod is an identifier tied to assigned IP
	Pod string `protobuf:"bytes,2,opt,name=pod" json:"pod,omitempty"`
}

AllocatedIP represent an IP address allocated for a pod

func (*AllocatedIP) Descriptor

func (*AllocatedIP) Descriptor() ([]byte, []int)

func (*AllocatedIP) GetID

func (m *AllocatedIP) GetID() uint32

func (*AllocatedIP) GetPod

func (m *AllocatedIP) GetPod() string

func (*AllocatedIP) ProtoMessage

func (*AllocatedIP) ProtoMessage()

func (*AllocatedIP) Reset

func (m *AllocatedIP) Reset()

func (*AllocatedIP) String

func (m *AllocatedIP) String() string

Jump to

Keyboard shortcuts

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