config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth0

type Auth0 struct {
	Domain       string `json:"domain"`        // Auth0 domain
	ClientID     string `json:"client_id"`     // Auth0 client ID
	ClientSecret string `json:"client_secret"` // Auth0 client secret
	Connection   string `json:"connection"`    // Auth0 connection name
	UserPID      string `json:"user_pid"`      // Auth0 user ID of user to export
	UserEmail    string `json:"user_email"`    // Auth0 email name of user to export
	InclRoles    bool   `json:"incl_roles"`    // Auth0 include roles in export
}

type Config

type Config struct {
	Gateway   *Gateway   `json:"gateway"`   // gateway settings
	Directory *Directory `json:"directory"` // target directory settings
	Auth0     *Auth0     `json:"auth0"`     // source auth0 settings
	Loader    *Loader    `json:"loader"`    // ds-load* settings
	Scheduler *Scheduler `json:"scheduler"` // scheduler settings
}

func Load

func Load(file string) (*Config, error)

type Directory

type Directory struct {
	Host     string `json:"host"`      // directory gRPC host address
	APIKey   string `json:"api_key"`   // directory read-write API key
	TenantID string `json:"tenant_id"` // directory tenant ID
	Insecure bool   `json:"insecure"`  // skip TLS validation
}

type Gateway

type Gateway struct {
	Port int    `json:"port"` // gateway listen port
	Path string `json:"path"` // gateway URL path
}

type Loader

type Loader struct {
	BinPath  string `json:"bin_path"` // ds-load absolute path to binaries (ds-load & ds-load-auth0)
	Template string `json:"template"` // ds-load absolute path to template file
}

type Scheduler

type Scheduler struct {
	Interval string `json:"interval"` // time interval string as 5m30s for 5 min and 30 seconds, minimum interval is 1m.
}

Jump to

Keyboard shortcuts

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