Documentation ¶
Overview ¶
DigitalRebar Provision CLI provides the core parts of the CLI. This CLI uses an access core based upon a set of generated files from the generated swagger.json file.
Copyright © 2020 RackN <support@rackn.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func AddDirToZip(zipWriter *zip.Writer, dirname string) error
- func AddFileToZip(zipWriter *zip.Writer, filename string) error
- func NewApp() *cobra.Command
- func NewBasicKeyRequest() *basicKeyReq
- func PatchWithFunction(key string, op *ops, fn func(models.Model) (models.Model, bool)) error
- func PatchWithString(key, js string, op *ops) error
- func ResetDefaults()
- type CloudiaUrlReq
- type CloudiaUrlResp
- type DocData
Constants ¶
This section is empty.
Variables ¶
var ( // ActuallyPowerThings is a boolean to use in testing to keep from power off the test machine ActuallyPowerThings = true // DefaultStateLoc is the default location to save agent state DefaultStateLoc string )
var ( // Session is the global client access session Session *api.Client )
Functions ¶
func AddDirToZip ¶ added in v4.5.0
given a top level dir this will walk it adding files and folders. to the archive
func AddFileToZip ¶ added in v4.5.0
adds an individual file to the archive
func NewBasicKeyRequest ¶
func NewBasicKeyRequest() *basicKeyReq
NewBasicKeyRequest returns a default BasicKeyRequest.
func PatchWithFunction ¶
The input function takes the object and returns the modified object and if the object changed.
func PatchWithString ¶
func ResetDefaults ¶ added in v4.6.0
func ResetDefaults()
Types ¶
type CloudiaUrlReq ¶ added in v4.5.0
type CloudiaUrlResp ¶ added in v4.5.0
type CloudiaUrlResp struct { Object CloudiaUrlReq `json:"object"` Url string `json:"url"` }
Source Files ¶
- actionHelper.go
- agent.go
- appleNBI.go
- bootenv.go
- bootenvHelper.go
- catalog.go
- catalog_items.go
- certs.go
- commandHelper.go
- common.go
- contents.go
- contexts.go
- debug.go
- doc.go
- endpoints.go
- events.go
- extended.go
- files.go
- gohai_linux.go
- info.go
- inspect.go
- interfaces.go
- isos.go
- jobs.go
- lease.go
- logs.go
- machines.go
- metaHelper.go
- netwrangle.go
- new_common.go
- objects.go
- paramHelper.go
- params.go
- plugin_providers.go
- plugins.go
- pools.go
- prefs.go
- process_jobs.go
- profileHelper.go
- profiles.go
- reservation.go
- roles.go
- stages.go
- startup.go
- subnet.go
- support.go
- system.go
- taskHelper.go
- tasks.go
- template.go
- tenant.go
- user.go
- utils.go
- version_sets.go
- workflows.go