common

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

TODO: find more better package to put error struct

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigurationExist = errors.New("configuration already exists")
	ErrInvalidLength      = errors.New("length mismatched")
	ErrVolumeAlreadyExist = errors.New("volume already exists")
)

Functions

func IsConfigurationExist

func IsConfigurationExist(err error) bool

func IsVolumeExists

func IsVolumeExists(err error) bool

Types

type ConfigurationIsExists

type ConfigurationIsExists struct {
	FilePath string
	Config   string
	Err      error
}

func (ConfigurationIsExists) Error

func (e ConfigurationIsExists) Error() string

type DockerVolumeAlreadyExists

type DockerVolumeAlreadyExists struct {
	Name   string
	Device string
	Option string
	Err    error
}

func (DockerVolumeAlreadyExists) Error

Jump to

Keyboard shortcuts

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