zrokdir

package
v0.4.0-rc11 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const V = "v0.3"

Variables

This section is empty.

Functions

func DeleteEnvironment

func DeleteEnvironment() error

func DeleteZitiIdentity

func DeleteZitiIdentity(name string) error

func Obliterate

func Obliterate() error

func SaveZitiIdentity

func SaveZitiIdentity(name, data string) error

func ZitiIdentityFile

func ZitiIdentityFile(name string) (string, error)

Types

type Config

type Config struct {
	ApiEndpoint string `json:"api_endpoint"`
}

type Environment

type Environment struct {
	Token       string `json:"zrok_token"`
	ZId         string `json:"ziti_identity"`
	ApiEndpoint string `json:"api_endpoint"`
}

type Metadata

type Metadata struct {
	V string `json:"v"`
}

type ZrokDir

type ZrokDir struct {
	Env *Environment
	Cfg *Config
	// contains filtered or unexported fields
}

func Initialize

func Initialize() (*ZrokDir, error)

func Load

func Load() (*ZrokDir, error)

func (*ZrokDir) ApiEndpoint

func (zrd *ZrokDir) ApiEndpoint() (apiEndpoint string, from string)

func (*ZrokDir) Client

func (zrd *ZrokDir) Client() (*rest_client_zrok.Zrok, error)

func (*ZrokDir) Save

func (zrd *ZrokDir) Save() error

Jump to

Keyboard shortcuts

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