package
0.0.0-20240523012138-b9cffea42484
Repository: https://github.com/api7/cloud-cli.git
Documentation: pkg.go.dev
# Functions
CheckConfigurationAndInitCloudClient checks if cloud-cli configured the server address and token correctly.
DownloadNewCertificate downloads the new TLS bundle for communicating with API7 Cloud.
Init initializes the persistence context.
LoadConfiguration from file.
PrepareCertificate downloads the client certificate and key from API7 Cloud.
SaveCloudLuaModule downloads the cloud lua module and unzip and untar it, finally it'll be saved to the filesystem and the directory will be returned.
SaveConfiguration to file for persistence.
# Variables
APISIXConfigDir is the directory to store APISIX configuration file.
HomeDir is the home directory of the api7 cloud.
TLSDir is the directory to store TLS certificates.
# Structs
CloudConfiguration is the configuration for the cloud cli.
Profile represents a configuration profile.
User is credential for authentication.