model

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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