tower

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InventoryResourceName         = "Ansible tower inventory"
	OrganisationResourceName      = "Ansible tower Organisation"
	InventorySourceResourceName   = "Ansible tower inventory source"
	InventoryScriptResourceName   = "Ansible tower inventory script"
	CredentialSCMResourceName     = "Ansible tower credential scm"
	CredentialMachineResourceName = "Ansible tower credential machine"
	CredentialTypeResourceName    = "Ansible tower credential Type"
)
View Source
const (
	InfoColor    = "\033[1;34m[Info] : %s\033[0m"
	NoticeColor  = "\033[1;36m[Notice] : %s\033[0m"
	WarningColor = "\033[1;33m[Warn] : %s\033[0m"
	ErrorColor   = "\033[1;31m[Error] : %s\033[0m"
	DebugColor   = "\033[0;36m[Debug] : %s\033[0m"
)

Variables

This section is empty.

Functions

func CreateInventoryVariables

func CreateInventoryVariables(variables []Variable) string

func DiagCreateFail

func DiagCreateFail(resource string, details string) diag.Diagnostics

func DiagDeleteFail

func DiagDeleteFail(resource, details string) diag.Diagnostics

func DiagNotFoundFail

func DiagNotFoundFail(resource string, id int, err error) diag.Diagnostics

func DiagUpdateFail

func DiagUpdateFail(resource string, id int, err error) diag.Diagnostics

func DiagnosticsMessage

func DiagnosticsMessage(summary string, details string) diag.Diagnostics

func DiagsError

func DiagsError(resource string, err error) diag.Diagnostics

func Provider

func Provider() *schema.Provider

func SprintDebug

func SprintDebug(message string) string

func SprintError

func SprintError(message string) string

func SprintInfo

func SprintInfo(message string) string

func SprintNotice

func SprintNotice(message string) string

func SprintWarning

func SprintWarning(message string) string

Types

type CredentialInput

type CredentialInput struct {
	Fields []Fields `json:"fields"`
}

func CreateCredentialInputs

func CreateCredentialInputs(f []Fields) CredentialInput

type Fields

type Fields struct {
	Id        string `json:"id"`
	Type      string `json:"type"`
	Label     string `json:"label"`
	Secret    bool   `json:"secret,omitempty"`
	Multiline bool   `json:"multiline,omitempty"`
	Help      string `json:"help_text,omitempty"`
	Format    string `json:"format,omitempty"`
}

type Variable

type Variable struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL