cloud

package
v1.999.224 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventCloud gen.Event = "cloud"

	ProtoHandshakeV1                = 41
	ProtoHandshakeV1Auth            = 100
	ProtoHandshakeV1AuthReply       = 101
	ProtoHandshakeV1Challenge       = 102
	ProtoHandshakeV1ChallengeAccept = 103
	ProtoHandshakeV1Error           = 200
)

Variables

This section is empty.

Functions

func CreateApp

func CreateApp(options node.Cloud) gen.ApplicationBehavior

func GenDigest

func GenDigest(h hash.Hash, items ...[]byte) []byte

func RegisterTypes

func RegisterTypes() error

Types

type CloudApp

type CloudApp struct {
	gen.Application
	// contains filtered or unexported fields
}

func (*CloudApp) Load

func (ca *CloudApp) Load(args ...etf.Term) (gen.ApplicationSpec, error)

func (*CloudApp) Start

func (ca *CloudApp) Start(p gen.Process, args ...etf.Term)

type CloudNode

type CloudNode struct {
	Node       string
	Port       uint16
	SkipVerify bool
}

type Handshake

type Handshake struct {
	node.Handshake
	// contains filtered or unexported fields
}

func (*Handshake) Init

func (ch *Handshake) Init(nodename string, creation uint32, flags node.Flags) error

func (*Handshake) Start

func (ch *Handshake) Start(remote net.Addr, conn lib.NetReadWriter, tls bool, cookie string) (node.HandshakeDetails, error)

type MessageEventCloud

type MessageEventCloud struct {
	Cluster string
	Online  bool
	Proxy   string
}

type MessageHandshakeV1Auth

type MessageHandshakeV1Auth struct {
	Node     string
	Cluster  string
	Creation uint32
	Flags    node.CloudFlags
}

client -> cloud

type MessageHandshakeV1AuthReply

type MessageHandshakeV1AuthReply struct {
	Node     string
	Creation uint32
	Digest   []byte
}

cloud -> client

type MessageHandshakeV1Challenge

type MessageHandshakeV1Challenge struct {
	Digest []byte
}

client -> cloud

type MessageHandshakeV1ChallengeAccept

type MessageHandshakeV1ChallengeAccept struct {
	Node string // mapped node name
}

cloud -> client

type MessageHandshakeV1Error

type MessageHandshakeV1Error struct {
	Reason string
}

cloud -> client

Jump to

Keyboard shortcuts

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