glue

package module
v0.0.0-...-c74f5c6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

README

CNI Glue

Simple binding to plug CNI into Rancher and runc hooks.

Building

make

Running

./bin/cniglue

License

Copyright (c) 2014-2016 Rancher Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CNIAdd

func CNIAdd(state *DockerPluginState) (*types.Result, error)

func CNIDel

func CNIDel(state *DockerPluginState) error

func Main

func Main()

func Poststop

func Poststop() error

func Prestart

func Prestart() error

func SetupHosts

func SetupHosts(state *DockerPluginState, cniResult *types.Result) error

func SetupResolvConf

func SetupResolvConf(state *DockerPluginState) error

Types

type CNIExec

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

func NewCNIExec

func NewCNIExec(state *DockerPluginState) (*CNIExec, error)

func (*CNIExec) Add

func (c *CNIExec) Add(index int) (*types.Result, error)

func (*CNIExec) Del

func (c *CNIExec) Del(index int) error

type DockerPluginState

type DockerPluginState struct {
	ContainerID string
	State       specs.State
	Spec        specs.Spec
	HostConfig  container.HostConfig
	Config      container.Config
}

func ReadState

func ReadState() (*DockerPluginState, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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