Documentation ¶
Overview ¶
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright © 2021 Tom Straub <tstraub@hashicorp.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright © 2021 Tom Straub <github.com/straubt1>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright © 2021 Tom Straub <github.com/straubt1>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
- func DownloadBinary(downloadURL string, path string) error
- func DownloadModule(token string, tfeHostname string, orgName string, moduleName string, ...) (string, error)
- func DownloadTextFile(downloadURL string) (string, error)
- func Execute()
- func FormatDateTime(t time.Time) string
- func UploadBinary(uploadURL string, path string) error
- type GPGList
- type MetricsAll
- type MetricsWorkspace
- type MetricsWorkspaceResult
- type MetricsWorkspaces
- type StateFile
- type TFEBinaries
- type TFERelease
- type TfeReleaseUrl
- type TfxClientContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadBinary ¶
func DownloadModule ¶
func DownloadTextFile ¶
func Execute ¶
func Execute()
Execute 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.
func UploadBinary ¶
Types ¶
type GPGList ¶
type GPGList struct { Meta struct { Pagination struct { PageSize int `json:"page-size"` CurrentPage int `json:"current-page"` NextPage interface{} `json:"next-page"` PrevPage interface{} `json:"prev-page"` TotalPages int `json:"total-pages"` TotalCount int `json:"total-count"` } `json:"pagination"` } `json:"meta"` Keys []struct { Type string `json:"type"` ID string `json:"id"` Attributes struct { ASCIIArmor string `json:"ascii-armor"` CreatedAt time.Time `json:"created-at"` KeyID string `json:"key-id"` Namespace string `json:"namespace"` Source string `json:"source"` SourceURL interface{} `json:"source-url"` TrustSignature string `json:"trust-signature"` UpdatedAt time.Time `json:"updated-at"` } `json:"attributes"` Links struct { Self string `json:"self"` } `json:"links"` } `json:"data"` }
func ListGPGKeys ¶
func ListGPGKeys(c TfxClientContext) (*GPGList, error)
type MetricsAll ¶
type MetricsAll struct { OrganizationCount int `json:"OrganizationCount"` Organizations []string `json:"Organizations"` WorkspaceCount int `json:"WorkspaceCount"` Workspaces []string `json:"Workspaces"` RunCount int `json:"RunCount"` RunErroredCount int `json:"RunErroredCount"` RunDiscardedCount int `json:"RunDiscardedCount"` RunCancelledCount int `json:"RunCancelledCount"` PolicyCheckCount int `json:"PolicyCheckCount"` PoliciesPassCount int `json:"PoliciesPassCount"` PoliciesFailCount int `json:"PoliciesFailCount"` QueryTime string `json:"QueryTime"` }
type MetricsWorkspace ¶
type MetricsWorkspace struct { Name string `json:"Name"` ID string `json:"ID"` RunCount int `json:"RunCount"` RunErroredCount int `json:"RunErroredCount"` RunDiscardedCount int `json:"RunDiscardedCount"` RunCancelledCount int `json:"RunCancelledCount"` PolicyCheckCount int `json:"PolicyCheckCount"` PoliciesPassCount int `json:"PoliciesPassCount"` PoliciesFailCount int `json:"PoliciesFailCount"` }
type MetricsWorkspaceResult ¶
type MetricsWorkspaceResult struct { Workspaces []MetricsWorkspace Since time.Time QueryTime string `json:"QueryTime"` }
type MetricsWorkspaces ¶
type MetricsWorkspaces struct { WorkspaceCount int `json:"WorkspaceCount"` Workspaces []string `json:"Workspaces"` RunCount int `json:"RunCount"` RunErroredCount int `json:"RunErroredCount"` RunDiscardedCount int `json:"RunDiscardedCount"` RunCancelledCount int `json:"RunCancelledCount"` PolicyCheckCount int `json:"PolicyCheckCount"` PoliciesPassCount int `json:"PoliciesPassCount"` PoliciesFailCount int `json:"PoliciesFailCount"` }
type TFEBinaries ¶
type TFEBinaries struct {
Releases []TFERelease
}
func ListTFEBinaries ¶
func ListTFEBinaries(password string, licenseId string) (*TFEBinaries, error)
type TFERelease ¶
type TFERelease struct { ReleaseSequence int `json:"release_sequence"` PatchReleaseSequence int `json:"patch_release_sequence"` ReleaseDate time.Time `json:"release_date"` Required bool `json:"required"` Label string `json:"label"` ReleaseNotes string `json:"release_notes"` DownloadLink string `json:"download_link"` BuildStatus string `json:"build_status"` LastUpdateTime time.Time `json:"last_update_time"` Checksum string `json:"checksum"` ImagelessChecksum string `json:"imageless_checksum"` }
type TfeReleaseUrl ¶
func GetTFEBinary ¶
func GetTFEBinary(password string, licenseId string, releaseSequence int) (*TfeReleaseUrl, error)
Source Files ¶
- admin.go
- admin_gpg.go
- admin_metrics.go
- admin_terraformversion.go
- apply.go
- helper.go
- helper_context.go
- helper_file.go
- helper_logs.go
- helper_rest.go
- helper_time.go
- helper_viper.go
- plan.go
- registry.go
- registry_module.go
- registry_module_version.go
- registry_provider.go
- registry_provider_version.go
- registry_provider_version_platform.go
- release.go
- release_replicated.go
- release_tfe.go
- root.go
- workspace.go
- workspace_configurationversion.go
- workspace_lock.go
- workspace_run.go
- workspace_stateversion.go
- workspace_team.go
- workspace_variable.go