model

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2016 License: Apache-2.0 Imports: 8 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Admin = User{
	Username:    "admin",
	Password:    "admin",
	Email:       "admintest@deis.com",
	IsSuperuser: false,
}

Functions

This section is empty.

Types

type App

type App struct {
	Name string
	URL  string
}

func NewApp

func NewApp() App

type Cert

type Cert struct {
	Name     string
	CertPath string
	KeyPath  string
}

func NewCert

func NewCert() Cert

type Cmd

type Cmd struct {
	Env               []string
	CommandLineString string
}

type CmdResult

type CmdResult struct {
	Out      []byte
	Err      []byte
	ExitCode int
}

CmdResult represents a generic command result, with expected Out, Err and ExitCode

func (CmdResult) Satisfies

func (ocd CmdResult) Satisfies(ecd CmdResult) bool

Satisfies returns whether or not the original CmdResult, ocd, meets all of the expectations contained in the expeced CmdResult, ecd

func (CmdResult) String

func (ocd CmdResult) String() string

String returns the CmdResult in printable form

type User

type User struct {
	Username    string
	Password    string
	Email       string
	IsSuperuser bool
}

func NewUser

func NewUser() User

Jump to

Keyboard shortcuts

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