env_core

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIEndpoint string
}

type Environment

type Environment struct {
	EnvironmentID string
	AccountToken  string
	ZitiIdentity  string
	APIEndpoint   string
}

type ManagedConnect

type ManagedConnect struct {
	TunnelID      string
	Name          string
	ListenAddress string
}

type ManagedServe

type ManagedServe struct {
	TunnelID      string
	Name          string
	Mode          api.TunnelMode
	BackendTarget string
	GrantEmails   []string
}

type Metadata

type Metadata struct {
	V        string
	RootPath string
}

type Network

type Network struct {
	Serves   []ManagedServe
	Connects []ManagedConnect
}

type Root

type Root interface {
	Metadata() *Metadata
	Obliterate() error

	HasConfig() (bool, error)
	Config() *Config
	SetConfig(cfg *Config) error

	Client() (*api.Client, error)
	APIEndpoint() (string, string)

	IsEnabled() bool
	Environment() *Environment
	SetEnvironment(env *Environment) error
	DeleteEnvironment() error

	Network() *Network
	SetNetwork(network *Network) error
	DeleteNetwork() error
	NetworkSocketPath() (string, error)

	ZitiIdentityNamed(name string) (string, error)
	SaveZitiIdentityNamed(name, data string) error
	DeleteZitiIdentityNamed(name string) error
}

Jump to

Keyboard shortcuts

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