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 ¶
MarshalBinary interface implementation
func (*Bucket) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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 ¶
MarshalBinary interface implementation
func (*Input) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Output) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Token) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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 ¶
MarshalBinary interface implementation
func (*Tunnel) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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