Documentation
¶
Index ¶
- func DownloadFile(token string, url string, filepath string) error
- func HttpClientDownloadFile(url, localPath string)
- func SshExec(address string, username string, keyfile string, certfile string, cmd string)
- func WriteZitiControllerConfig(filename string, cfg ZitiControllerConfig) error
- func WriteZitiRouterConfig(filename string, cfg ZitiRouterConfig) error
- func ZitiAuthenticate(url, user, pass string) (string, error)
- func ZitiClient(id string) *http.Client
- func ZitiCreateEdgeRouterPolicy(url, token, name string, routers, services, roles []string) error
- func ZitiCreateService(url, token, name, hostV1, interceptV1 string) (string, error)
- func ZitiCreateServiceConfig(url, token, name, configType string, config map[string]interface{}) (string, error)
- func ZitiCreateServicePolicy(url, token, name, policyType, serviceID, identity string) (string, error)
- func ZitiGenerateCtrlConfig(outFile string)
- func ZitiGenerateRouterConfig(outFile string)
- func ZitiGetConfigTypes(url, token, name string) (string, error)
- func ZitiGetIdentity(urlSrc, token, name string) (string, error)
- func ZitiIdentities(urlSrc, token string)
- func ZitiServicePolicies(url, token string)
- type WriteCounter
- type ZitiAPIBinding
- type ZitiBindPoint
- type ZitiCSR
- type ZitiControllerConfig
- type ZitiCtrlEndpoint
- type ZitiCtrlListener
- type ZitiDialer
- type ZitiEdgeCSR
- type ZitiEdgeEnroll
- type ZitiEnrollment
- type ZitiIdentity
- type ZitiLinkConfig
- type ZitiLinkListener
- type ZitiListener
- type ZitiResult
- type ZitiRouterConfig
- type ZitiSANs
- type ZitiServiceConfig
- type ZitiServiceConfigsResult
- type ZitiSigningCert
- type ZitiToken
- type ZitiWebListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpClientDownloadFile ¶
func HttpClientDownloadFile(url, localPath string)
func WriteZitiControllerConfig ¶
func WriteZitiControllerConfig(filename string, cfg ZitiControllerConfig) error
func WriteZitiRouterConfig ¶
func WriteZitiRouterConfig(filename string, cfg ZitiRouterConfig) error
func ZitiAuthenticate ¶
func ZitiClient ¶
func ZitiCreateService ¶
func ZitiCreateServiceConfig ¶
func ZitiCreateServicePolicy ¶
func ZitiGenerateCtrlConfig ¶
func ZitiGenerateCtrlConfig(outFile string)
func ZitiGenerateRouterConfig ¶
func ZitiGenerateRouterConfig(outFile string)
func ZitiGetConfigTypes ¶
func ZitiGetIdentity ¶
func ZitiIdentities ¶
func ZitiIdentities(urlSrc, token string)
func ZitiServicePolicies ¶
func ZitiServicePolicies(url, token string)
Types ¶
type WriteCounter ¶
type WriteCounter struct {
Total uint64
}
func (WriteCounter) PrintProgress ¶
func (wc WriteCounter) PrintProgress()
type ZitiAPIBinding ¶
type ZitiAPIBinding struct {
Binding string `yaml:"binding"`
}
type ZitiBindPoint ¶
type ZitiControllerConfig ¶
type ZitiControllerConfig struct { Version int `yaml:"v"` DB string `yaml:"db"` Identity ZitiIdentity `yaml:"identity"` Ctrl ZitiCtrlListener `yaml:"ctrl"` Edge ZitiEdgeEnroll `yaml:"edge"` Web []ZitiWebListener `yaml:"web"` }
type ZitiCtrlEndpoint ¶
type ZitiCtrlEndpoint struct {
Endpoint string `yaml:"endpoint"`
}
type ZitiCtrlListener ¶
type ZitiCtrlListener struct {
Listener string `yaml:"listener"`
}
type ZitiDialer ¶
type ZitiDialer struct {
Binding string `yaml:"binding"`
}
type ZitiEdgeCSR ¶
type ZitiEdgeCSR struct {
CSR ZitiCSR `yaml:"csr"`
}
type ZitiEdgeEnroll ¶
type ZitiEdgeEnroll struct {
Enrollment ZitiEnrollment `yaml:"enrollment"`
}
type ZitiEnrollment ¶
type ZitiEnrollment struct {
SigningCert ZitiSigningCert `yaml:"signingCert"`
}
type ZitiIdentity ¶
type ZitiLinkConfig ¶
type ZitiLinkConfig struct { Listeners []ZitiLinkListener `yaml:"listeners"` Dialers []ZitiDialer `yaml:"dialers"` }
type ZitiLinkListener ¶
type ZitiListener ¶
type ZitiResult ¶
type ZitiResult struct {
Data ZitiToken `json:"data"`
}
type ZitiRouterConfig ¶
type ZitiRouterConfig struct { Version int `yaml:"v"` Identity ZitiIdentity `yaml:"identity"` Ctrl ZitiCtrlEndpoint `yaml:"ctrl"` Dialers []ZitiDialer `yaml:"dialers"` Edge ZitiEdgeCSR `yaml:"edge"` Link ZitiLinkConfig `yaml:"link"` Listeners []ZitiListener `yaml:"listeners"` }
type ZitiServiceConfig ¶
type ZitiServiceConfigsResult ¶
type ZitiServiceConfigsResult struct {
Data []ZitiServiceConfig `json:"data"`
}
type ZitiSigningCert ¶
type ZitiWebListener ¶
type ZitiWebListener struct { Name string `yaml:"name"` BindPoints []ZitiBindPoint `yaml:"bindPoints"` APIs []ZitiAPIBinding `yaml:"apis"` }
Click to show internal directories.
Click to hide internal directories.