types

package
v3.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 7 Imported by: 72

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SupportedProtocolsStrings added in v3.3.1

func SupportedProtocolsStrings() []string

SupportedProtocolsStrings returns a slice of strings of supported protocols

Types

type ClusterMappingsMap added in v3.7.1

type ClusterMappingsMap struct {
	Map map[string][]string
}

ClusterMappingsMap wraps cluster ID to template IDs mapping

func NewClusterMappingsMap added in v3.7.1

func NewClusterMappingsMap(m map[string][]string) *ClusterMappingsMap

NewClusterMappingsMap creates a new ClusterMappingsMap from an existing map

func (*ClusterMappingsMap) Copy added in v3.7.1

Copy returns a deep copy of the ClusterMappingsMap, or nil if the receiver is nil

func (*ClusterMappingsMap) Get added in v3.7.1

func (c *ClusterMappingsMap) Get(clusterID string) ([]string, bool)

Get returns the template IDs for a given cluster ID, or nil, false if the receiver or Map is nil

func (*ClusterMappingsMap) GetAll added in v3.7.1

func (c *ClusterMappingsMap) GetAll() map[string][]string

GetAll returns a copy of the entire map, or an empty map if the receiver or Map is nil

type ProtocolType

type ProtocolType int

ProtocolType is the type of the request protocol specified

const (
	// name:dns
	DNSProtocol ProtocolType = iota + 1
	// name:file
	FileProtocol
	// name:http
	HTTPProtocol
	// name:offline-http
	OfflineHTTPProtocol
	// name:headless
	HeadlessProtocol
	// name:network
	NetworkProtocol
	// name:workflow
	WorkflowProtocol
	// name:ssl
	SSLProtocol
	// name:websocket
	WebsocketProtocol
	// name:whois
	WHOISProtocol
	// name:code
	CodeProtocol
	// name: js
	JavascriptProtocol

	InvalidProtocol
)

Supported values for the ProtocolType name:ProtocolType

func (ProtocolType) String

func (t ProtocolType) String() string

type ProtocolTypes

type ProtocolTypes []ProtocolType

func GetSupportedProtocolTypes

func GetSupportedProtocolTypes() ProtocolTypes

func (ProtocolTypes) MarshalJSON

func (protocolTypes ProtocolTypes) MarshalJSON() ([]byte, error)

func (*ProtocolTypes) Set

func (protocolTypes *ProtocolTypes) Set(values string) error

func (ProtocolTypes) String

func (protocolTypes ProtocolTypes) String() string

func (*ProtocolTypes) UnmarshalYAML

func (protocolTypes *ProtocolTypes) UnmarshalYAML(unmarshal func(interface{}) error) error

type TypeHolder

type TypeHolder struct {
	ProtocolType ProtocolType `mapping:"true"`
}

TypeHolder is used to hold internal type of the protocol

func (TypeHolder) JSONSchema added in v3.2.4

func (holder TypeHolder) JSONSchema() *jsonschema.Schema

func (*TypeHolder) MarshalJSON

func (holder *TypeHolder) MarshalJSON() ([]byte, error)

func (TypeHolder) MarshalYAML

func (holder TypeHolder) MarshalYAML() (interface{}, error)

func (*TypeHolder) UnmarshalYAML

func (holder *TypeHolder) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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