edge

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 68 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OsAndroid       = "Android"
	OsWindows       = "Windows"
	OsWindowsServer = "WindowsServer"
	OsMacOs         = "macOS"
	OsIOS           = "iOS"
	OsLinux         = "Linux"

	PostureCheckTypeDomain  = "DOMAIN"
	PostureCheckTypeProcess = "PROCESS"
	PostureCheckTypeMAC     = "MAC"
	PostureCheckTypeOS      = "OS"
	PostureCheckTypeMFA     = "MFA"
)

Variables

View Source
var ExtraEdgeCommands []func(p common.OptionsProvider) *cobra.Command

Functions

func CreateEntityOfType

func CreateEntityOfType(entityType string, body string, options *api.Options) (*gabs.Container, error)

CreateEntityOfType create an entity of the given type on the Ziti Controller

func DetailEntityOfType

func DetailEntityOfType(entityType, entityId string, logJSON bool, out io.Writer, timeout int, verbose bool) (*gabs.Container, error)

func ListEntitiesOfType

func ListEntitiesOfType(entityType string, params url.Values, logJSON bool, out io.Writer, timeout int, verbose bool) ([]*gabs.Container, *api.Paging, error)

ListEntitiesOfType queries the Ziti Controller for entities of the given type

func ListEntitiesWithFilter

func ListEntitiesWithFilter(entityType string, filter string) ([]*gabs.Container, *api.Paging, error)

func NewCmdEdge

func NewCmdEdge(out io.Writer, errOut io.Writer, p common.OptionsProvider) *cobra.Command

NewCmdEdge creates a command object for the "controller" command

func NewCreateEdgeRouterCmd added in v0.30.4

func NewCreateEdgeRouterCmd(out io.Writer, errOut io.Writer) *cobra.Command

func NewCreateEdgeRouterPolicyCmd added in v0.30.5

func NewCreateEdgeRouterPolicyCmd(out io.Writer, errOut io.Writer) *cobra.Command

NewCreateEdgeRouterPolicyCmd creates the 'edge controller create edge-router-policy' command

func NewCreateServiceEdgeRouterPolicyCmd added in v0.30.5

func NewCreateServiceEdgeRouterPolicyCmd(out io.Writer, errOut io.Writer) *cobra.Command

NewCreateServiceEdgeRouterPolicyCmd creates the 'edge controller create service-edge-router-policy' command

func NewLoginCmd added in v0.30.4

func NewLoginCmd(out io.Writer, errOut io.Writer) *cobra.Command

NewLoginCmd creates the command

func NewQuickStartCmd added in v0.30.4

func NewQuickStartCmd(out io.Writer, errOut io.Writer, context context.Context) *cobra.Command

NewQuickStartCmd creates a command object for the "create" command

func NewValidateServiceHostingCmd added in v0.33.0

func NewValidateServiceHostingCmd(p common.OptionsProvider) *cobra.Command

func Ptr added in v0.27.6

func Ptr[T any](sub T) *T

func WrapHardEllipses

func WrapHardEllipses(str string, wrapLen int) string

Types

type LoginOptions added in v0.28.0

type LoginOptions struct {
	api.Options
	Username     string
	Password     string
	Token        string
	CaCert       string
	ReadOnly     bool
	Yes          bool
	IgnoreConfig bool
	ClientCert   string
	ClientKey    string
	ExtJwt       string
}

LoginOptions are the flags for login commands

func (*LoginOptions) ConfigureCerts added in v0.28.0

func (o *LoginOptions) ConfigureCerts(host string, ctrlUrl *url.URL) error

func (*LoginOptions) Run added in v0.28.0

func (o *LoginOptions) Run() error

Run implements this command

type QuickstartOpts added in v0.30.4

type QuickstartOpts struct {
	Username           string
	Password           string
	AlreadyInitialized bool
	Home               string
	ControllerAddress  string
	ControllerPort     int16
	RouterAddress      string
	RouterPort         int16
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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