models

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MPL-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {

	// auth
	Auth *BucketAuth `json:"auth,omitempty"`

	// created at
	CreatedAt int64 `json:"created_at,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// inputs
	Inputs []*Input `json:"inputs"`

	// name
	Name string `json:"name,omitempty"`

	// outputs
	Outputs []*Output `json:"outputs"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty"`
}

Bucket Bucket swagger:model Bucket

func (*Bucket) MarshalBinary

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

MarshalBinary interface implementation

func (*Bucket) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Bucket) Validate

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

Validate validates this bucket

type BucketAuth

type BucketAuth struct {

	// created at
	CreatedAt int64 `json:"created_at,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// token
	Token string `json:"token,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

BucketAuth BucketAuth swagger:model BucketAuth

func (*BucketAuth) MarshalBinary

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

MarshalBinary interface implementation

func (*BucketAuth) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BucketAuth) Validate

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

Validate validates this bucket auth

type BucketRequest

type BucketRequest struct {

	// description
	Description string `json:"description,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

BucketRequest Bucket create request swagger:model BucketRequest

func (*BucketRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*BucketRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BucketRequest) Validate

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

Validate validates this bucket request

type Input

type Input struct {

	// created at
	CreatedAt int64 `json:"created_at,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty"`
}

Input Input swagger:model Input

func (*Input) MarshalBinary

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

MarshalBinary interface implementation

func (*Input) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Input) Validate

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

Validate validates this input

type InputRequest

type InputRequest struct {

	// description
	Description string `json:"description,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

InputRequest Input create request swagger:model InputRequest

func (*InputRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*InputRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*InputRequest) Validate

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

Validate validates this input request

type Output

type Output struct {

	// created at
	CreatedAt int64 `json:"created_at,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// destination
	Destination string `json:"destination,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// internal
	Internal bool `json:"internal,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty"`
}

Output Output swagger:model Output

func (*Output) MarshalBinary

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

MarshalBinary interface implementation

func (*Output) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Output) Validate

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

Validate validates this output

type OutputRequest

type OutputRequest struct {

	// description
	Description string `json:"description,omitempty"`

	// Destination, where to forward the webhook, such as 'http://localhost:4000'
	Destination string `json:"destination,omitempty"`

	// internal
	Internal bool `json:"internal,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

OutputRequest Output create request swagger:model OutputRequest

func (*OutputRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*OutputRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OutputRequest) Validate

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

Validate validates this output request

type Token

type Token struct {

	// api access
	APIAccess string `json:"api_access,omitempty"`

	// created at
	CreatedAt int64 `json:"created_at,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// last login
	LastLogin string `json:"last_login,omitempty"`

	// scopes
	Scopes *TokenScopes `json:"scopes,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty"`
}

Token Token swagger:model Token

func (*Token) MarshalBinary

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

MarshalBinary interface implementation

func (*Token) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Token) Validate

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

Validate validates this token

type TokenCreateResponse

type TokenCreateResponse struct {

	// api access
	APIAccess string `json:"api_access,omitempty"`

	// created at
	CreatedAt int64 `json:"created_at,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// Token ID is used as a key
	ID string `json:"id,omitempty"`

	// last login
	LastLogin string `json:"last_login,omitempty"`

	// scopes
	Scopes *TokenScopes `json:"scopes,omitempty"`

	// This is the only time secret is revealed as it is already encrypted by the system
	Secret string `json:"secret,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty"`
}

TokenCreateResponse Token Create Response swagger:model TokenCreateResponse

func (*TokenCreateResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*TokenCreateResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TokenCreateResponse) Validate

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

Validate validates this token create response

type TokenRequest

type TokenRequest struct {

	// Can be either 'enabled' or 'disabled'. Tokens with disabled API access can only be used to open tunnels or forward webhooks
	APIAccess string `json:"api_access,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// scopes
	Scopes *TokenScopes `json:"scopes,omitempty"`
}

TokenRequest Token Request swagger:model TokenRequest

func (*TokenRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TokenRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TokenRequest) Validate

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

Validate validates this token request

type TokenScopes

type TokenScopes struct {

	// buckets
	Buckets []string `json:"buckets"`

	// tunnels
	Tunnels []string `json:"tunnels"`
}

TokenScopes TokenScopes swagger:model TokenScopes

func (*TokenScopes) MarshalBinary

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

MarshalBinary interface implementation

func (*TokenScopes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TokenScopes) Validate

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

Validate validates this token scopes

type Tunnel

type Tunnel struct {

	// auth
	Auth *TunnelAuth `json:"auth,omitempty"`

	// created at
	CreatedAt int64 `json:"created_at,omitempty"`

	// crypto
	Crypto string `json:"crypto,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// destination
	Destination string `json:"destination,omitempty"`

	// group
	Group string `json:"group,omitempty"`

	// host
	Host string `json:"host,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// protocol
	Protocol string `json:"protocol,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty"`
}

Tunnel Tunnel swagger:model Tunnel

func (*Tunnel) MarshalBinary

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

MarshalBinary interface implementation

func (*Tunnel) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Tunnel) Validate

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

Validate validates this tunnel

type TunnelAuth

type TunnelAuth struct {

	// created at
	CreatedAt int64 `json:"created_at,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// token
	Token string `json:"token,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

TunnelAuth Tunnel Authentication swagger:model TunnelAuth

func (*TunnelAuth) MarshalBinary

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

MarshalBinary interface implementation

func (*TunnelAuth) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TunnelAuth) Validate

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

Validate validates this tunnel auth

type TunnelCreateRequest

type TunnelCreateRequest struct {

	// auth
	Auth *TunnelAuth `json:"auth,omitempty"`

	// crypto
	Crypto string `json:"crypto,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// destination
	// Required: true
	Destination *string `json:"destination"`

	// group
	Group string `json:"group,omitempty"`

	// host
	Host string `json:"host,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// subdomain
	Subdomain string `json:"subdomain,omitempty"`
}

TunnelCreateRequest Tunnel Create Request swagger:model TunnelCreateRequest

func (*TunnelCreateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TunnelCreateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TunnelCreateRequest) Validate

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

Validate validates this tunnel create request

type TunnelUpdateRequest

type TunnelUpdateRequest struct {

	// auth
	Auth *TunnelAuth `json:"auth,omitempty"`

	// crypto
	Crypto string `json:"crypto,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// destination
	Destination string `json:"destination,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

TunnelUpdateRequest Tunnel Update Request swagger:model TunnelUpdateRequest

func (*TunnelUpdateRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*TunnelUpdateRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TunnelUpdateRequest) Validate

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

Validate validates this tunnel update request

Jump to

Keyboard shortcuts

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