models

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {

	// the authentication method for api consumers (public, basic, oidc, etc.)
	Authentication string `json:"authentication,omitempty"`

	// enable Cross-Origin Resource Sharing (CORS)
	Cors bool `json:"cors,omitempty"`

	// a easy way to disable an API without deleting it.
	Enabled bool `json:"enabled,omitempty"`

	// the name of the function associated with
	// Required: true
	Function *string `json:"function"`

	// a list of domain names that point to the API
	Hosts []string `json:"hosts"`

	// id
	ID strfmt.UUID `json:"id,omitempty"`

	// a list of HTTP/S methods that point to the API
	Methods []string `json:"methods"`

	// name
	// Required: true
	// Pattern: ^[\w\d\-]+$
	Name *string `json:"name"`

	// a list of support protocols (i.e. http, https)
	Protocols []string `json:"protocols"`

	// status
	Status Status `json:"status,omitempty"`

	// tags
	Tags APITags `json:"tags"`

	// the tls credentials (imported from serverless secret) for https connection
	TLS string `json:"tls,omitempty"`

	// a list of URIs prefixes that point to the API
	Uris []string `json:"uris"`
}

func (*API) MarshalBinary

func (m *API) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*API) UnmarshalBinary

func (m *API) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*API) Validate

func (m *API) Validate(formats strfmt.Registry) error

Validate validates this API

type APITags

type APITags []*Tag

func (APITags) Validate

func (m APITags) Validate(formats strfmt.Registry) error

Validate validates this api tags

type Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	// Required: true
	Message *string `json:"message"`
}

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type GetApisOKBody

type GetApisOKBody []*API

func (GetApisOKBody) Validate

func (m GetApisOKBody) Validate(formats strfmt.Registry) error

Validate validates this get apis o k body

type Status

type Status string
const (
	// StatusCREATING captures enum value "CREATING"
	StatusCREATING Status = "CREATING"
	// StatusREADY captures enum value "READY"
	StatusREADY Status = "READY"
	// StatusUPDATING captures enum value "UPDATING"
	StatusUPDATING Status = "UPDATING"
	// StatusDELETED captures enum value "DELETED"
	StatusDELETED Status = "DELETED"
	// StatusERROR captures enum value "ERROR"
	StatusERROR Status = "ERROR"
)

func (Status) Validate

func (m Status) Validate(formats strfmt.Registry) error

Validate validates this status

type Tag

type Tag struct {

	// key
	Key string `json:"key,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

func (*Tag) MarshalBinary

func (m *Tag) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Tag) UnmarshalBinary

func (m *Tag) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Tag) Validate

func (m *Tag) Validate(formats strfmt.Registry) error

Validate validates this tag

Jump to

Keyboard shortcuts

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