{"modulePath":"github.com/SovereignCloudStack/csctl-plugin-openstack","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cmd\n\nPackage cmd implements important functions for command.\n\n## Variables\n\n```go\nvar (\n\t// Version of csctl-openstack.\n\tVersion = \"dev\"\n\t// Commit against which csctl-openstack version is cut.\n\tCommit = \"unknown\"\n)\n```\n\n## Functions\n\n```go\nfunc Execute()\n```\nExecute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.\n\n## Types\n\n```go\ntype CreateOpts images.CreateOpts\n```\nCreateOpts represents options used to create an image.\n\n```go\ntype NodeImages struct {\n\tAPIVersion          string                `yaml:\"apiVersion\"`\n\tOpenStackNodeImages []*OpenStackNodeImage `yaml:\"openStackNodeImages\"`\n}\n```\nNodeImages represents the structure of the config.yaml file.\n\n```go\nfunc GetConfig(configPath string) (*NodeImages, error)\n```\nGetConfig returns Config.\n\n```go\ntype OpenStackNodeImage struct {\n\tURL        string      `json:\"url\" yaml:\"url\"`\n\tImageDir   string      `json:\"imageDir,omitempty\" yaml:\"imageDir,omitempty\"`\n\tCreateOpts *CreateOpts `json:\"createOpts\" yaml:\"createOpts\"`\n}\n```\nOpenStackNodeImage represents the structure of the OpenStackNodeImage.\n\n```go\ntype RegistryConfig struct {\n\tType   string `yaml:\"type\"`\n\tConfig struct {\n\t\tEndpoint  string `yaml:\"endpoint\"`\n\t\tBucket    string `yaml:\"bucket\"`\n\t\tAccessKey string `yaml:\"accessKey\"`\n\t\tSecretKey string `yaml:\"secretKey\"`\n\t\tVerify    *bool  `yaml:\"verify,omitempty\"`\n\t\tCacert    string `yaml:\"cacert,omitempty\"`\n\t\tProjectID string `yaml:\"projectID,omitempty\"` //nolint:tagliatelle // using 'projectID' instead of 'projectId'\n\t} `yaml:\"config\"`\n}\n```\nRegistryConfig represents the structure of the registry.yaml file.\n\n","path":"github.com/SovereignCloudStack/csctl-plugin-openstack/pkg/cmd","name":"cmd","synopsis":"Package cmd implements important functions for command.","isRedistributable":true}
