resources

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessList

type AccessList struct {
	Name           string                     `json:"name"`
	Items          AccessListAuthCollection   `json:"items"`
	Clients        AccessListClientCollection `json:"clients"`
	PassAuth       boolAsInt                  `json:"pass_auth"`
	SatisfyAny     boolAsInt                  `json:"satisfy_any"`
	ProxyHostCount int64                      `json:"proxy_host_count"`
	// contains filtered or unexported fields
}

type AccessListAuth

type AccessListAuth struct {
	AccessListId int64  `json:"access_list_id"`
	Hint         string `json:"hint"`
	Username     string `json:"username"`
	Password     string `json:"password"`
	// contains filtered or unexported fields
}

type AccessListAuthCollection

type AccessListAuthCollection []AccessListAuth

type AccessListClient

type AccessListClient struct {
	AccessListId int64  `json:"access_list_id"`
	Address      string `json:"address"`
	Directive    string `json:"directive"`
	// contains filtered or unexported fields
}

type AccessListClientCollection

type AccessListClientCollection []AccessListClient

type AccessListCollection

type AccessListCollection []AccessList

type Api added in v0.0.22

type Api struct {
	Status  string  `json:"status"`
	Version Version `json:"version"`
}

type Certificate

type Certificate struct {
	Provider    string   `json:"provider"`
	NiceName    string   `json:"nice_name"`
	DomainNames []string `json:"domain_names"`
	ExpiresOn   string   `json:"expires_on"`
	// contains filtered or unexported fields
}

type CertificateCollection

type CertificateCollection []Certificate

type CertificateValidated added in v0.0.23

type CertificateValidated struct {
	Certificate    certificate `json:"certificate"`
	CertificateKey bool        `json:"certificate_key"`
}

type DeadHost added in v0.0.19

type DeadHost struct {
	DomainNames    []string        `json:"domain_names"`
	CertificateID  json.RawMessage `json:"certificate_id"`
	SSLForced      boolAsInt       `json:"ssl_forced"`
	HSTSEnabled    boolAsInt       `json:"hsts_enabled"`
	HSTSSubdomains boolAsInt       `json:"hsts_subdomains"`
	HTTP2Support   boolAsInt       `json:"http2_support"`
	AdvancedConfig string          `json:"advanced_config"`
	Enabled        boolAsInt       `json:"enabled"`
	// contains filtered or unexported fields
}

type DeadHostCollection added in v0.0.19

type DeadHostCollection []DeadHost

type Meta

type Meta map[string]json.RawMessage

func (*Meta) Map

func (m *Meta) Map() map[string]string

type ProxyHost

type ProxyHost struct {
	DomainNames           []string                    `json:"domain_names"`
	ForwardScheme         string                      `json:"forward_scheme"`
	ForwardHost           string                      `json:"forward_host"`
	ForwardPort           uint16                      `json:"forward_port"`
	CertificateID         json.RawMessage             `json:"certificate_id"`
	SSLForced             boolAsInt                   `json:"ssl_forced"`
	HSTSEnabled           boolAsInt                   `json:"hsts_enabled"`
	HSTSSubdomains        boolAsInt                   `json:"hsts_subdomains"`
	HTTP2Support          boolAsInt                   `json:"http2_support"`
	BlockExploits         boolAsInt                   `json:"block_exploits"`
	CachingEnabled        boolAsInt                   `json:"caching_enabled"`
	AllowWebsocketUpgrade boolAsInt                   `json:"allow_websocket_upgrade"`
	AccessListID          int64                       `json:"access_list_id"`
	AdvancedConfig        string                      `json:"advanced_config"`
	Enabled               boolAsInt                   `json:"enabled"`
	Locations             ProxyHostLocationCollection `json:"locations"`
	// contains filtered or unexported fields
}

type ProxyHostCollection

type ProxyHostCollection []ProxyHost

type ProxyHostLocation

type ProxyHostLocation struct {
	Path           string `json:"path"`
	ForwardScheme  string `json:"forward_scheme"`
	ForwardHost    string `json:"forward_host"`
	ForwardPort    uint16 `json:"forward_port"`
	AdvancedConfig string `json:"advanced_config"`
}

type ProxyHostLocationCollection

type ProxyHostLocationCollection []ProxyHostLocation

type RedirectionHost added in v0.0.17

type RedirectionHost struct {
	DomainNames       []string        `json:"domain_names"`
	ForwardScheme     string          `json:"forward_scheme"`
	ForwardDomainName string          `json:"forward_domain_name"`
	ForwardHTTPCode   uint16          `json:"forward_http_code"`
	CertificateID     json.RawMessage `json:"certificate_id"`
	SSLForced         boolAsInt       `json:"ssl_forced"`
	HSTSEnabled       boolAsInt       `json:"hsts_enabled"`
	HSTSSubdomains    boolAsInt       `json:"hsts_subdomains"`
	HTTP2Support      boolAsInt       `json:"http2_support"`
	PreservePath      boolAsInt       `json:"preserve_path"`
	BlockExploits     boolAsInt       `json:"block_exploits"`
	AdvancedConfig    string          `json:"advanced_config"`
	Enabled           boolAsInt       `json:"enabled"`
	// contains filtered or unexported fields
}

type RedirectionHostCollection added in v0.0.17

type RedirectionHostCollection []RedirectionHost

type Stream added in v0.0.18

type Stream struct {
	IncomingPort   uint16    `json:"incoming_port"`
	ForwardingHost string    `json:"forwarding_host"`
	ForwardingPort uint16    `json:"forwarding_port"`
	TCPForwarding  boolAsInt `json:"tcp_forwarding"`
	UDPForwarding  boolAsInt `json:"udp_forwarding"`
	Enabled        boolAsInt `json:"enabled"`
	// contains filtered or unexported fields
}

type StreamCollection added in v0.0.18

type StreamCollection []Stream

type User

type User struct {
	Name        string          `json:"name"`
	Nickname    string          `json:"nickname"`
	Email       string          `json:"email"`
	Avatar      string          `json:"avatar"`
	IsDisabled  boolAsInt       `json:"is_disabled"`
	Roles       []string        `json:"roles"`
	Permissions UserPermissions `json:"permissions"`
	// contains filtered or unexported fields
}

type UserCollection

type UserCollection []User

type UserPermissions

type UserPermissions struct {
	AccessLists      string `json:"access_lists"`
	Certificates     string `json:"certificates"`
	DeadHosts        string `json:"dead_hosts"`
	ProxyHosts       string `json:"proxy_hosts"`
	RedirectionHosts string `json:"redirection_hosts"`
	Streams          string `json:"streams"`
	Visibility       string `json:"visibility"`
	UserId           int64  `json:"user_id"`
	// contains filtered or unexported fields
}

type Version added in v0.0.22

type Version struct {
	Major    int64 `json:"major"`
	Minor    int64 `json:"minor"`
	Revision int64 `json:"revision"`
}

Jump to

Keyboard shortcuts

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