target

package
v0.0.0-...-c937b9e Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndroidTarget

type AndroidTarget struct {
	Name string     `json:"name" description:"target name, 80 symbols max" mobile:"nonzero,max=80"`
	File *file.Meta `json:"file" description:"apk file metadata"`
}

type SummaryReport

type SummaryReport struct {
	Issues map[issue.Severity]int `json:"issues" bson:"issues"`
}

type Target

type Target struct {
	Id      bson.ObjectId  `json:"id,omitempty" bson:"_id"`
	Type    TargetType     `json:"type" description:"one of [web|android]"`
	Web     *WebTarget     `json:"web,omitempty" description:"information about web target"`
	Android *AndroidTarget `json:"android,omitempty" description:"information about android target"`
	Project bson.ObjectId  `json:"project"`
	Created time.Time      `json:"created,omitempty"`
	Updated time.Time      `json:"updated,omitempty"`

	SummaryReport *SummaryReport `json:"summaryReport,omitempty" bson:"summaryReport"`
}

func (*Target) Addr

func (t *Target) Addr() string

type TargetList

type TargetList struct {
	pagination.Meta `json:",inline"`
	Results         []*Target `json:"results"`
}

type TargetType

type TargetType string
const (
	TypeWeb     TargetType = "web"
	TypeAndroid TargetType = "android"
)

func (TargetType) Convert

func (t TargetType) Convert(text string) (interface{}, error)

func (TargetType) Enum

func (t TargetType) Enum() []interface{}

func (TargetType) MarshalJSON

func (t TargetType) MarshalJSON() ([]byte, error)

It's a hack to show custom type as string in swagger

type WebTarget

type WebTarget struct {
	Domain string `json:"domain"`
}

Jump to

Keyboard shortcuts

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