models

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// TokenAPIAccessDisabled captures enum value "disabled"
	TokenAPIAccessDisabled string = "disabled"

	// TokenAPIAccessEnabled captures enum value "enabled"
	TokenAPIAccessEnabled string = "enabled"
)
View Source
const (

	// TunnelCryptoOff captures enum value "off"
	TunnelCryptoOff string = "off"

	// TunnelCryptoFlexible captures enum value "flexible"
	TunnelCryptoFlexible string = "flexible"

	// TunnelCryptoFull captures enum value "full"
	TunnelCryptoFull string = "full"

	// TunnelCryptoFullStrict captures enum value "full-strict"
	TunnelCryptoFullStrict string = "full-strict"

	// TunnelCryptoTLSPassThrough captures enum value "tls-pass-through"
	TunnelCryptoTLSPassThrough string = "tls-pass-through"
)
View Source
const (

	// TunnelRegion captures enum value ""
	TunnelRegion string = ""

	// TunnelRegionUsWest captures enum value "us-west"
	TunnelRegionUsWest string = "us-west"

	// TunnelRegionEu captures enum value "eu"
	TunnelRegionEu string = "eu"

	// TunnelRegionAu captures enum value "au"
	TunnelRegionAu string = "au"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AndRule added in v0.2.0

type AndRule []*Rules

AndRule And Rule swagger:model AndRule

func (AndRule) Validate added in v0.2.0

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

Validate validates this and rule

type Bucket

type Bucket struct {

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

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

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

	// If ephemeral is enabled, Webhook Relay will not persist request body, headers or response details
	Ephemeral bool `json:"ephemeral,omitempty"`

	// id
	// Read Only: true
	ID string `json:"id,omitempty"`

	// inputs
	// Read Only: true
	Inputs []*Input `json:"inputs"`

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

	// outputs
	// Read Only: true
	Outputs []*Output `json:"outputs"`

	// Enable/disabled streaming to WebSocket clients from this bucket
	Stream bool `json:"stream,omitempty"`

	// Indicates that webhooks will not be received due to quota limits
	// Read Only: true
	Suspended *bool `json:"suspended,omitempty"`

	// updated at
	// Read Only: true
	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
	// Read Only: true
	CreatedAt int64 `json:"created_at,omitempty"`

	// id
	// Read Only: true
	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
	// Read Only: true
	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 Headers added in v0.2.0

type Headers interface{}

Headers Headers for request/response

A hashmap of header keys and a list of values for each string, Go equivalent map[string][]string swagger:model Headers

type Input

type Input struct {

	// Response body to return when this input receives a webhook
	Body string `json:"body,omitempty"`

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

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

	// headers
	Headers Headers `json:"headers,omitempty"`

	// id
	// Read Only: true
	ID string `json:"id,omitempty"`

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

	// Response status code to return when this input receives a webhook
	StatusCode int64 `json:"status_code,omitempty"`

	// updated at
	// Read Only: true
	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 MatchRule added in v0.2.0

type MatchRule []*Rules

MatchRule Match Rule swagger:model MatchRule

func (MatchRule) Validate added in v0.2.0

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

Validate validates this match rule

type NotRule added in v0.2.0

type NotRule []*Rules

NotRule Not Rule swagger:model NotRule

func (NotRule) Validate added in v0.2.0

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

Validate validates this not rule

type OrRule added in v0.2.0

type OrRule []*Rules

OrRule Or Rule swagger:model OrRule

func (OrRule) Validate added in v0.2.0

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

Validate validates this or rule

type Output

type Output struct {

	// bucket id
	// Read Only: true
	BucketID string `json:"bucket_id,omitempty"`

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

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

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

	// Headers to override (for example Host)
	Headers Headers `json:"headers,omitempty"`

	// id
	// Read Only: true
	ID string `json:"id,omitempty"`

	// When internal output receives webhook, it forwards it to any connected agent (relay CLI, Docker agent or WebSocket connection)
	Internal bool `json:"internal,omitempty"`

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

	// Request matching rules, documentation can be found here https://webhookrelay.com/v1/guide/webhook-forwarding.html#Request-matching-rules
	Rules *Rules `json:"rules,omitempty"`

	// Enforce TLS verification where possible (internal relay agent)
	TLSVerification bool `json:"tls_verification,omitempty"`

	// updated at
	// Read Only: true
	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 Rules added in v0.2.0

type Rules struct {

	// and
	And AndRule `json:"and,omitempty"`

	// match
	Match MatchRule `json:"match,omitempty"`

	// not
	Not NotRule `json:"not,omitempty"`

	// or
	Or OrRule `json:"or,omitempty"`
}

Rules Rules swagger:model Rules

func (*Rules) MarshalBinary added in v0.2.0

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

MarshalBinary interface implementation

func (*Rules) UnmarshalBinary added in v0.2.0

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

UnmarshalBinary interface implementation

func (*Rules) Validate added in v0.2.0

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

Validate validates this rules

type Token

type Token struct {

	// Enable/disable API access. If disabled, it can only be used to open tunnel connections or forward webhooks but not change any existing configuration
	// Enum: [disabled enabled]
	APIAccess string `json:"api_access,omitempty"`

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

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

	// id
	// Read Only: true
	ID string `json:"id,omitempty"`

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

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

	// updated at
	// Read Only: true
	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 {

	// Token key, this is an alias to token ID
	Key string `json:"key,omitempty"`

	// This is the only time secret is revealed as it is already encrypted by the system
	Secret string `json:"secret,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 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
	// Read Only: true
	CreatedAt int64 `json:"created_at,omitempty"`

	// Tunnel encryption type
	// Enum: [off flexible full full-strict tls-pass-through]
	Crypto string `json:"crypto,omitempty"`

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

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

	// Groups allow agents to subscribe to one or more tunnels
	Group string `json:"group,omitempty"`

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

	// id
	// Read Only: true
	ID string `json:"id,omitempty"`

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

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

	// Tunnel region
	// Enum: [ us-west eu au]
	Region string `json:"region,omitempty"`

	// updated at
	// Read Only: true
	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
	// Read Only: true
	CreatedAt int64 `json:"created_at,omitempty"`

	// id
	// Read Only: true
	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
	// Read Only: true
	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

Jump to

Keyboard shortcuts

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