contexts

package
v0.0.0-...-34ba797 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2015 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStorages

func GetStorages(ctx context.Context) (map[string]types.Storage, bool)

GetStorages extracts the map of types.Storage objects, if present.

func GetVhost

func GetVhost(ctx context.Context) (*types.VirtualHost, bool)

GetVhost extracts the vhost.Vhost object, if present.

func NewStoragesContext

func NewStoragesContext(ctx context.Context, storages map[string]types.Storage) context.Context

NewStoragesContext returns a new Context carrying the map with the supplied storages.

func NewVhostContext

func NewVhostContext(ctx context.Context, vhost *types.VirtualHost) context.Context

NewVhostContext returns a new Context carrying the supplied vhost pointer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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