Documentation
¶
Overview ¶
Autogenerated
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated ¶
Autogenerated
Index ¶
- func GetSpec() (*types.Spec, error)
- type Apt
- type AptKey
- type AptKeyParams
- type AptKeyResult
- type AptParams
- type AptRepository
- type AptRepositoryParams
- type AptRepositoryResult
- type AptResult
- type Assemble
- type AssembleParams
- type AssembleResult
- type AsyncStatus
- type AsyncStatusParams
- type AsyncStatusResult
- type Blockinfile
- type BlockinfileParams
- type BlockinfileResult
- type Command
- type CommandParams
- type CommandResult
- type Copy
- type CopyParams
- type CopyResult
- type Cron
- type CronParams
- type CronResult
- type Debconf
- type DebconfParams
- type DebconfResult
- type Dnf
- type DnfParams
- type DnfResult
- type DpkgSelections
- type DpkgSelectionsParams
- type DpkgSelectionsResult
- type Expect
- type ExpectParams
- type ExpectResult
- type File
- type FileParams
- type FileResult
- type Find
- type FindParams
- type FindResult
- type GetUrl
- type GetUrlParams
- type GetUrlResult
- type Getent
- type GetentParams
- type GetentResult
- type Git
- type GitParams
- type GitResult
- type Group
- type GroupBy
- type GroupByParams
- type GroupByResult
- type GroupParams
- type GroupResult
- type Hostname
- type HostnameParams
- type HostnameResult
- type Iptables
- type IptablesParams
- type IptablesResult
- type KnownHosts
- type KnownHostsParams
- type KnownHostsResult
- type Lineinfile
- type LineinfileParams
- type LineinfileResult
- type Meta
- type MetaParams
- type MetaResult
- type Module
- type Package
- type PackageFacts
- type PackageFactsParams
- type PackageFactsResult
- type PackageParams
- type PackageResult
- type Pause
- type PauseParams
- type PauseResult
- type Ping
- type PingParams
- type PingResult
- type Pip
- type PipParams
- type PipResult
- type Reboot
- type RebootParams
- type RebootResult
- type Replace
- type ReplaceParams
- type ReplaceResult
- type RpmKey
- type RpmKeyParams
- type RpmKeyResult
- type Service
- type ServiceFacts
- type ServiceFactsParams
- type ServiceFactsResult
- type ServiceParams
- type ServiceResult
- type Setup
- type SetupParams
- type SetupResult
- type Slurp
- type SlurpParams
- type SlurpResult
- type Stat
- type StatParams
- type StatResult
- type Subversion
- type SubversionParams
- type SubversionResult
- type Systemd
- type SystemdParams
- type SystemdResult
- type Sysvinit
- type SysvinitParams
- type SysvinitResult
- type Tempfile
- type TempfileParams
- type TempfileResult
- type Template
- type TemplateParams
- type TemplateResult
- type Unarchive
- type UnarchiveParams
- type UnarchiveResult
- type Uri
- type UriParams
- type UriResult
- type User
- type UserParams
- type UserResult
- type WaitFor
- type WaitForParams
- type WaitForResult
- type Yum
- type YumParams
- type YumRepository
- type YumRepositoryParams
- type YumRepositoryResult
- type YumResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Apt ¶
func (*Apt) GetResultRaw ¶
type AptKey ¶
type AptKey struct {
ModuleName string
Params AptKeyParams
Result AptKeyResult
}
func (*AptKey) GetResultRaw ¶
type AptKeyParams ¶
type AptKeyParams struct {
// Data
Data string `yaml:"data,omitempty" json:"data,omitempty"`
// File
File string `yaml:"file,omitempty" json:"file,omitempty"`
// Id
Id string `yaml:"id,omitempty" json:"id,omitempty"`
// Keyring
Keyring string `yaml:"keyring,omitempty" json:"keyring,omitempty"`
// Keyserver
Keyserver string `yaml:"keyserver,omitempty" json:"keyserver,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// Url
Url string `yaml:"url,omitempty" json:"url,omitempty"`
// ValidateCerts
ValidateCerts bool `yaml:"validate_certs,omitempty" json:"validate_certs,omitempty"`
}
type AptKeyResult ¶
type AptKeyResult struct {
Raw string
// After
After []map[string]interface{} `yaml:"after,omitempty" json:"after,omitempty"`
// Before
Before []map[string]interface{} `yaml:"before,omitempty" json:"before,omitempty"`
// Fp
Fp string `yaml:"fp,omitempty" json:"fp,omitempty"`
// Id
Id string `yaml:"id,omitempty" json:"id,omitempty"`
// KeyId
KeyId string `yaml:"key_id,omitempty" json:"key_id,omitempty"`
// ShortId
ShortId string `yaml:"short_id,omitempty" json:"short_id,omitempty"`
}
type AptParams ¶
type AptParams struct {
// AllowChangeHeldPackages
AllowChangeHeldPackages bool `yaml:"allow_change_held_packages,omitempty" json:"allow_change_held_packages,omitempty"`
// AllowDowngrade
AllowDowngrade bool `yaml:"allow_downgrade,omitempty" json:"allow_downgrade,omitempty"`
// AllowUnauthenticated
AllowUnauthenticated bool `yaml:"allow_unauthenticated,omitempty" json:"allow_unauthenticated,omitempty"`
// Autoclean
Autoclean bool `yaml:"autoclean,omitempty" json:"autoclean,omitempty"`
// Autoremove
Autoremove bool `yaml:"autoremove,omitempty" json:"autoremove,omitempty"`
// CacheValidTime
CacheValidTime int `yaml:"cache_valid_time,omitempty" json:"cache_valid_time,omitempty"`
// Clean
Clean bool `yaml:"clean,omitempty" json:"clean,omitempty"`
// Deb
Deb string `yaml:"deb,omitempty" json:"deb,omitempty"`
// DefaultRelease
DefaultRelease string `yaml:"default_release,omitempty" json:"default_release,omitempty"`
// DpkgOptions
DpkgOptions string `yaml:"dpkg_options,omitempty" json:"dpkg_options,omitempty"`
// FailOnAutoremove
FailOnAutoremove bool `yaml:"fail_on_autoremove,omitempty" json:"fail_on_autoremove,omitempty"`
// Force
Force bool `yaml:"force,omitempty" json:"force,omitempty"`
// ForceAptGet
ForceAptGet bool `yaml:"force_apt_get,omitempty" json:"force_apt_get,omitempty"`
// InstallRecommends
InstallRecommends bool `yaml:"install_recommends,omitempty" json:"install_recommends,omitempty"`
// LockTimeout
LockTimeout int `yaml:"lock_timeout,omitempty" json:"lock_timeout,omitempty"`
// Name
Name []string `yaml:"name,omitempty" json:"name,omitempty"`
// OnlyUpgrade
OnlyUpgrade bool `yaml:"only_upgrade,omitempty" json:"only_upgrade,omitempty"`
// PolicyRcD
PolicyRcD int `yaml:"policy_rc_d,omitempty" json:"policy_rc_d,omitempty"`
// Purge
Purge bool `yaml:"purge,omitempty" json:"purge,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// UpdateCache
UpdateCache bool `yaml:"update_cache,omitempty" json:"update_cache,omitempty"`
// UpdateCacheRetries
UpdateCacheRetries int `yaml:"update_cache_retries,omitempty" json:"update_cache_retries,omitempty"`
// UpdateCacheRetryMaxDelay
UpdateCacheRetryMaxDelay int `yaml:"update_cache_retry_max_delay,omitempty" json:"update_cache_retry_max_delay,omitempty"`
// Upgrade
Upgrade string `yaml:"upgrade,omitempty" json:"upgrade,omitempty"`
}
type AptRepository ¶
type AptRepository struct {
ModuleName string
Params AptRepositoryParams
Result AptRepositoryResult
}
func NewAptRepository ¶
func NewAptRepository() *AptRepository
func (*AptRepository) GetParams ¶
func (m *AptRepository) GetParams() interface{}
func (*AptRepository) GetResult ¶
func (m *AptRepository) GetResult() interface{}
func (*AptRepository) GetResultRaw ¶
func (m *AptRepository) GetResultRaw() string
func (*AptRepository) GetType ¶
func (m *AptRepository) GetType() string
func (*AptRepository) Run ¶
func (m *AptRepository) Run() error
type AptRepositoryParams ¶
type AptRepositoryParams struct {
// Codename
Codename string `yaml:"codename,omitempty" json:"codename,omitempty"`
// Filename
Filename string `yaml:"filename,omitempty" json:"filename,omitempty"`
// InstallPythonApt
InstallPythonApt bool `yaml:"install_python_apt,omitempty" json:"install_python_apt,omitempty"`
// Mode
Mode string `yaml:"mode,omitempty" json:"mode,omitempty"`
// Repo
Repo string `yaml:"repo,omitempty" json:"repo,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// UpdateCache
UpdateCache bool `yaml:"update_cache,omitempty" json:"update_cache,omitempty"`
// UpdateCacheRetries
UpdateCacheRetries int `yaml:"update_cache_retries,omitempty" json:"update_cache_retries,omitempty"`
// UpdateCacheRetryMaxDelay
UpdateCacheRetryMaxDelay int `yaml:"update_cache_retry_max_delay,omitempty" json:"update_cache_retry_max_delay,omitempty"`
// ValidateCerts
ValidateCerts bool `yaml:"validate_certs,omitempty" json:"validate_certs,omitempty"`
}
type AptRepositoryResult ¶
type AptRepositoryResult struct {
Raw string
}
type AptResult ¶
type AptResult struct {
Raw string
// CacheUpdateTime
CacheUpdateTime int `yaml:"cache_update_time,omitempty" json:"cache_update_time,omitempty"`
// CacheUpdated
CacheUpdated bool `yaml:"cache_updated,omitempty" json:"cache_updated,omitempty"`
// Stderr
Stderr string `yaml:"stderr,omitempty" json:"stderr,omitempty"`
// Stdout
Stdout string `yaml:"stdout,omitempty" json:"stdout,omitempty"`
}
type Assemble ¶
type Assemble struct {
ModuleName string
Params AssembleParams
Result AssembleResult
}
func NewAssemble ¶
func NewAssemble() *Assemble
func (*Assemble) GetResultRaw ¶
type AssembleParams ¶
type AssembleParams struct {
// Backup
Backup bool `yaml:"backup,omitempty" json:"backup,omitempty"`
// Delimiter
Delimiter string `yaml:"delimiter,omitempty" json:"delimiter,omitempty"`
// Dest
Dest string `yaml:"dest,omitempty" json:"dest,omitempty"`
// IgnoreHidden
IgnoreHidden bool `yaml:"ignore_hidden,omitempty" json:"ignore_hidden,omitempty"`
// Regexp
Regexp string `yaml:"regexp,omitempty" json:"regexp,omitempty"`
// RemoteSrc
RemoteSrc bool `yaml:"remote_src,omitempty" json:"remote_src,omitempty"`
// Src
Src string `yaml:"src,omitempty" json:"src,omitempty"`
// Validate
Validate string `yaml:"validate,omitempty" json:"validate,omitempty"`
}
type AssembleResult ¶
type AssembleResult struct {
Raw string
}
type AsyncStatus ¶
type AsyncStatus struct {
ModuleName string
Params AsyncStatusParams
Result AsyncStatusResult
}
func NewAsyncStatus ¶
func NewAsyncStatus() *AsyncStatus
func (*AsyncStatus) GetParams ¶
func (m *AsyncStatus) GetParams() interface{}
func (*AsyncStatus) GetResult ¶
func (m *AsyncStatus) GetResult() interface{}
func (*AsyncStatus) GetResultRaw ¶
func (m *AsyncStatus) GetResultRaw() string
func (*AsyncStatus) GetType ¶
func (m *AsyncStatus) GetType() string
func (*AsyncStatus) Run ¶
func (m *AsyncStatus) Run() error
type AsyncStatusParams ¶
type AsyncStatusResult ¶
type AsyncStatusResult struct {
Raw string
// AnsibleJobId
AnsibleJobId string `yaml:"ansible_job_id,omitempty" json:"ansible_job_id,omitempty"`
// Erased
Erased string `yaml:"erased,omitempty" json:"erased,omitempty"`
// Finished
Finished int `yaml:"finished,omitempty" json:"finished,omitempty"`
// Started
Started int `yaml:"started,omitempty" json:"started,omitempty"`
// Stderr
Stderr string `yaml:"stderr,omitempty" json:"stderr,omitempty"`
// Stdout
Stdout string `yaml:"stdout,omitempty" json:"stdout,omitempty"`
}
type Blockinfile ¶
type Blockinfile struct {
ModuleName string
Params BlockinfileParams
Result BlockinfileResult
}
func NewBlockinfile ¶
func NewBlockinfile() *Blockinfile
func (*Blockinfile) GetParams ¶
func (m *Blockinfile) GetParams() interface{}
func (*Blockinfile) GetResult ¶
func (m *Blockinfile) GetResult() interface{}
func (*Blockinfile) GetResultRaw ¶
func (m *Blockinfile) GetResultRaw() string
func (*Blockinfile) GetType ¶
func (m *Blockinfile) GetType() string
func (*Blockinfile) Run ¶
func (m *Blockinfile) Run() error
type BlockinfileParams ¶
type BlockinfileParams struct {
// Backup
Backup bool `yaml:"backup,omitempty" json:"backup,omitempty"`
// Block
Block string `yaml:"block,omitempty" json:"block,omitempty"`
// Create
Create bool `yaml:"create,omitempty" json:"create,omitempty"`
// Insertafter
Insertafter string `yaml:"insertafter,omitempty" json:"insertafter,omitempty"`
// Insertbefore
Insertbefore string `yaml:"insertbefore,omitempty" json:"insertbefore,omitempty"`
// Marker
Marker string `yaml:"marker,omitempty" json:"marker,omitempty"`
// MarkerBegin
MarkerBegin string `yaml:"marker_begin,omitempty" json:"marker_begin,omitempty"`
// MarkerEnd
MarkerEnd string `yaml:"marker_end,omitempty" json:"marker_end,omitempty"`
// Path
Path string `yaml:"path,omitempty" json:"path,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
}
type BlockinfileResult ¶
type BlockinfileResult struct {
Raw string
}
type Command ¶
type Command struct {
ModuleName string
Params CommandParams
Result CommandResult
}
func NewCommand ¶
func NewCommand() *Command
func (*Command) GetResultRaw ¶
type CommandParams ¶
type CommandParams struct {
// Argv
Argv []string `yaml:"argv,omitempty" json:"argv,omitempty"`
// Chdir
Chdir string `yaml:"chdir,omitempty" json:"chdir,omitempty"`
// Cmd
Cmd string `yaml:"cmd,omitempty" json:"cmd,omitempty"`
// Creates
Creates string `yaml:"creates,omitempty" json:"creates,omitempty"`
// FreeForm
FreeForm string `yaml:"free_form,omitempty" json:"free_form,omitempty"`
// Removes
Removes string `yaml:"removes,omitempty" json:"removes,omitempty"`
// Stdin
Stdin string `yaml:"stdin,omitempty" json:"stdin,omitempty"`
// StdinAddNewline
StdinAddNewline bool `yaml:"stdin_add_newline,omitempty" json:"stdin_add_newline,omitempty"`
// StripEmptyEnds
StripEmptyEnds bool `yaml:"strip_empty_ends,omitempty" json:"strip_empty_ends,omitempty"`
// Warn
Warn bool `yaml:"warn,omitempty" json:"warn,omitempty"`
}
type CommandResult ¶
type CommandResult struct {
Raw string
// Cmd
Cmd []map[string]interface{} `yaml:"cmd,omitempty" json:"cmd,omitempty"`
// Delta
Delta string `yaml:"delta,omitempty" json:"delta,omitempty"`
// End
End string `yaml:"end,omitempty" json:"end,omitempty"`
// Msg
Msg bool `yaml:"msg,omitempty" json:"msg,omitempty"`
// Rc
Rc int `yaml:"rc,omitempty" json:"rc,omitempty"`
// Start
Start string `yaml:"start,omitempty" json:"start,omitempty"`
// Stderr
Stderr string `yaml:"stderr,omitempty" json:"stderr,omitempty"`
// StderrLines
StderrLines []map[string]interface{} `yaml:"stderr_lines,omitempty" json:"stderr_lines,omitempty"`
// Stdout
Stdout string `yaml:"stdout,omitempty" json:"stdout,omitempty"`
// StdoutLines
StdoutLines []map[string]interface{} `yaml:"stdout_lines,omitempty" json:"stdout_lines,omitempty"`
}
type Copy ¶
type Copy struct {
ModuleName string
Params CopyParams
Result CopyResult
}
func (*Copy) GetResultRaw ¶
type CopyParams ¶
type CopyParams struct {
// Backup
Backup bool `yaml:"backup,omitempty" json:"backup,omitempty"`
// Checksum
Checksum string `yaml:"checksum,omitempty" json:"checksum,omitempty"`
// Content
Content string `yaml:"content,omitempty" json:"content,omitempty"`
// Dest
Dest string `yaml:"dest,omitempty" json:"dest,omitempty"`
// DirectoryMode
DirectoryMode string `yaml:"directory_mode,omitempty" json:"directory_mode,omitempty"`
// Follow
Follow bool `yaml:"follow,omitempty" json:"follow,omitempty"`
// Force
Force bool `yaml:"force,omitempty" json:"force,omitempty"`
// LocalFollow
LocalFollow bool `yaml:"local_follow,omitempty" json:"local_follow,omitempty"`
// Mode
Mode string `yaml:"mode,omitempty" json:"mode,omitempty"`
// RemoteSrc
RemoteSrc bool `yaml:"remote_src,omitempty" json:"remote_src,omitempty"`
// Src
Src string `yaml:"src,omitempty" json:"src,omitempty"`
}
type CopyResult ¶
type CopyResult struct {
Raw string
// BackupFile
BackupFile string `yaml:"backup_file,omitempty" json:"backup_file,omitempty"`
// Checksum
Checksum string `yaml:"checksum,omitempty" json:"checksum,omitempty"`
// Dest
Dest string `yaml:"dest,omitempty" json:"dest,omitempty"`
// Gid
Gid int `yaml:"gid,omitempty" json:"gid,omitempty"`
// Group
Group string `yaml:"group,omitempty" json:"group,omitempty"`
// Md5sum
Md5sum string `yaml:"md5sum,omitempty" json:"md5sum,omitempty"`
// Mode
Mode string `yaml:"mode,omitempty" json:"mode,omitempty"`
// Owner
Owner string `yaml:"owner,omitempty" json:"owner,omitempty"`
// Size
Size int `yaml:"size,omitempty" json:"size,omitempty"`
// Src
Src string `yaml:"src,omitempty" json:"src,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// Uid
Uid int `yaml:"uid,omitempty" json:"uid,omitempty"`
}
type Cron ¶
type Cron struct {
ModuleName string
Params CronParams
Result CronResult
}
func (*Cron) GetResultRaw ¶
type CronParams ¶
type CronParams struct {
// Backup
Backup bool `yaml:"backup,omitempty" json:"backup,omitempty"`
// CronFile
CronFile string `yaml:"cron_file,omitempty" json:"cron_file,omitempty"`
// Day
Day string `yaml:"day,omitempty" json:"day,omitempty"`
// Disabled
Disabled bool `yaml:"disabled,omitempty" json:"disabled,omitempty"`
// Env
Env bool `yaml:"env,omitempty" json:"env,omitempty"`
// Hour
Hour string `yaml:"hour,omitempty" json:"hour,omitempty"`
// Insertafter
Insertafter string `yaml:"insertafter,omitempty" json:"insertafter,omitempty"`
// Insertbefore
Insertbefore string `yaml:"insertbefore,omitempty" json:"insertbefore,omitempty"`
// Job
Job string `yaml:"job,omitempty" json:"job,omitempty"`
// Minute
Minute string `yaml:"minute,omitempty" json:"minute,omitempty"`
// Month
Month string `yaml:"month,omitempty" json:"month,omitempty"`
// Name
Name string `yaml:"name,omitempty" json:"name,omitempty"`
// SpecialTime
SpecialTime string `yaml:"special_time,omitempty" json:"special_time,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// User
User string `yaml:"user,omitempty" json:"user,omitempty"`
// Weekday
Weekday string `yaml:"weekday,omitempty" json:"weekday,omitempty"`
}
type CronResult ¶
type CronResult struct {
Raw string
}
type Debconf ¶
type Debconf struct {
ModuleName string
Params DebconfParams
Result DebconfResult
}
func NewDebconf ¶
func NewDebconf() *Debconf
func (*Debconf) GetResultRaw ¶
type DebconfParams ¶
type DebconfParams struct {
// Name
Name string `yaml:"name,omitempty" json:"name,omitempty"`
// Question
Question string `yaml:"question,omitempty" json:"question,omitempty"`
// Unseen
Unseen bool `yaml:"unseen,omitempty" json:"unseen,omitempty"`
// Value
Value string `yaml:"value,omitempty" json:"value,omitempty"`
// Vtype
Vtype string `yaml:"vtype,omitempty" json:"vtype,omitempty"`
}
type DebconfResult ¶
type DebconfResult struct {
Raw string
}
type Dnf ¶
func (*Dnf) GetResultRaw ¶
type DnfParams ¶
type DnfParams struct {
// AllowDowngrade
AllowDowngrade bool `yaml:"allow_downgrade,omitempty" json:"allow_downgrade,omitempty"`
// Allowerasing
Allowerasing bool `yaml:"allowerasing,omitempty" json:"allowerasing,omitempty"`
// Autoremove
Autoremove bool `yaml:"autoremove,omitempty" json:"autoremove,omitempty"`
// Bugfix
Bugfix bool `yaml:"bugfix,omitempty" json:"bugfix,omitempty"`
// Cacheonly
Cacheonly bool `yaml:"cacheonly,omitempty" json:"cacheonly,omitempty"`
// ConfFile
ConfFile string `yaml:"conf_file,omitempty" json:"conf_file,omitempty"`
// DisableExcludes
DisableExcludes string `yaml:"disable_excludes,omitempty" json:"disable_excludes,omitempty"`
// DisableGpgCheck
DisableGpgCheck bool `yaml:"disable_gpg_check,omitempty" json:"disable_gpg_check,omitempty"`
// DisablePlugin
DisablePlugin []string `yaml:"disable_plugin,omitempty" json:"disable_plugin,omitempty"`
// Disablerepo
Disablerepo []string `yaml:"disablerepo,omitempty" json:"disablerepo,omitempty"`
// DownloadDir
DownloadDir string `yaml:"download_dir,omitempty" json:"download_dir,omitempty"`
// DownloadOnly
DownloadOnly bool `yaml:"download_only,omitempty" json:"download_only,omitempty"`
// EnablePlugin
EnablePlugin []string `yaml:"enable_plugin,omitempty" json:"enable_plugin,omitempty"`
// Enablerepo
Enablerepo []string `yaml:"enablerepo,omitempty" json:"enablerepo,omitempty"`
// Exclude
Exclude []string `yaml:"exclude,omitempty" json:"exclude,omitempty"`
// InstallRepoquery
InstallRepoquery bool `yaml:"install_repoquery,omitempty" json:"install_repoquery,omitempty"`
// InstallWeakDeps
InstallWeakDeps bool `yaml:"install_weak_deps,omitempty" json:"install_weak_deps,omitempty"`
// Installroot
Installroot string `yaml:"installroot,omitempty" json:"installroot,omitempty"`
// List
List string `yaml:"list,omitempty" json:"list,omitempty"`
// LockTimeout
LockTimeout int `yaml:"lock_timeout,omitempty" json:"lock_timeout,omitempty"`
// Name
Name []string `yaml:"name,omitempty" json:"name,omitempty"`
// Nobest
Nobest bool `yaml:"nobest,omitempty" json:"nobest,omitempty"`
// Releasever
Releasever string `yaml:"releasever,omitempty" json:"releasever,omitempty"`
// Security
Security bool `yaml:"security,omitempty" json:"security,omitempty"`
// SkipBroken
SkipBroken bool `yaml:"skip_broken,omitempty" json:"skip_broken,omitempty"`
// Sslverify
Sslverify bool `yaml:"sslverify,omitempty" json:"sslverify,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// UpdateCache
UpdateCache bool `yaml:"update_cache,omitempty" json:"update_cache,omitempty"`
// UpdateOnly
UpdateOnly bool `yaml:"update_only,omitempty" json:"update_only,omitempty"`
// ValidateCerts
ValidateCerts bool `yaml:"validate_certs,omitempty" json:"validate_certs,omitempty"`
}
type DpkgSelections ¶
type DpkgSelections struct {
ModuleName string
Params DpkgSelectionsParams
Result DpkgSelectionsResult
}
func NewDpkgSelections ¶
func NewDpkgSelections() *DpkgSelections
func (*DpkgSelections) GetParams ¶
func (m *DpkgSelections) GetParams() interface{}
func (*DpkgSelections) GetResult ¶
func (m *DpkgSelections) GetResult() interface{}
func (*DpkgSelections) GetResultRaw ¶
func (m *DpkgSelections) GetResultRaw() string
func (*DpkgSelections) GetType ¶
func (m *DpkgSelections) GetType() string
func (*DpkgSelections) Run ¶
func (m *DpkgSelections) Run() error
type DpkgSelectionsParams ¶
type DpkgSelectionsResult ¶
type DpkgSelectionsResult struct {
Raw string
}
type Expect ¶
type Expect struct {
ModuleName string
Params ExpectParams
Result ExpectResult
}
func (*Expect) GetResultRaw ¶
type ExpectParams ¶
type ExpectParams struct {
// Chdir
Chdir string `yaml:"chdir,omitempty" json:"chdir,omitempty"`
// Command
Command string `yaml:"command,omitempty" json:"command,omitempty"`
// Creates
Creates string `yaml:"creates,omitempty" json:"creates,omitempty"`
// Echo
Echo bool `yaml:"echo,omitempty" json:"echo,omitempty"`
// Removes
Removes string `yaml:"removes,omitempty" json:"removes,omitempty"`
// Responses
Responses map[string]interface{} `yaml:"responses,omitempty" json:"responses,omitempty"`
// Timeout
Timeout int `yaml:"timeout,omitempty" json:"timeout,omitempty"`
}
type ExpectResult ¶
type ExpectResult struct {
Raw string
}
type File ¶
type File struct {
ModuleName string
Params FileParams
Result FileResult
}
func (*File) GetResultRaw ¶
type FileParams ¶
type FileParams struct {
// AccessTime
AccessTime string `yaml:"access_time,omitempty" json:"access_time,omitempty"`
// AccessTimeFormat
AccessTimeFormat string `yaml:"access_time_format,omitempty" json:"access_time_format,omitempty"`
// Follow
Follow bool `yaml:"follow,omitempty" json:"follow,omitempty"`
// Force
Force bool `yaml:"force,omitempty" json:"force,omitempty"`
// ModificationTime
ModificationTime string `yaml:"modification_time,omitempty" json:"modification_time,omitempty"`
// ModificationTimeFormat
ModificationTimeFormat string `yaml:"modification_time_format,omitempty" json:"modification_time_format,omitempty"`
// Path
Path string `yaml:"path,omitempty" json:"path,omitempty"`
// Recurse
Recurse bool `yaml:"recurse,omitempty" json:"recurse,omitempty"`
// Src
Src string `yaml:"src,omitempty" json:"src,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
}
type FileResult ¶
type Find ¶
type Find struct {
ModuleName string
Params FindParams
Result FindResult
}
func (*Find) GetResultRaw ¶
type FindParams ¶
type FindParams struct {
// Age
Age string `yaml:"age,omitempty" json:"age,omitempty"`
// AgeStamp
AgeStamp string `yaml:"age_stamp,omitempty" json:"age_stamp,omitempty"`
// Contains
Contains string `yaml:"contains,omitempty" json:"contains,omitempty"`
// Depth
Depth int `yaml:"depth,omitempty" json:"depth,omitempty"`
// Excludes
Excludes []string `yaml:"excludes,omitempty" json:"excludes,omitempty"`
// FileType
FileType string `yaml:"file_type,omitempty" json:"file_type,omitempty"`
// Follow
Follow bool `yaml:"follow,omitempty" json:"follow,omitempty"`
// GetChecksum
GetChecksum bool `yaml:"get_checksum,omitempty" json:"get_checksum,omitempty"`
// Hidden
Hidden bool `yaml:"hidden,omitempty" json:"hidden,omitempty"`
// Paths
Paths []string `yaml:"paths,omitempty" json:"paths,omitempty"`
// Patterns
Patterns []string `yaml:"patterns,omitempty" json:"patterns,omitempty"`
// ReadWholeFile
ReadWholeFile bool `yaml:"read_whole_file,omitempty" json:"read_whole_file,omitempty"`
// Recurse
Recurse bool `yaml:"recurse,omitempty" json:"recurse,omitempty"`
// Size
Size string `yaml:"size,omitempty" json:"size,omitempty"`
// UseRegex
UseRegex bool `yaml:"use_regex,omitempty" json:"use_regex,omitempty"`
}
type FindResult ¶
type FindResult struct {
Raw string
// Examined
Examined int `yaml:"examined,omitempty" json:"examined,omitempty"`
// Files
Files []map[string]interface{} `yaml:"files,omitempty" json:"files,omitempty"`
// Matched
Matched int `yaml:"matched,omitempty" json:"matched,omitempty"`
// SkippedPaths
SkippedPaths map[string]interface{} `yaml:"skipped_paths,omitempty" json:"skipped_paths,omitempty"`
}
type GetUrl ¶
type GetUrl struct {
ModuleName string
Params GetUrlParams
Result GetUrlResult
}
func (*GetUrl) GetResultRaw ¶
type GetUrlParams ¶
type GetUrlParams struct {
// Backup
Backup bool `yaml:"backup,omitempty" json:"backup,omitempty"`
// Checksum
Checksum string `yaml:"checksum,omitempty" json:"checksum,omitempty"`
// ClientCert
ClientCert string `yaml:"client_cert,omitempty" json:"client_cert,omitempty"`
// ClientKey
ClientKey string `yaml:"client_key,omitempty" json:"client_key,omitempty"`
// Dest
Dest string `yaml:"dest,omitempty" json:"dest,omitempty"`
// Force
Force bool `yaml:"force,omitempty" json:"force,omitempty"`
// ForceBasicAuth
ForceBasicAuth bool `yaml:"force_basic_auth,omitempty" json:"force_basic_auth,omitempty"`
// Headers
Headers map[string]interface{} `yaml:"headers,omitempty" json:"headers,omitempty"`
// HttpAgent
HttpAgent string `yaml:"http_agent,omitempty" json:"http_agent,omitempty"`
// Sha256sum
Sha256sum string `yaml:"sha256sum,omitempty" json:"sha256sum,omitempty"`
// Timeout
Timeout int `yaml:"timeout,omitempty" json:"timeout,omitempty"`
// TmpDest
TmpDest string `yaml:"tmp_dest,omitempty" json:"tmp_dest,omitempty"`
// UnredirectedHeaders
UnredirectedHeaders []string `yaml:"unredirected_headers,omitempty" json:"unredirected_headers,omitempty"`
// Url
Url string `yaml:"url,omitempty" json:"url,omitempty"`
// UrlPassword
UrlPassword string `yaml:"url_password,omitempty" json:"url_password,omitempty"`
// UrlUsername
UrlUsername string `yaml:"url_username,omitempty" json:"url_username,omitempty"`
// UseGssapi
UseGssapi bool `yaml:"use_gssapi,omitempty" json:"use_gssapi,omitempty"`
// UseProxy
UseProxy bool `yaml:"use_proxy,omitempty" json:"use_proxy,omitempty"`
// ValidateCerts
ValidateCerts bool `yaml:"validate_certs,omitempty" json:"validate_certs,omitempty"`
}
type GetUrlResult ¶
type GetUrlResult struct {
Raw string
// BackupFile
BackupFile string `yaml:"backup_file,omitempty" json:"backup_file,omitempty"`
// ChecksumDest
ChecksumDest string `yaml:"checksum_dest,omitempty" json:"checksum_dest,omitempty"`
// ChecksumSrc
ChecksumSrc string `yaml:"checksum_src,omitempty" json:"checksum_src,omitempty"`
// Dest
Dest string `yaml:"dest,omitempty" json:"dest,omitempty"`
// Elapsed
Elapsed int `yaml:"elapsed,omitempty" json:"elapsed,omitempty"`
// Gid
Gid int `yaml:"gid,omitempty" json:"gid,omitempty"`
// Group
Group string `yaml:"group,omitempty" json:"group,omitempty"`
// Md5sum
Md5sum string `yaml:"md5sum,omitempty" json:"md5sum,omitempty"`
// Mode
Mode string `yaml:"mode,omitempty" json:"mode,omitempty"`
// Msg
Msg string `yaml:"msg,omitempty" json:"msg,omitempty"`
// Owner
Owner string `yaml:"owner,omitempty" json:"owner,omitempty"`
// Secontext
Secontext string `yaml:"secontext,omitempty" json:"secontext,omitempty"`
// Size
Size int `yaml:"size,omitempty" json:"size,omitempty"`
// Src
Src string `yaml:"src,omitempty" json:"src,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// StatusCode
StatusCode int `yaml:"status_code,omitempty" json:"status_code,omitempty"`
// Uid
Uid int `yaml:"uid,omitempty" json:"uid,omitempty"`
// Url
Url string `yaml:"url,omitempty" json:"url,omitempty"`
}
type Getent ¶
type Getent struct {
ModuleName string
Params GetentParams
Result GetentResult
}
func (*Getent) GetResultRaw ¶
type GetentParams ¶
type GetentParams struct {
// Database
Database string `yaml:"database,omitempty" json:"database,omitempty"`
// FailKey
FailKey bool `yaml:"fail_key,omitempty" json:"fail_key,omitempty"`
// Key
Key string `yaml:"key,omitempty" json:"key,omitempty"`
// Service
Service string `yaml:"service,omitempty" json:"service,omitempty"`
// Split
Split string `yaml:"split,omitempty" json:"split,omitempty"`
}
type GetentResult ¶
type Git ¶
func (*Git) GetResultRaw ¶
type GitParams ¶
type GitParams struct {
// AcceptHostkey
AcceptHostkey bool `yaml:"accept_hostkey,omitempty" json:"accept_hostkey,omitempty"`
// AcceptNewhostkey
AcceptNewhostkey bool `yaml:"accept_newhostkey,omitempty" json:"accept_newhostkey,omitempty"`
// Archive
Archive string `yaml:"archive,omitempty" json:"archive,omitempty"`
// ArchivePrefix
ArchivePrefix string `yaml:"archive_prefix,omitempty" json:"archive_prefix,omitempty"`
// Bare
Bare bool `yaml:"bare,omitempty" json:"bare,omitempty"`
// Clone
Clone bool `yaml:"clone,omitempty" json:"clone,omitempty"`
// Depth
Depth int `yaml:"depth,omitempty" json:"depth,omitempty"`
// Dest
Dest string `yaml:"dest,omitempty" json:"dest,omitempty"`
// Executable
Executable string `yaml:"executable,omitempty" json:"executable,omitempty"`
// Force
Force bool `yaml:"force,omitempty" json:"force,omitempty"`
// GpgWhitelist
GpgWhitelist []string `yaml:"gpg_whitelist,omitempty" json:"gpg_whitelist,omitempty"`
// KeyFile
KeyFile string `yaml:"key_file,omitempty" json:"key_file,omitempty"`
// Recursive
Recursive bool `yaml:"recursive,omitempty" json:"recursive,omitempty"`
// Reference
Reference string `yaml:"reference,omitempty" json:"reference,omitempty"`
// Refspec
Refspec string `yaml:"refspec,omitempty" json:"refspec,omitempty"`
// Remote
Remote string `yaml:"remote,omitempty" json:"remote,omitempty"`
// Repo
Repo string `yaml:"repo,omitempty" json:"repo,omitempty"`
// SeparateGitDir
SeparateGitDir string `yaml:"separate_git_dir,omitempty" json:"separate_git_dir,omitempty"`
// SingleBranch
SingleBranch bool `yaml:"single_branch,omitempty" json:"single_branch,omitempty"`
// SshOpts
SshOpts string `yaml:"ssh_opts,omitempty" json:"ssh_opts,omitempty"`
// TrackSubmodules
TrackSubmodules bool `yaml:"track_submodules,omitempty" json:"track_submodules,omitempty"`
// Umask
Umask string `yaml:"umask,omitempty" json:"umask,omitempty"`
// Update
Update bool `yaml:"update,omitempty" json:"update,omitempty"`
// VerifyCommit
VerifyCommit bool `yaml:"verify_commit,omitempty" json:"verify_commit,omitempty"`
// Version
Version string `yaml:"version,omitempty" json:"version,omitempty"`
}
type GitResult ¶
type GitResult struct {
Raw string
// After
After string `yaml:"after,omitempty" json:"after,omitempty"`
// Before
Before string `yaml:"before,omitempty" json:"before,omitempty"`
// GitDirBefore
GitDirBefore string `yaml:"git_dir_before,omitempty" json:"git_dir_before,omitempty"`
// GitDirNow
GitDirNow string `yaml:"git_dir_now,omitempty" json:"git_dir_now,omitempty"`
// RemoteUrlChanged
RemoteUrlChanged bool `yaml:"remote_url_changed,omitempty" json:"remote_url_changed,omitempty"`
// Warnings
Warnings string `yaml:"warnings,omitempty" json:"warnings,omitempty"`
}
type Group ¶
type Group struct {
ModuleName string
Params GroupParams
Result GroupResult
}
func (*Group) GetResultRaw ¶
type GroupBy ¶
type GroupBy struct {
ModuleName string
Params GroupByParams
Result GroupByResult
}
func NewGroupBy ¶
func NewGroupBy() *GroupBy
func (*GroupBy) GetResultRaw ¶
type GroupByParams ¶
type GroupByResult ¶
type GroupByResult struct {
Raw string
}
type GroupParams ¶
type GroupParams struct {
// Gid
Gid int `yaml:"gid,omitempty" json:"gid,omitempty"`
// Local
Local bool `yaml:"local,omitempty" json:"local,omitempty"`
// Name
Name string `yaml:"name,omitempty" json:"name,omitempty"`
// NonUnique
NonUnique bool `yaml:"non_unique,omitempty" json:"non_unique,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// System
System bool `yaml:"system,omitempty" json:"system,omitempty"`
}
type GroupResult ¶
type GroupResult struct {
Raw string
// Gid
Gid int `yaml:"gid,omitempty" json:"gid,omitempty"`
// Name
Name string `yaml:"name,omitempty" json:"name,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// System
System bool `yaml:"system,omitempty" json:"system,omitempty"`
}
type Hostname ¶
type Hostname struct {
ModuleName string
Params HostnameParams
Result HostnameResult
}
func NewHostname ¶
func NewHostname() *Hostname
func (*Hostname) GetResultRaw ¶
type HostnameParams ¶
type HostnameResult ¶
type HostnameResult struct {
Raw string
}
type Iptables ¶
type Iptables struct {
ModuleName string
Params IptablesParams
Result IptablesResult
}
func NewIptables ¶
func NewIptables() *Iptables
func (*Iptables) GetResultRaw ¶
type IptablesParams ¶
type IptablesParams struct {
// Action
Action string `yaml:"action,omitempty" json:"action,omitempty"`
// Chain
Chain string `yaml:"chain,omitempty" json:"chain,omitempty"`
// ChainManagement
ChainManagement bool `yaml:"chain_management,omitempty" json:"chain_management,omitempty"`
// Comment
Comment string `yaml:"comment,omitempty" json:"comment,omitempty"`
// Ctstate
Ctstate []string `yaml:"ctstate,omitempty" json:"ctstate,omitempty"`
// Destination
Destination string `yaml:"destination,omitempty" json:"destination,omitempty"`
// DestinationPort
DestinationPort string `yaml:"destination_port,omitempty" json:"destination_port,omitempty"`
// DestinationPorts
DestinationPorts []string `yaml:"destination_ports,omitempty" json:"destination_ports,omitempty"`
// DstRange
DstRange string `yaml:"dst_range,omitempty" json:"dst_range,omitempty"`
// Flush
Flush bool `yaml:"flush,omitempty" json:"flush,omitempty"`
// Fragment
Fragment string `yaml:"fragment,omitempty" json:"fragment,omitempty"`
// Gateway
Gateway string `yaml:"gateway,omitempty" json:"gateway,omitempty"`
// GidOwner
GidOwner string `yaml:"gid_owner,omitempty" json:"gid_owner,omitempty"`
// Goto
Goto string `yaml:"goto,omitempty" json:"goto,omitempty"`
// IcmpType
IcmpType string `yaml:"icmp_type,omitempty" json:"icmp_type,omitempty"`
// InInterface
InInterface string `yaml:"in_interface,omitempty" json:"in_interface,omitempty"`
// IpVersion
IpVersion string `yaml:"ip_version,omitempty" json:"ip_version,omitempty"`
// Jump
Jump string `yaml:"jump,omitempty" json:"jump,omitempty"`
// Limit
Limit string `yaml:"limit,omitempty" json:"limit,omitempty"`
// LimitBurst
LimitBurst string `yaml:"limit_burst,omitempty" json:"limit_burst,omitempty"`
// LogLevel
LogLevel string `yaml:"log_level,omitempty" json:"log_level,omitempty"`
// LogPrefix
LogPrefix string `yaml:"log_prefix,omitempty" json:"log_prefix,omitempty"`
// Match
Match []string `yaml:"match,omitempty" json:"match,omitempty"`
// MatchSet
MatchSet string `yaml:"match_set,omitempty" json:"match_set,omitempty"`
// MatchSetFlags
MatchSetFlags string `yaml:"match_set_flags,omitempty" json:"match_set_flags,omitempty"`
// OutInterface
OutInterface string `yaml:"out_interface,omitempty" json:"out_interface,omitempty"`
// Policy
Policy string `yaml:"policy,omitempty" json:"policy,omitempty"`
// Protocol
Protocol string `yaml:"protocol,omitempty" json:"protocol,omitempty"`
// RejectWith
RejectWith string `yaml:"reject_with,omitempty" json:"reject_with,omitempty"`
// RuleNum
RuleNum string `yaml:"rule_num,omitempty" json:"rule_num,omitempty"`
// SetCounters
SetCounters string `yaml:"set_counters,omitempty" json:"set_counters,omitempty"`
// SetDscpMark
SetDscpMark string `yaml:"set_dscp_mark,omitempty" json:"set_dscp_mark,omitempty"`
// SetDscpMarkClass
SetDscpMarkClass string `yaml:"set_dscp_mark_class,omitempty" json:"set_dscp_mark_class,omitempty"`
// Source
Source string `yaml:"source,omitempty" json:"source,omitempty"`
// SourcePort
SourcePort string `yaml:"source_port,omitempty" json:"source_port,omitempty"`
// SrcRange
SrcRange string `yaml:"src_range,omitempty" json:"src_range,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// Syn
Syn string `yaml:"syn,omitempty" json:"syn,omitempty"`
// Table
Table string `yaml:"table,omitempty" json:"table,omitempty"`
// TcpFlags
TcpFlags map[string]interface{} `yaml:"tcp_flags,omitempty" json:"tcp_flags,omitempty"`
// ToDestination
ToDestination string `yaml:"to_destination,omitempty" json:"to_destination,omitempty"`
// ToPorts
ToPorts string `yaml:"to_ports,omitempty" json:"to_ports,omitempty"`
// ToSource
ToSource string `yaml:"to_source,omitempty" json:"to_source,omitempty"`
// UidOwner
UidOwner string `yaml:"uid_owner,omitempty" json:"uid_owner,omitempty"`
// Wait
Wait string `yaml:"wait,omitempty" json:"wait,omitempty"`
}
type IptablesResult ¶
type IptablesResult struct {
Raw string
}
type KnownHosts ¶
type KnownHosts struct {
ModuleName string
Params KnownHostsParams
Result KnownHostsResult
}
func NewKnownHosts ¶
func NewKnownHosts() *KnownHosts
func (*KnownHosts) GetParams ¶
func (m *KnownHosts) GetParams() interface{}
func (*KnownHosts) GetResult ¶
func (m *KnownHosts) GetResult() interface{}
func (*KnownHosts) GetResultRaw ¶
func (m *KnownHosts) GetResultRaw() string
func (*KnownHosts) GetType ¶
func (m *KnownHosts) GetType() string
func (*KnownHosts) Run ¶
func (m *KnownHosts) Run() error
type KnownHostsParams ¶
type KnownHostsParams struct {
// HashHost
HashHost bool `yaml:"hash_host,omitempty" json:"hash_host,omitempty"`
// Key
Key string `yaml:"key,omitempty" json:"key,omitempty"`
// Name
Name string `yaml:"name,omitempty" json:"name,omitempty"`
// Path
Path string `yaml:"path,omitempty" json:"path,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
}
type KnownHostsResult ¶
type KnownHostsResult struct {
Raw string
}
type Lineinfile ¶
type Lineinfile struct {
ModuleName string
Params LineinfileParams
Result LineinfileResult
}
func NewLineinfile ¶
func NewLineinfile() *Lineinfile
func (*Lineinfile) GetParams ¶
func (m *Lineinfile) GetParams() interface{}
func (*Lineinfile) GetResult ¶
func (m *Lineinfile) GetResult() interface{}
func (*Lineinfile) GetResultRaw ¶
func (m *Lineinfile) GetResultRaw() string
func (*Lineinfile) GetType ¶
func (m *Lineinfile) GetType() string
func (*Lineinfile) Run ¶
func (m *Lineinfile) Run() error
type LineinfileParams ¶
type LineinfileParams struct {
// Backrefs
Backrefs bool `yaml:"backrefs,omitempty" json:"backrefs,omitempty"`
// Backup
Backup bool `yaml:"backup,omitempty" json:"backup,omitempty"`
// Create
Create bool `yaml:"create,omitempty" json:"create,omitempty"`
// Firstmatch
Firstmatch bool `yaml:"firstmatch,omitempty" json:"firstmatch,omitempty"`
// Insertafter
Insertafter string `yaml:"insertafter,omitempty" json:"insertafter,omitempty"`
// Insertbefore
Insertbefore string `yaml:"insertbefore,omitempty" json:"insertbefore,omitempty"`
// Line
Line string `yaml:"line,omitempty" json:"line,omitempty"`
// Others
Others string `yaml:"others,omitempty" json:"others,omitempty"`
// Path
Path string `yaml:"path,omitempty" json:"path,omitempty"`
// Regexp
Regexp string `yaml:"regexp,omitempty" json:"regexp,omitempty"`
// SearchString
SearchString string `yaml:"search_string,omitempty" json:"search_string,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
}
type LineinfileResult ¶
type LineinfileResult struct {
Raw string
}
type Meta ¶
type Meta struct {
ModuleName string
Params MetaParams
Result MetaResult
}
func (*Meta) GetResultRaw ¶
type MetaParams ¶
type MetaParams struct {
// FreeForm
FreeForm string `yaml:"free_form,omitempty" json:"free_form,omitempty"`
}
type MetaResult ¶
type MetaResult struct {
Raw string
}
type Module ¶
type Module interface {
GetResult() interface{}
GetResultRaw() string
GetParams() interface{}
GetType() string
Run() error
}
func ModuleByName ¶
type Package ¶
type Package struct {
ModuleName string
Params PackageParams
Result PackageResult
}
func NewPackage ¶
func NewPackage() *Package
func (*Package) GetResultRaw ¶
type PackageFacts ¶
type PackageFacts struct {
ModuleName string
Params PackageFactsParams
Result PackageFactsResult
}
func NewPackageFacts ¶
func NewPackageFacts() *PackageFacts
func (*PackageFacts) GetParams ¶
func (m *PackageFacts) GetParams() interface{}
func (*PackageFacts) GetResult ¶
func (m *PackageFacts) GetResult() interface{}
func (*PackageFacts) GetResultRaw ¶
func (m *PackageFacts) GetResultRaw() string
func (*PackageFacts) GetType ¶
func (m *PackageFacts) GetType() string
func (*PackageFacts) Run ¶
func (m *PackageFacts) Run() error
type PackageFactsParams ¶
type PackageFactsResult ¶
type PackageFactsResult struct {
Raw string
// AnsibleFacts
AnsibleFacts interface{} `yaml:"ansible_facts,omitempty" json:"ansible_facts,omitempty"`
}
type PackageParams ¶
type PackageResult ¶
type PackageResult struct {
Raw string
}
type Pause ¶
type Pause struct {
ModuleName string
Params PauseParams
Result PauseResult
}
func (*Pause) GetResultRaw ¶
type PauseParams ¶
type PauseParams struct {
// Echo
Echo bool `yaml:"echo,omitempty" json:"echo,omitempty"`
// Minutes
Minutes string `yaml:"minutes,omitempty" json:"minutes,omitempty"`
// Prompt
Prompt string `yaml:"prompt,omitempty" json:"prompt,omitempty"`
// Seconds
Seconds string `yaml:"seconds,omitempty" json:"seconds,omitempty"`
}
type PauseResult ¶
type PauseResult struct {
Raw string
// Delta
Delta string `yaml:"delta,omitempty" json:"delta,omitempty"`
// Echo
Echo bool `yaml:"echo,omitempty" json:"echo,omitempty"`
// Start
Start string `yaml:"start,omitempty" json:"start,omitempty"`
// Stdout
Stdout string `yaml:"stdout,omitempty" json:"stdout,omitempty"`
// Stop
Stop string `yaml:"stop,omitempty" json:"stop,omitempty"`
// UserInput
UserInput string `yaml:"user_input,omitempty" json:"user_input,omitempty"`
}
type Ping ¶
type Ping struct {
ModuleName string
Params PingParams
Result PingResult
}
func (*Ping) GetResultRaw ¶
type PingParams ¶
type PingParams struct {
// Data
Data string `yaml:"data,omitempty" json:"data,omitempty"`
}
type PingResult ¶
type Pip ¶
func (*Pip) GetResultRaw ¶
type PipParams ¶
type PipParams struct {
// Chdir
Chdir string `yaml:"chdir,omitempty" json:"chdir,omitempty"`
// Editable
Editable bool `yaml:"editable,omitempty" json:"editable,omitempty"`
// Executable
Executable string `yaml:"executable,omitempty" json:"executable,omitempty"`
// ExtraArgs
ExtraArgs string `yaml:"extra_args,omitempty" json:"extra_args,omitempty"`
// Name
Name []string `yaml:"name,omitempty" json:"name,omitempty"`
// Requirements
Requirements string `yaml:"requirements,omitempty" json:"requirements,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// Umask
Umask string `yaml:"umask,omitempty" json:"umask,omitempty"`
// Version
Version string `yaml:"version,omitempty" json:"version,omitempty"`
// Virtualenv
Virtualenv string `yaml:"virtualenv,omitempty" json:"virtualenv,omitempty"`
// VirtualenvCommand
VirtualenvCommand string `yaml:"virtualenv_command,omitempty" json:"virtualenv_command,omitempty"`
// VirtualenvPython
VirtualenvPython string `yaml:"virtualenv_python,omitempty" json:"virtualenv_python,omitempty"`
// VirtualenvSitePackages
VirtualenvSitePackages bool `yaml:"virtualenv_site_packages,omitempty" json:"virtualenv_site_packages,omitempty"`
}
type PipResult ¶
type PipResult struct {
Raw string
// Cmd
Cmd string `yaml:"cmd,omitempty" json:"cmd,omitempty"`
// Name
Name []map[string]interface{} `yaml:"name,omitempty" json:"name,omitempty"`
// Requirements
Requirements string `yaml:"requirements,omitempty" json:"requirements,omitempty"`
// Version
Version string `yaml:"version,omitempty" json:"version,omitempty"`
// Virtualenv
Virtualenv string `yaml:"virtualenv,omitempty" json:"virtualenv,omitempty"`
}
type Reboot ¶
type Reboot struct {
ModuleName string
Params RebootParams
Result RebootResult
}
func (*Reboot) GetResultRaw ¶
type RebootParams ¶
type RebootParams struct {
// BootTimeCommand
BootTimeCommand string `yaml:"boot_time_command,omitempty" json:"boot_time_command,omitempty"`
// ConnectTimeout
ConnectTimeout int `yaml:"connect_timeout,omitempty" json:"connect_timeout,omitempty"`
// Msg
Msg string `yaml:"msg,omitempty" json:"msg,omitempty"`
// PostRebootDelay
PostRebootDelay int `yaml:"post_reboot_delay,omitempty" json:"post_reboot_delay,omitempty"`
// PreRebootDelay
PreRebootDelay int `yaml:"pre_reboot_delay,omitempty" json:"pre_reboot_delay,omitempty"`
// RebootCommand
RebootCommand string `yaml:"reboot_command,omitempty" json:"reboot_command,omitempty"`
// RebootTimeout
RebootTimeout int `yaml:"reboot_timeout,omitempty" json:"reboot_timeout,omitempty"`
// SearchPaths
SearchPaths []string `yaml:"search_paths,omitempty" json:"search_paths,omitempty"`
// TestCommand
TestCommand string `yaml:"test_command,omitempty" json:"test_command,omitempty"`
}
type RebootResult ¶
type Replace ¶
type Replace struct {
ModuleName string
Params ReplaceParams
Result ReplaceResult
}
func NewReplace ¶
func NewReplace() *Replace
func (*Replace) GetResultRaw ¶
type ReplaceParams ¶
type ReplaceParams struct {
// After
After string `yaml:"after,omitempty" json:"after,omitempty"`
// Backup
Backup bool `yaml:"backup,omitempty" json:"backup,omitempty"`
// Before
Before string `yaml:"before,omitempty" json:"before,omitempty"`
// Encoding
Encoding string `yaml:"encoding,omitempty" json:"encoding,omitempty"`
// Others
Others string `yaml:"others,omitempty" json:"others,omitempty"`
// Path
Path string `yaml:"path,omitempty" json:"path,omitempty"`
// Regexp
Regexp string `yaml:"regexp,omitempty" json:"regexp,omitempty"`
// Replace
Replace string `yaml:"replace,omitempty" json:"replace,omitempty"`
}
type ReplaceResult ¶
type ReplaceResult struct {
Raw string
}
type RpmKey ¶
type RpmKey struct {
ModuleName string
Params RpmKeyParams
Result RpmKeyResult
}
func (*RpmKey) GetResultRaw ¶
type RpmKeyParams ¶
type RpmKeyParams struct {
// Fingerprint
Fingerprint string `yaml:"fingerprint,omitempty" json:"fingerprint,omitempty"`
// Key
Key string `yaml:"key,omitempty" json:"key,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// ValidateCerts
ValidateCerts bool `yaml:"validate_certs,omitempty" json:"validate_certs,omitempty"`
}
type RpmKeyResult ¶
type RpmKeyResult struct {
Raw string
}
type Service ¶
type Service struct {
ModuleName string
Params ServiceParams
Result ServiceResult
}
func NewService ¶
func NewService() *Service
func (*Service) GetResultRaw ¶
type ServiceFacts ¶
type ServiceFacts struct {
ModuleName string
Params ServiceFactsParams
Result ServiceFactsResult
}
func NewServiceFacts ¶
func NewServiceFacts() *ServiceFacts
func (*ServiceFacts) GetParams ¶
func (m *ServiceFacts) GetParams() interface{}
func (*ServiceFacts) GetResult ¶
func (m *ServiceFacts) GetResult() interface{}
func (*ServiceFacts) GetResultRaw ¶
func (m *ServiceFacts) GetResultRaw() string
func (*ServiceFacts) GetType ¶
func (m *ServiceFacts) GetType() string
func (*ServiceFacts) Run ¶
func (m *ServiceFacts) Run() error
type ServiceFactsParams ¶
type ServiceFactsParams struct {
}
type ServiceFactsResult ¶
type ServiceFactsResult struct {
Raw string
// AnsibleFacts
AnsibleFacts interface{} `yaml:"ansible_facts,omitempty" json:"ansible_facts,omitempty"`
}
type ServiceParams ¶
type ServiceParams struct {
// Arguments
Arguments string `yaml:"arguments,omitempty" json:"arguments,omitempty"`
// Enabled
Enabled bool `yaml:"enabled,omitempty" json:"enabled,omitempty"`
// Name
Name string `yaml:"name,omitempty" json:"name,omitempty"`
// Pattern
Pattern string `yaml:"pattern,omitempty" json:"pattern,omitempty"`
// Runlevel
Runlevel string `yaml:"runlevel,omitempty" json:"runlevel,omitempty"`
// Sleep
Sleep int `yaml:"sleep,omitempty" json:"sleep,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// Use
Use string `yaml:"use,omitempty" json:"use,omitempty"`
}
type ServiceResult ¶
type ServiceResult struct {
Raw string
}
type Setup ¶
type Setup struct {
ModuleName string
Params SetupParams
Result SetupResult
}
func (*Setup) GetResultRaw ¶
type SetupParams ¶
type SetupParams struct {
// FactPath
FactPath string `yaml:"fact_path,omitempty" json:"fact_path,omitempty"`
// Filter
Filter []string `yaml:"filter,omitempty" json:"filter,omitempty"`
// GatherSubset
GatherSubset []string `yaml:"gather_subset,omitempty" json:"gather_subset,omitempty"`
// GatherTimeout
GatherTimeout int `yaml:"gather_timeout,omitempty" json:"gather_timeout,omitempty"`
}
type SetupResult ¶
type SetupResult struct {
Raw string
}
type Slurp ¶
type Slurp struct {
ModuleName string
Params SlurpParams
Result SlurpResult
}
func (*Slurp) GetResultRaw ¶
type SlurpParams ¶
type SlurpParams struct {
// Src
Src string `yaml:"src,omitempty" json:"src,omitempty"`
}
type SlurpResult ¶
type Stat ¶
type Stat struct {
ModuleName string
Params StatParams
Result StatResult
}
func (*Stat) GetResultRaw ¶
type StatParams ¶
type StatParams struct {
// ChecksumAlgorithm
ChecksumAlgorithm string `yaml:"checksum_algorithm,omitempty" json:"checksum_algorithm,omitempty"`
// Follow
Follow bool `yaml:"follow,omitempty" json:"follow,omitempty"`
// GetAttributes
GetAttributes bool `yaml:"get_attributes,omitempty" json:"get_attributes,omitempty"`
// GetChecksum
GetChecksum bool `yaml:"get_checksum,omitempty" json:"get_checksum,omitempty"`
// GetMime
GetMime bool `yaml:"get_mime,omitempty" json:"get_mime,omitempty"`
// Path
Path string `yaml:"path,omitempty" json:"path,omitempty"`
}
type StatResult ¶
type StatResult struct {
Raw string
// Stat
Stat interface{} `yaml:"stat,omitempty" json:"stat,omitempty"`
}
type Subversion ¶
type Subversion struct {
ModuleName string
Params SubversionParams
Result SubversionResult
}
func NewSubversion ¶
func NewSubversion() *Subversion
func (*Subversion) GetParams ¶
func (m *Subversion) GetParams() interface{}
func (*Subversion) GetResult ¶
func (m *Subversion) GetResult() interface{}
func (*Subversion) GetResultRaw ¶
func (m *Subversion) GetResultRaw() string
func (*Subversion) GetType ¶
func (m *Subversion) GetType() string
func (*Subversion) Run ¶
func (m *Subversion) Run() error
type SubversionParams ¶
type SubversionParams struct {
// Checkout
Checkout bool `yaml:"checkout,omitempty" json:"checkout,omitempty"`
// Dest
Dest string `yaml:"dest,omitempty" json:"dest,omitempty"`
// Executable
Executable string `yaml:"executable,omitempty" json:"executable,omitempty"`
// Export
Export bool `yaml:"export,omitempty" json:"export,omitempty"`
// Force
Force bool `yaml:"force,omitempty" json:"force,omitempty"`
// InPlace
InPlace bool `yaml:"in_place,omitempty" json:"in_place,omitempty"`
// Password
Password string `yaml:"password,omitempty" json:"password,omitempty"`
// Repo
Repo string `yaml:"repo,omitempty" json:"repo,omitempty"`
// Revision
Revision string `yaml:"revision,omitempty" json:"revision,omitempty"`
// Switch
Switch bool `yaml:"switch,omitempty" json:"switch,omitempty"`
// Update
Update bool `yaml:"update,omitempty" json:"update,omitempty"`
// Username
Username string `yaml:"username,omitempty" json:"username,omitempty"`
// ValidateCerts
ValidateCerts bool `yaml:"validate_certs,omitempty" json:"validate_certs,omitempty"`
}
type SubversionResult ¶
type SubversionResult struct {
Raw string
}
type Systemd ¶
type Systemd struct {
ModuleName string
Params SystemdParams
Result SystemdResult
}
func NewSystemd ¶
func NewSystemd() *Systemd
func (*Systemd) GetResultRaw ¶
type SystemdParams ¶
type SystemdParams struct {
// DaemonReexec
DaemonReexec bool `yaml:"daemon_reexec,omitempty" json:"daemon_reexec,omitempty"`
// DaemonReload
DaemonReload bool `yaml:"daemon_reload,omitempty" json:"daemon_reload,omitempty"`
// Enabled
Enabled bool `yaml:"enabled,omitempty" json:"enabled,omitempty"`
// Force
Force bool `yaml:"force,omitempty" json:"force,omitempty"`
// Masked
Masked bool `yaml:"masked,omitempty" json:"masked,omitempty"`
// Name
Name string `yaml:"name,omitempty" json:"name,omitempty"`
// NoBlock
NoBlock bool `yaml:"no_block,omitempty" json:"no_block,omitempty"`
// Scope
Scope string `yaml:"scope,omitempty" json:"scope,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
}
type SystemdResult ¶
type SystemdResult struct {
Raw string
// Status
Status interface{} `yaml:"status,omitempty" json:"status,omitempty"`
}
type Sysvinit ¶
type Sysvinit struct {
ModuleName string
Params SysvinitParams
Result SysvinitResult
}
func NewSysvinit ¶
func NewSysvinit() *Sysvinit
func (*Sysvinit) GetResultRaw ¶
type SysvinitParams ¶
type SysvinitParams struct {
// Arguments
Arguments string `yaml:"arguments,omitempty" json:"arguments,omitempty"`
// Daemonize
Daemonize bool `yaml:"daemonize,omitempty" json:"daemonize,omitempty"`
// Enabled
Enabled bool `yaml:"enabled,omitempty" json:"enabled,omitempty"`
// Name
Name string `yaml:"name,omitempty" json:"name,omitempty"`
// Pattern
Pattern string `yaml:"pattern,omitempty" json:"pattern,omitempty"`
// Runlevels
Runlevels []string `yaml:"runlevels,omitempty" json:"runlevels,omitempty"`
// Sleep
Sleep int `yaml:"sleep,omitempty" json:"sleep,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
}
type SysvinitResult ¶
type SysvinitResult struct {
Raw string
// Results
Results interface{} `yaml:"results,omitempty" json:"results,omitempty"`
}
type Tempfile ¶
type Tempfile struct {
ModuleName string
Params TempfileParams
Result TempfileResult
}
func NewTempfile ¶
func NewTempfile() *Tempfile
func (*Tempfile) GetResultRaw ¶
type TempfileParams ¶
type TempfileParams struct {
// Path
Path string `yaml:"path,omitempty" json:"path,omitempty"`
// Prefix
Prefix string `yaml:"prefix,omitempty" json:"prefix,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// Suffix
Suffix string `yaml:"suffix,omitempty" json:"suffix,omitempty"`
}
type TempfileResult ¶
type Template ¶
type Template struct {
ModuleName string
Params TemplateParams
Result TemplateResult
}
func NewTemplate ¶
func NewTemplate() *Template
func (*Template) GetResultRaw ¶
type TemplateParams ¶
type TemplateParams struct {
// Follow
Follow bool `yaml:"follow,omitempty" json:"follow,omitempty"`
}
type TemplateResult ¶
type TemplateResult struct {
Raw string
}
type Unarchive ¶
type Unarchive struct {
ModuleName string
Params UnarchiveParams
Result UnarchiveResult
}
func NewUnarchive ¶
func NewUnarchive() *Unarchive
func (*Unarchive) GetResultRaw ¶
type UnarchiveParams ¶
type UnarchiveParams struct {
// Copy
Copy bool `yaml:"copy,omitempty" json:"copy,omitempty"`
// Creates
Creates string `yaml:"creates,omitempty" json:"creates,omitempty"`
// Dest
Dest string `yaml:"dest,omitempty" json:"dest,omitempty"`
// Exclude
Exclude []string `yaml:"exclude,omitempty" json:"exclude,omitempty"`
// ExtraOpts
ExtraOpts []string `yaml:"extra_opts,omitempty" json:"extra_opts,omitempty"`
// Include
Include []string `yaml:"include,omitempty" json:"include,omitempty"`
// IoBufferSize
IoBufferSize int `yaml:"io_buffer_size,omitempty" json:"io_buffer_size,omitempty"`
// KeepNewer
KeepNewer bool `yaml:"keep_newer,omitempty" json:"keep_newer,omitempty"`
// ListFiles
ListFiles bool `yaml:"list_files,omitempty" json:"list_files,omitempty"`
// RemoteSrc
RemoteSrc bool `yaml:"remote_src,omitempty" json:"remote_src,omitempty"`
// Src
Src string `yaml:"src,omitempty" json:"src,omitempty"`
// ValidateCerts
ValidateCerts bool `yaml:"validate_certs,omitempty" json:"validate_certs,omitempty"`
}
type UnarchiveResult ¶
type UnarchiveResult struct {
Raw string
// Dest
Dest string `yaml:"dest,omitempty" json:"dest,omitempty"`
// Files
Files []map[string]interface{} `yaml:"files,omitempty" json:"files,omitempty"`
// Gid
Gid int `yaml:"gid,omitempty" json:"gid,omitempty"`
// Group
Group string `yaml:"group,omitempty" json:"group,omitempty"`
// Handler
Handler string `yaml:"handler,omitempty" json:"handler,omitempty"`
// Mode
Mode string `yaml:"mode,omitempty" json:"mode,omitempty"`
// Owner
Owner string `yaml:"owner,omitempty" json:"owner,omitempty"`
// Size
Size int `yaml:"size,omitempty" json:"size,omitempty"`
// Src
Src string `yaml:"src,omitempty" json:"src,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// Uid
Uid int `yaml:"uid,omitempty" json:"uid,omitempty"`
}
type Uri ¶
func (*Uri) GetResultRaw ¶
type UriParams ¶
type UriParams struct {
// Body
Body string `yaml:"body,omitempty" json:"body,omitempty"`
// BodyFormat
BodyFormat string `yaml:"body_format,omitempty" json:"body_format,omitempty"`
// CaPath
CaPath string `yaml:"ca_path,omitempty" json:"ca_path,omitempty"`
// ClientCert
ClientCert string `yaml:"client_cert,omitempty" json:"client_cert,omitempty"`
// ClientKey
ClientKey string `yaml:"client_key,omitempty" json:"client_key,omitempty"`
// Creates
Creates string `yaml:"creates,omitempty" json:"creates,omitempty"`
// Dest
Dest string `yaml:"dest,omitempty" json:"dest,omitempty"`
// FollowRedirects
FollowRedirects string `yaml:"follow_redirects,omitempty" json:"follow_redirects,omitempty"`
// Force
Force bool `yaml:"force,omitempty" json:"force,omitempty"`
// ForceBasicAuth
ForceBasicAuth bool `yaml:"force_basic_auth,omitempty" json:"force_basic_auth,omitempty"`
// Headers
Headers map[string]interface{} `yaml:"headers,omitempty" json:"headers,omitempty"`
// HttpAgent
HttpAgent string `yaml:"http_agent,omitempty" json:"http_agent,omitempty"`
// Method
Method string `yaml:"method,omitempty" json:"method,omitempty"`
// RemoteSrc
RemoteSrc bool `yaml:"remote_src,omitempty" json:"remote_src,omitempty"`
// Removes
Removes string `yaml:"removes,omitempty" json:"removes,omitempty"`
// ReturnContent
ReturnContent bool `yaml:"return_content,omitempty" json:"return_content,omitempty"`
// Src
Src string `yaml:"src,omitempty" json:"src,omitempty"`
// StatusCode
StatusCode []int `yaml:"status_code,omitempty" json:"status_code,omitempty"`
// Timeout
Timeout int `yaml:"timeout,omitempty" json:"timeout,omitempty"`
// UnixSocket
UnixSocket string `yaml:"unix_socket,omitempty" json:"unix_socket,omitempty"`
// UnredirectedHeaders
UnredirectedHeaders []string `yaml:"unredirected_headers,omitempty" json:"unredirected_headers,omitempty"`
// Url
Url string `yaml:"url,omitempty" json:"url,omitempty"`
// UrlPassword
UrlPassword string `yaml:"url_password,omitempty" json:"url_password,omitempty"`
// UrlUsername
UrlUsername string `yaml:"url_username,omitempty" json:"url_username,omitempty"`
// UseGssapi
UseGssapi bool `yaml:"use_gssapi,omitempty" json:"use_gssapi,omitempty"`
// UseProxy
UseProxy bool `yaml:"use_proxy,omitempty" json:"use_proxy,omitempty"`
// ValidateCerts
ValidateCerts bool `yaml:"validate_certs,omitempty" json:"validate_certs,omitempty"`
}
type UriResult ¶
type UriResult struct {
Raw string
// Content
Content string `yaml:"content,omitempty" json:"content,omitempty"`
// Cookies
Cookies map[string]interface{} `yaml:"cookies,omitempty" json:"cookies,omitempty"`
// CookiesString
CookiesString string `yaml:"cookies_string,omitempty" json:"cookies_string,omitempty"`
// Elapsed
Elapsed int `yaml:"elapsed,omitempty" json:"elapsed,omitempty"`
// Msg
Msg string `yaml:"msg,omitempty" json:"msg,omitempty"`
// Path
Path string `yaml:"path,omitempty" json:"path,omitempty"`
// Redirected
Redirected bool `yaml:"redirected,omitempty" json:"redirected,omitempty"`
// Status
Status int `yaml:"status,omitempty" json:"status,omitempty"`
// Url
Url string `yaml:"url,omitempty" json:"url,omitempty"`
}
type User ¶
type User struct {
ModuleName string
Params UserParams
Result UserResult
}
func (*User) GetResultRaw ¶
type UserParams ¶
type UserParams struct {
// Append
Append bool `yaml:"append,omitempty" json:"append,omitempty"`
// Authorization
Authorization string `yaml:"authorization,omitempty" json:"authorization,omitempty"`
// Comment
Comment string `yaml:"comment,omitempty" json:"comment,omitempty"`
// CreateHome
CreateHome bool `yaml:"create_home,omitempty" json:"create_home,omitempty"`
// Expires
Expires float64 `yaml:"expires,omitempty" json:"expires,omitempty"`
// Force
Force bool `yaml:"force,omitempty" json:"force,omitempty"`
// GenerateSshKey
GenerateSshKey bool `yaml:"generate_ssh_key,omitempty" json:"generate_ssh_key,omitempty"`
// Group
Group string `yaml:"group,omitempty" json:"group,omitempty"`
// Groups
Groups []string `yaml:"groups,omitempty" json:"groups,omitempty"`
// Hidden
Hidden bool `yaml:"hidden,omitempty" json:"hidden,omitempty"`
// Home
Home string `yaml:"home,omitempty" json:"home,omitempty"`
// Local
Local bool `yaml:"local,omitempty" json:"local,omitempty"`
// LoginClass
LoginClass string `yaml:"login_class,omitempty" json:"login_class,omitempty"`
// MoveHome
MoveHome bool `yaml:"move_home,omitempty" json:"move_home,omitempty"`
// Name
Name string `yaml:"name,omitempty" json:"name,omitempty"`
// NonUnique
NonUnique bool `yaml:"non_unique,omitempty" json:"non_unique,omitempty"`
// Password
Password string `yaml:"password,omitempty" json:"password,omitempty"`
// PasswordExpireMax
PasswordExpireMax int `yaml:"password_expire_max,omitempty" json:"password_expire_max,omitempty"`
// PasswordExpireMin
PasswordExpireMin int `yaml:"password_expire_min,omitempty" json:"password_expire_min,omitempty"`
// PasswordLock
PasswordLock bool `yaml:"password_lock,omitempty" json:"password_lock,omitempty"`
// Profile
Profile string `yaml:"profile,omitempty" json:"profile,omitempty"`
// Remove
Remove bool `yaml:"remove,omitempty" json:"remove,omitempty"`
// Role
Role string `yaml:"role,omitempty" json:"role,omitempty"`
// Seuser
Seuser string `yaml:"seuser,omitempty" json:"seuser,omitempty"`
// Shell
Shell string `yaml:"shell,omitempty" json:"shell,omitempty"`
// Skeleton
Skeleton string `yaml:"skeleton,omitempty" json:"skeleton,omitempty"`
// SshKeyBits
SshKeyBits int `yaml:"ssh_key_bits,omitempty" json:"ssh_key_bits,omitempty"`
// SshKeyComment
SshKeyComment string `yaml:"ssh_key_comment,omitempty" json:"ssh_key_comment,omitempty"`
// SshKeyFile
SshKeyFile string `yaml:"ssh_key_file,omitempty" json:"ssh_key_file,omitempty"`
// SshKeyPassphrase
SshKeyPassphrase string `yaml:"ssh_key_passphrase,omitempty" json:"ssh_key_passphrase,omitempty"`
// SshKeyType
SshKeyType string `yaml:"ssh_key_type,omitempty" json:"ssh_key_type,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// System
System bool `yaml:"system,omitempty" json:"system,omitempty"`
// Uid
Uid int `yaml:"uid,omitempty" json:"uid,omitempty"`
// Umask
Umask string `yaml:"umask,omitempty" json:"umask,omitempty"`
// UpdatePassword
UpdatePassword string `yaml:"update_password,omitempty" json:"update_password,omitempty"`
}
type UserResult ¶
type UserResult struct {
Raw string
// Append
Append bool `yaml:"append,omitempty" json:"append,omitempty"`
// Comment
Comment string `yaml:"comment,omitempty" json:"comment,omitempty"`
// CreateHome
CreateHome bool `yaml:"create_home,omitempty" json:"create_home,omitempty"`
// Force
Force bool `yaml:"force,omitempty" json:"force,omitempty"`
// Group
Group int `yaml:"group,omitempty" json:"group,omitempty"`
// Groups
Groups string `yaml:"groups,omitempty" json:"groups,omitempty"`
// Home
Home string `yaml:"home,omitempty" json:"home,omitempty"`
// MoveHome
MoveHome bool `yaml:"move_home,omitempty" json:"move_home,omitempty"`
// Name
Name string `yaml:"name,omitempty" json:"name,omitempty"`
// Password
Password string `yaml:"password,omitempty" json:"password,omitempty"`
// PasswordExpireMax
PasswordExpireMax int `yaml:"password_expire_max,omitempty" json:"password_expire_max,omitempty"`
// PasswordExpireMin
PasswordExpireMin int `yaml:"password_expire_min,omitempty" json:"password_expire_min,omitempty"`
// Remove
Remove bool `yaml:"remove,omitempty" json:"remove,omitempty"`
// Shell
Shell string `yaml:"shell,omitempty" json:"shell,omitempty"`
// SshFingerprint
SshFingerprint string `yaml:"ssh_fingerprint,omitempty" json:"ssh_fingerprint,omitempty"`
// SshKeyFile
SshKeyFile string `yaml:"ssh_key_file,omitempty" json:"ssh_key_file,omitempty"`
// SshPublicKey
SshPublicKey string `yaml:"ssh_public_key,omitempty" json:"ssh_public_key,omitempty"`
// Stderr
Stderr string `yaml:"stderr,omitempty" json:"stderr,omitempty"`
// Stdout
Stdout string `yaml:"stdout,omitempty" json:"stdout,omitempty"`
// System
System bool `yaml:"system,omitempty" json:"system,omitempty"`
// Uid
Uid int `yaml:"uid,omitempty" json:"uid,omitempty"`
}
type WaitFor ¶
type WaitFor struct {
ModuleName string
Params WaitForParams
Result WaitForResult
}
func NewWaitFor ¶
func NewWaitFor() *WaitFor
func (*WaitFor) GetResultRaw ¶
type WaitForParams ¶
type WaitForParams struct {
// ActiveConnectionStates
ActiveConnectionStates []string `yaml:"active_connection_states,omitempty" json:"active_connection_states,omitempty"`
// ConnectTimeout
ConnectTimeout int `yaml:"connect_timeout,omitempty" json:"connect_timeout,omitempty"`
// Delay
Delay int `yaml:"delay,omitempty" json:"delay,omitempty"`
// ExcludeHosts
ExcludeHosts []string `yaml:"exclude_hosts,omitempty" json:"exclude_hosts,omitempty"`
// Host
Host string `yaml:"host,omitempty" json:"host,omitempty"`
// Msg
Msg string `yaml:"msg,omitempty" json:"msg,omitempty"`
// Path
Path string `yaml:"path,omitempty" json:"path,omitempty"`
// Port
Port int `yaml:"port,omitempty" json:"port,omitempty"`
// SearchRegex
SearchRegex string `yaml:"search_regex,omitempty" json:"search_regex,omitempty"`
// Sleep
Sleep int `yaml:"sleep,omitempty" json:"sleep,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// Timeout
Timeout int `yaml:"timeout,omitempty" json:"timeout,omitempty"`
}
type WaitForResult ¶
type WaitForResult struct {
Raw string
// Elapsed
Elapsed int `yaml:"elapsed,omitempty" json:"elapsed,omitempty"`
// MatchGroupdict
MatchGroupdict map[string]interface{} `yaml:"match_groupdict,omitempty" json:"match_groupdict,omitempty"`
// MatchGroups
MatchGroups []map[string]interface{} `yaml:"match_groups,omitempty" json:"match_groups,omitempty"`
}
type Yum ¶
func (*Yum) GetResultRaw ¶
type YumParams ¶
type YumParams struct {
// AllowDowngrade
AllowDowngrade bool `yaml:"allow_downgrade,omitempty" json:"allow_downgrade,omitempty"`
// Autoremove
Autoremove bool `yaml:"autoremove,omitempty" json:"autoremove,omitempty"`
// Bugfix
Bugfix bool `yaml:"bugfix,omitempty" json:"bugfix,omitempty"`
// Cacheonly
Cacheonly bool `yaml:"cacheonly,omitempty" json:"cacheonly,omitempty"`
// ConfFile
ConfFile string `yaml:"conf_file,omitempty" json:"conf_file,omitempty"`
// DisableExcludes
DisableExcludes string `yaml:"disable_excludes,omitempty" json:"disable_excludes,omitempty"`
// DisableGpgCheck
DisableGpgCheck bool `yaml:"disable_gpg_check,omitempty" json:"disable_gpg_check,omitempty"`
// DisablePlugin
DisablePlugin []string `yaml:"disable_plugin,omitempty" json:"disable_plugin,omitempty"`
// Disablerepo
Disablerepo []string `yaml:"disablerepo,omitempty" json:"disablerepo,omitempty"`
// DownloadDir
DownloadDir string `yaml:"download_dir,omitempty" json:"download_dir,omitempty"`
// DownloadOnly
DownloadOnly bool `yaml:"download_only,omitempty" json:"download_only,omitempty"`
// EnablePlugin
EnablePlugin []string `yaml:"enable_plugin,omitempty" json:"enable_plugin,omitempty"`
// Enablerepo
Enablerepo []string `yaml:"enablerepo,omitempty" json:"enablerepo,omitempty"`
// Exclude
Exclude []string `yaml:"exclude,omitempty" json:"exclude,omitempty"`
// InstallRepoquery
InstallRepoquery bool `yaml:"install_repoquery,omitempty" json:"install_repoquery,omitempty"`
// InstallWeakDeps
InstallWeakDeps bool `yaml:"install_weak_deps,omitempty" json:"install_weak_deps,omitempty"`
// Installroot
Installroot string `yaml:"installroot,omitempty" json:"installroot,omitempty"`
// List
List string `yaml:"list,omitempty" json:"list,omitempty"`
// LockTimeout
LockTimeout int `yaml:"lock_timeout,omitempty" json:"lock_timeout,omitempty"`
// Name
Name []string `yaml:"name,omitempty" json:"name,omitempty"`
// Releasever
Releasever string `yaml:"releasever,omitempty" json:"releasever,omitempty"`
// Security
Security bool `yaml:"security,omitempty" json:"security,omitempty"`
// SkipBroken
SkipBroken bool `yaml:"skip_broken,omitempty" json:"skip_broken,omitempty"`
// Sslverify
Sslverify bool `yaml:"sslverify,omitempty" json:"sslverify,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// UpdateCache
UpdateCache bool `yaml:"update_cache,omitempty" json:"update_cache,omitempty"`
// UpdateOnly
UpdateOnly bool `yaml:"update_only,omitempty" json:"update_only,omitempty"`
// UseBackend
UseBackend string `yaml:"use_backend,omitempty" json:"use_backend,omitempty"`
// ValidateCerts
ValidateCerts bool `yaml:"validate_certs,omitempty" json:"validate_certs,omitempty"`
}
type YumRepository ¶
type YumRepository struct {
ModuleName string
Params YumRepositoryParams
Result YumRepositoryResult
}
func NewYumRepository ¶
func NewYumRepository() *YumRepository
func (*YumRepository) GetParams ¶
func (m *YumRepository) GetParams() interface{}
func (*YumRepository) GetResult ¶
func (m *YumRepository) GetResult() interface{}
func (*YumRepository) GetResultRaw ¶
func (m *YumRepository) GetResultRaw() string
func (*YumRepository) GetType ¶
func (m *YumRepository) GetType() string
func (*YumRepository) Run ¶
func (m *YumRepository) Run() error
type YumRepositoryParams ¶
type YumRepositoryParams struct {
// Async
Async bool `yaml:"async,omitempty" json:"async,omitempty"`
// Bandwidth
Bandwidth string `yaml:"bandwidth,omitempty" json:"bandwidth,omitempty"`
// Baseurl
Baseurl []string `yaml:"baseurl,omitempty" json:"baseurl,omitempty"`
// Cost
Cost string `yaml:"cost,omitempty" json:"cost,omitempty"`
// DeltarpmMetadataPercentage
DeltarpmMetadataPercentage string `yaml:"deltarpm_metadata_percentage,omitempty" json:"deltarpm_metadata_percentage,omitempty"`
// DeltarpmPercentage
DeltarpmPercentage string `yaml:"deltarpm_percentage,omitempty" json:"deltarpm_percentage,omitempty"`
// Description
Description string `yaml:"description,omitempty" json:"description,omitempty"`
// Enabled
Enabled bool `yaml:"enabled,omitempty" json:"enabled,omitempty"`
// Enablegroups
Enablegroups bool `yaml:"enablegroups,omitempty" json:"enablegroups,omitempty"`
// Exclude
Exclude []string `yaml:"exclude,omitempty" json:"exclude,omitempty"`
// Failovermethod
Failovermethod string `yaml:"failovermethod,omitempty" json:"failovermethod,omitempty"`
// File
File string `yaml:"file,omitempty" json:"file,omitempty"`
// Gpgcakey
Gpgcakey string `yaml:"gpgcakey,omitempty" json:"gpgcakey,omitempty"`
// Gpgcheck
Gpgcheck bool `yaml:"gpgcheck,omitempty" json:"gpgcheck,omitempty"`
// Gpgkey
Gpgkey []string `yaml:"gpgkey,omitempty" json:"gpgkey,omitempty"`
// HttpCaching
HttpCaching string `yaml:"http_caching,omitempty" json:"http_caching,omitempty"`
// Include
Include string `yaml:"include,omitempty" json:"include,omitempty"`
// Includepkgs
Includepkgs []string `yaml:"includepkgs,omitempty" json:"includepkgs,omitempty"`
// IpResolve
IpResolve string `yaml:"ip_resolve,omitempty" json:"ip_resolve,omitempty"`
// Keepalive
Keepalive bool `yaml:"keepalive,omitempty" json:"keepalive,omitempty"`
// Keepcache
Keepcache string `yaml:"keepcache,omitempty" json:"keepcache,omitempty"`
// MetadataExpire
MetadataExpire string `yaml:"metadata_expire,omitempty" json:"metadata_expire,omitempty"`
// MetadataExpireFilter
MetadataExpireFilter string `yaml:"metadata_expire_filter,omitempty" json:"metadata_expire_filter,omitempty"`
// Metalink
Metalink string `yaml:"metalink,omitempty" json:"metalink,omitempty"`
// Mirrorlist
Mirrorlist string `yaml:"mirrorlist,omitempty" json:"mirrorlist,omitempty"`
// MirrorlistExpire
MirrorlistExpire string `yaml:"mirrorlist_expire,omitempty" json:"mirrorlist_expire,omitempty"`
// ModuleHotfixes
ModuleHotfixes bool `yaml:"module_hotfixes,omitempty" json:"module_hotfixes,omitempty"`
// Name
Name string `yaml:"name,omitempty" json:"name,omitempty"`
// Password
Password string `yaml:"password,omitempty" json:"password,omitempty"`
// Priority
Priority string `yaml:"priority,omitempty" json:"priority,omitempty"`
// Protect
Protect bool `yaml:"protect,omitempty" json:"protect,omitempty"`
// Proxy
Proxy string `yaml:"proxy,omitempty" json:"proxy,omitempty"`
// ProxyPassword
ProxyPassword string `yaml:"proxy_password,omitempty" json:"proxy_password,omitempty"`
// ProxyUsername
ProxyUsername string `yaml:"proxy_username,omitempty" json:"proxy_username,omitempty"`
// RepoGpgcheck
RepoGpgcheck bool `yaml:"repo_gpgcheck,omitempty" json:"repo_gpgcheck,omitempty"`
// Reposdir
Reposdir string `yaml:"reposdir,omitempty" json:"reposdir,omitempty"`
// Retries
Retries string `yaml:"retries,omitempty" json:"retries,omitempty"`
// S3Enabled
S3Enabled bool `yaml:"s3_enabled,omitempty" json:"s3_enabled,omitempty"`
SkipIfUnavailable bool `yaml:"skip_if_unavailable,omitempty" json:"skip_if_unavailable,omitempty"`
// SslCheckCertPermissions
SslCheckCertPermissions bool `yaml:"ssl_check_cert_permissions,omitempty" json:"ssl_check_cert_permissions,omitempty"`
// Sslcacert
Sslcacert string `yaml:"sslcacert,omitempty" json:"sslcacert,omitempty"`
// Sslclientcert
Sslclientcert string `yaml:"sslclientcert,omitempty" json:"sslclientcert,omitempty"`
// Sslclientkey
Sslclientkey string `yaml:"sslclientkey,omitempty" json:"sslclientkey,omitempty"`
// Sslverify
Sslverify bool `yaml:"sslverify,omitempty" json:"sslverify,omitempty"`
// State
State string `yaml:"state,omitempty" json:"state,omitempty"`
// Throttle
Throttle string `yaml:"throttle,omitempty" json:"throttle,omitempty"`
// Timeout
Timeout string `yaml:"timeout,omitempty" json:"timeout,omitempty"`
// UiRepoidVars
UiRepoidVars string `yaml:"ui_repoid_vars,omitempty" json:"ui_repoid_vars,omitempty"`
// Username
Username string `yaml:"username,omitempty" json:"username,omitempty"`
}
type YumRepositoryResult ¶
Source Files
¶
- apt.go
- apt_key.go
- apt_repository.go
- assemble.go
- async_status.go
- blockinfile.go
- command.go
- copy.go
- cron.go
- debconf.go
- dnf.go
- dpkg_selections.go
- expect.go
- file.go
- find.go
- get_url.go
- getent.go
- git.go
- group.go
- group_by.go
- hostname.go
- iptables.go
- known_hosts.go
- lineinfile.go
- meta.go
- package.go
- package_facts.go
- pause.go
- ping.go
- pip.go
- reboot.go
- replace.go
- rpm_key.go
- service.go
- service_facts.go
- setup.go
- slurp.go
- spec.go
- stat.go
- subversion.go
- systemd.go
- sysvinit.go
- tempfile.go
- template.go
- unarchive.go
- uri.go
- user.go
- wait_for.go
- yum.go
- yum_repository.go
Click to show internal directories.
Click to hide internal directories.