package frameworkid

import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/components/framework/frameworkid"

Index

Variables

var ErrMismatch = errors.New("framework ID mismatch")

Types

type Getter

type Getter interface {
	Get(context.Context) (string, error)
}

type LookupFunc

type LookupFunc func(context.Context) (string, error)

LookupFunc retrieves a framework ID from persistent storage

func (LookupFunc) Get

func (f LookupFunc) Get(c context.Context) (string, error)

type RemoveFunc

type RemoveFunc func(context.Context) error

RemoveFunc removes a framework ID from persistent storage

func (RemoveFunc) Remove

func (f RemoveFunc) Remove(c context.Context) error

type Remover

type Remover interface {
	Remove(context.Context) error
}

type Setter

type Setter interface {
	Set(context.Context, string) error
}

type Storage

type Storage interface {
	Getter
	Setter
	Remover
}

type StoreFunc

type StoreFunc func(context.Context, string) error

StoreFunc stores a framework ID in persistent storage

func (StoreFunc) Set

func (f StoreFunc) Set(c context.Context, id string) error

Source Files

frameworkid.go

Directories

PathSynopsis
contrib/mesos/pkg/scheduler/components/framework/frameworkid/etcd
contrib/mesos/pkg/scheduler/components/framework/frameworkid/zk
Version
v1.4.5
Published
Oct 29, 2016
Platform
js/wasm
Imports
2 packages
Last checked
11 minutes ago

Tools for package owners.