Documentation
¶
Index ¶
- Variables
- type Apt
- func (r Apt) Create(ctx context.Context, name string, input AptArgs, preview bool) (string, AptState, error)
- func (r Apt) Delete(ctx context.Context, id string, props AptState) error
- func (r Apt) Diff(ctx context.Context, id string, olds AptState, news AptArgs) (p.DiffResponse, error)
- func (r Apt) Read(ctx context.Context, id string, inputs AptArgs, state AptState) (string, AptArgs, AptState, error)
- func (r Apt) Update(ctx context.Context, id string, olds AptState, news AptArgs, preview bool) (AptState, error)
- type AptArgs
- type AptState
- type Exec
- func (r Exec) Create(ctx context.Context, name string, input ExecArgs, preview bool) (string, ExecState, error)
- func (r Exec) Delete(ctx context.Context, id string, props ExecState) error
- func (r Exec) Diff(ctx context.Context, id string, olds ExecState, news ExecArgs) (p.DiffResponse, error)
- func (r Exec) Update(ctx context.Context, id string, olds ExecState, news ExecArgs, preview bool) (ExecState, error)
- type ExecArgs
- type ExecState
- type File
- func (r File) Create(ctx context.Context, name string, input FileArgs, preview bool) (string, FileState, error)
- func (r File) Delete(ctx context.Context, id string, props FileState) error
- func (r File) Diff(ctx context.Context, id string, olds FileState, news FileArgs) (p.DiffResponse, error)
- func (r File) Read(ctx context.Context, id string, inputs FileArgs, state FileState) (string, FileArgs, FileState, error)
- func (r File) Update(ctx context.Context, id string, olds FileState, news FileArgs, preview bool) (FileState, error)
- type FileArgs
- type FileEnsure
- type FileLine
- func (r FileLine) Create(ctx context.Context, name string, input FileLineArgs, preview bool) (string, FileLineState, error)
- func (r FileLine) Diff(ctx context.Context, id string, olds FileLineState, news FileLineArgs) (p.DiffResponse, error)
- func (r FileLine) Read(ctx context.Context, id string, inputs FileLineArgs, state FileLineState) (string, FileLineArgs, FileLineState, error)
- func (r FileLine) Update(ctx context.Context, id string, olds FileLineState, news FileLineArgs, ...) (FileLineState, error)
- type FileLineArgs
- type FileLineState
- type FileState
- type FileStateStat
- type Group
- func (r Group) Create(ctx context.Context, name string, input GroupArgs, preview bool) (string, GroupState, error)
- func (r Group) Delete(ctx context.Context, id string, props GroupState) error
- func (r Group) Diff(ctx context.Context, id string, olds GroupState, news GroupArgs) (p.DiffResponse, error)
- func (r Group) Read(ctx context.Context, id string, inputs GroupArgs, state GroupState) (string, GroupArgs, GroupState, error)
- func (r Group) Update(ctx context.Context, id string, olds GroupState, news GroupArgs, preview bool) (GroupState, error)
- type GroupArgs
- type GroupState
- type Package
- func (r Package) Create(ctx context.Context, name string, input PackageArgs, preview bool) (string, PackageState, error)
- func (r Package) Delete(ctx context.Context, id string, props PackageState) error
- func (r Package) Diff(ctx context.Context, id string, olds PackageState, news PackageArgs) (p.DiffResponse, error)
- func (r Package) Read(ctx context.Context, id string, inputs PackageArgs, state PackageState) (string, PackageArgs, PackageState, error)
- func (r Package) Update(ctx context.Context, id string, olds PackageState, news PackageArgs, ...) (PackageState, error)
- type PackageArgs
- type PackageState
- type Service
- func (r Service) Create(ctx context.Context, name string, input ServiceArgs, preview bool) (string, ServiceState, error)
- func (r Service) Delete(ctx context.Context, id string, props ServiceState) error
- func (r Service) Diff(ctx context.Context, id string, olds ServiceState, news ServiceArgs) (p.DiffResponse, error)
- func (r Service) Read(ctx context.Context, id string, inputs ServiceArgs, state ServiceState) (string, ServiceArgs, ServiceState, error)
- func (r Service) Update(ctx context.Context, id string, olds ServiceState, news ServiceArgs, ...) (ServiceState, error)
- type ServiceArgs
- type ServiceState
- type SystemdService
- func (r SystemdService) Create(ctx context.Context, name string, input SystemdServiceArgs, preview bool) (string, SystemdServiceState, error)
- func (r SystemdService) Delete(ctx context.Context, id string, props SystemdServiceState) error
- func (r SystemdService) Diff(ctx context.Context, id string, olds SystemdServiceState, ...) (p.DiffResponse, error)
- func (r SystemdService) Read(ctx context.Context, id string, inputs SystemdServiceArgs, ...) (string, SystemdServiceArgs, SystemdServiceState, error)
- func (r SystemdService) Update(ctx context.Context, id string, olds SystemdServiceState, ...) (SystemdServiceState, error)
- type SystemdServiceArgs
- type SystemdServiceState
- type User
- func (r User) Create(ctx context.Context, name string, input UserArgs, preview bool) (string, UserState, error)
- func (r User) Delete(ctx context.Context, id string, props UserState) error
- func (r User) Diff(ctx context.Context, id string, olds UserState, news UserArgs) (p.DiffResponse, error)
- func (r User) Read(ctx context.Context, id string, inputs UserArgs, state UserState) (string, UserArgs, UserState, error)
- func (r User) Update(ctx context.Context, id string, olds UserState, news UserArgs, preview bool) (UserState, error)
- type UserArgs
- type UserState
Constants ¶
This section is empty.
Variables ¶
View Source
var Tracer = otel.Tracer("mid/provider/resource")
Functions ¶
This section is empty.
Types ¶
type Apt ¶ added in v0.0.3
type Apt struct{}
type AptArgs ¶ added in v0.0.3
type AptArgs struct {
Name *string `pulumi:"name,optional"`
Names *[]string `pulumi:"names,optional"`
Ensure *string `pulumi:"ensure,optional"`
AllowChangeHeldPackages *bool `pulumi:"allowChangeHeldPackages,optional"`
AllowDowngrade *bool `pulumi:"allowDowngrade,optional"`
AllowUnauthenticated *bool `pulumi:"allowUnauthenticated,optional"`
Autoclean *bool `pulumi:"autoclean,optional"`
Autoremove *bool `pulumi:"autoremove,optional"`
CacheValidTime *int `pulumi:"cacheValidTime,optional"`
Clean *bool `pulumi:"clean,optional"`
Deb *string `pulumi:"deb,optional"`
DefaultRelease *string `pulumi:"defaultRelease,optional"`
DpkgOptions *string `pulumi:"dpkgOptions,optional"`
FailOnAutoremove *bool `pulumi:"failOnAutoremove,optional"`
Force *bool `pulumi:"force,optional"`
ForceAptGet *bool `pulumi:"forceAptGet,optional"`
InstallRecommends *bool `pulumi:"installRecommends,optional"`
LockTimeout *int `pulumi:"lockTimeout,optional"`
OnlyUpgrade *bool `pulumi:"onlyUpgrade,optional"`
PolicyRcD *int `pulumi:"policyRcD,optional"`
Purge *bool `pulumi:"purge,optional"`
UpdateCache *bool `pulumi:"updateCache,optional"`
UpdateCacheRetries *int `pulumi:"updateCacheRetries,optional"`
UpdateCacheRetryMaxDelay *int `pulumi:"updateCacheRetryMaxDelay,optional"`
Upgrade *string `pulumi:"upgrade,optional"`
Triggers *types.TriggersInput `pulumi:"triggers,optional"`
}
type AptState ¶ added in v0.0.3
type AptState struct {
AptArgs
Triggers types.TriggersOutput `pulumi:"triggers"`
}
type Exec ¶ added in v0.0.3
type Exec struct{}
type ExecArgs ¶ added in v0.0.3
type ExecArgs struct {
Create types.ExecCommand `pulumi:"create"`
Update *types.ExecCommand `pulumi:"update,optional"`
Delete *types.ExecCommand `pulumi:"delete,optional"`
ExpandArgumentVars *bool `pulumi:"expandArgumentVars,optional"`
DeleteBeforeReplace *bool `pulumi:"deleteBeforeReplace,optional"`
Dir *string `pulumi:"dir,optional"`
Environment *map[string]string `pulumi:"environment,optional"`
Logging *types.ExecLogging `pulumi:"logging,optional"`
Triggers *types.TriggersInput `pulumi:"triggers,optional"`
}
type ExecState ¶ added in v0.0.3
type ExecState struct {
ExecArgs
Stdout string `pulumi:"stdout"`
Stderr string `pulumi:"stderr"`
Triggers types.TriggersOutput `pulumi:"triggers"`
}
type FileArgs ¶
type FileArgs struct {
AccessTime *string `pulumi:"accessTime,optional"`
AccessTimeFormat *string `pulumi:"accessTimeFormat,optional"`
Attributes *string `pulumi:"attributes,optional"`
Backup *bool `pulumi:"backup,optional"`
Checksum *string `pulumi:"checksum,optional"`
Content *string `pulumi:"content,optional"`
DirectoryMode *string `pulumi:"directoryMode,optional"`
Ensure *FileEnsure `pulumi:"ensure,optional"`
Follow *bool `pulumi:"follow,optional"`
Force *bool `pulumi:"force,optional"`
Group *string `pulumi:"group,optional"`
LocalFollow *bool `pulumi:"localFollow,optional"`
Mode *string `pulumi:"mode,optional"`
ModificationTime *string `pulumi:"modificationTime,optional"`
ModificationTimeFormat *string `pulumi:"modificationTimeFormat,optional"`
Owner *string `pulumi:"owner,optional"`
Path string `pulumi:"path"`
Recurse *bool `pulumi:"recurse,optional"`
RemoteSource *string `pulumi:"remoteSource,optional"`
Selevel *string `pulumi:"selevel,optional"`
Serole *string `pulumi:"serole,optional"`
Setype *string `pulumi:"setype,optional"`
Seuser *string `pulumi:"seuser,optional"`
Source *ptypes.AssetOrArchive `pulumi:"source,optional"`
UnsafeWrites *bool `pulumi:"unsafeWrites,optional"`
Validate *string `pulumi:"validate,optional"`
Triggers *types.TriggersInput `pulumi:"triggers,optional"`
}
type FileEnsure ¶
type FileEnsure string
const ( FileEnsureAbsent FileEnsure = "absent" FileEnsureDirectory FileEnsure = "directory" FileEnsureFile FileEnsure = "file" FileEnsureHard FileEnsure = "hard" FileEnsureLink FileEnsure = "link" FileEnsureTouch FileEnsure = "touch" )
type FileLine ¶ added in v0.0.3
type FileLine struct{}
func (FileLine) Create ¶ added in v0.0.3
func (r FileLine) Create( ctx context.Context, name string, input FileLineArgs, preview bool, ) (string, FileLineState, error)
func (FileLine) Diff ¶ added in v0.0.3
func (r FileLine) Diff( ctx context.Context, id string, olds FileLineState, news FileLineArgs, ) (p.DiffResponse, error)
func (FileLine) Read ¶ added in v0.0.3
func (r FileLine) Read( ctx context.Context, id string, inputs FileLineArgs, state FileLineState, ) (string, FileLineArgs, FileLineState, error)
func (FileLine) Update ¶ added in v0.0.3
func (r FileLine) Update( ctx context.Context, id string, olds FileLineState, news FileLineArgs, preview bool, ) (FileLineState, error)
type FileLineArgs ¶ added in v0.0.3
type FileLineArgs struct {
Ensure *string `pulumi:"ensure,optional"`
Path string `pulumi:"path"`
Backrefs *bool `pulumi:"backrefs,optional"`
Backup *bool `pulumi:"backup,optional"`
Create *bool `pulumi:"create,optional"`
FirstMatch *bool `pulumi:"firstMatch,optional"`
InsertBefore *string `pulumi:"insertBefore,optional"`
InsertAfter *string `pulumi:"insertAfter,optional"`
Line *string `pulumi:"line,optional"`
Regexp *string `pulumi:"regexp,optional"`
SearchString *string `pulumi:"searchString,optional"`
UnsafeWrites *bool `pulumi:"unsafeWrites,optional"`
Validate *string `pulumi:"validate,optional"`
Triggers *types.TriggersInput `pulumi:"triggers,optional"`
}
type FileLineState ¶ added in v0.0.3
type FileLineState struct {
FileLineArgs
Triggers types.TriggersOutput `pulumi:"triggers"`
}
type FileState ¶
type FileState struct {
FileArgs
BackupFile *string `pulumi:"backupFile,optional"`
Stat FileStateStat `pulumi:"stat"`
Triggers types.TriggersOutput `pulumi:"triggers"`
}
type FileStateStat ¶
type FileStateStat struct {
Atime float64 `pulumi:"atime" json:"atime"`
Attributes []string `pulumi:"attributes" json:"attributes"`
Charset string `pulumi:"charset" json:"charset"`
Checksum string `pulumi:"checksum" json:"checksum"`
Ctime float64 `pulumi:"ctime" json:"ctime"`
Dev int `pulumi:"dev" json:"dev"`
Executable bool `pulumi:"executable" json:"executable"`
Exists bool `pulumi:"exists" json:"exists"`
Gid int `pulumi:"gid" json:"gid"`
GrName string `pulumi:"gr_name" json:"gr_name"`
Inode int `pulumi:"inode" json:"inode"`
Isblk bool `pulumi:"isblk" json:"isblk"`
Ischr bool `pulumi:"ischr" json:"ischr"`
Isdir bool `pulumi:"isdir" json:"isdir"`
Isfifo bool `pulumi:"isfifo" json:"isfifo"`
Isgid bool `pulumi:"isgid" json:"isgid"`
Islnk bool `pulumi:"islnk" json:"islnk"`
Isreg bool `pulumi:"isreg" json:"isreg"`
Issock bool `pulumi:"issock" json:"issock"`
Isuid bool `pulumi:"isuid" json:"isuid"`
LnkSource string `pulumi:"lnkSource" json:"lnk_source"`
LnkTarget string `pulumi:"lnkTarget" json:"lnk_target"`
Mimetype string `pulumi:"mimetype" json:"mimetype"`
Mode string `pulumi:"mode" json:"mode"`
Mtime float64 `pulumi:"mtime" json:"mtime"`
Nlink int `pulumi:"nlink" json:"nlink"`
Path string `pulumi:"path" json:"path"`
PwName string `pulumi:"pwName" json:"pw_name"`
Readable bool `pulumi:"readable" json:"readable"`
Rgrp bool `pulumi:"rgrp" json:"rgrp"`
Roth bool `pulumi:"roth" json:"roth"`
Rusr bool `pulumi:"rusr" json:"rusr"`
Size int `pulumi:"size" json:"size"`
Uid int `pulumi:"uid" json:"uid"`
Version string `pulumi:"version" json:"version"`
Wgrp bool `pulumi:"wgrp" json:"wgrp"`
Woth bool `pulumi:"woth" json:"woth"`
Writeable bool `pulumi:"writeable" json:"writeable"`
Wusr bool `pulumi:"wusr" json:"wusr"`
Xgrp bool `pulumi:"xgrp" json:"xgrp"`
Xoth bool `pulumi:"xoth" json:"xoth"`
Xusr bool `pulumi:"xusr" json:"xusr"`
}
type Group ¶ added in v0.0.4
type Group struct{}
func (Group) Diff ¶ added in v0.0.4
func (r Group) Diff( ctx context.Context, id string, olds GroupState, news GroupArgs, ) (p.DiffResponse, error)
type GroupArgs ¶ added in v0.0.4
type GroupArgs struct {
Name string `pulumi:"name"`
Ensure *string `pulumi:"ensure,optional"`
Force *bool `pulumi:"force,optional"`
Gid *int `pulumi:"gid,optional"`
GidMax *int `pulumi:"gidMax,optional"`
GidMin *int `pulumi:"gidMin,optional"`
Local *bool `pulumi:"local,optional"`
NonUnique *bool `pulumi:"nonUnique,optional"`
System *bool `pulumi:"system,optional"`
Triggers *types.TriggersInput `pulumi:"triggers,optional"`
}
type GroupState ¶ added in v0.0.4
type GroupState struct {
GroupArgs
Triggers types.TriggersOutput `pulumi:"triggers"`
}
type Package ¶
type Package struct{}
func (Package) Create ¶
func (r Package) Create( ctx context.Context, name string, input PackageArgs, preview bool, ) (string, PackageState, error)
func (Package) Diff ¶
func (r Package) Diff( ctx context.Context, id string, olds PackageState, news PackageArgs, ) (p.DiffResponse, error)
func (Package) Read ¶
func (r Package) Read( ctx context.Context, id string, inputs PackageArgs, state PackageState, ) (string, PackageArgs, PackageState, error)
func (Package) Update ¶
func (r Package) Update( ctx context.Context, id string, olds PackageState, news PackageArgs, preview bool, ) (PackageState, error)
type PackageArgs ¶
type PackageArgs struct {
Name *string `pulumi:"name,optional"`
Names *[]string `pulumi:"names,optional"`
Ensure *string `pulumi:"ensure,optional"`
Triggers *types.TriggersInput `pulumi:"triggers,optional"`
}
type PackageState ¶
type PackageState struct {
PackageArgs
Ensure string `pulumi:"ensure"`
Triggers types.TriggersOutput `pulumi:"triggers"`
}
type Service ¶
type Service struct{}
func (Service) Create ¶
func (r Service) Create( ctx context.Context, name string, input ServiceArgs, preview bool, ) (string, ServiceState, error)
func (Service) Diff ¶
func (r Service) Diff( ctx context.Context, id string, olds ServiceState, news ServiceArgs, ) (p.DiffResponse, error)
func (Service) Read ¶
func (r Service) Read( ctx context.Context, id string, inputs ServiceArgs, state ServiceState, ) (string, ServiceArgs, ServiceState, error)
func (Service) Update ¶
func (r Service) Update( ctx context.Context, id string, olds ServiceState, news ServiceArgs, preview bool, ) (ServiceState, error)
type ServiceArgs ¶
type ServiceArgs struct {
Arguments *string `pulumi:"arguments,optional"`
Enabled *bool `pulumi:"enabled,optional"`
Name string `pulumi:"name"`
Pattern *string `pulumi:"pattern,optional"`
Runlevel *string `pulumi:"runlevel,optional"`
Sleep *int `pulumi:"sleep,optional"`
State *string `pulumi:"state,optional"`
Use *string `pulumi:"use,optional"`
Triggers *types.TriggersInput `pulumi:"triggers,optional"`
}
type ServiceState ¶
type ServiceState struct {
ServiceArgs
Triggers types.TriggersOutput `pulumi:"triggers"`
}
type SystemdService ¶ added in v0.0.3
type SystemdService struct{}
func (SystemdService) Create ¶ added in v0.0.3
func (r SystemdService) Create( ctx context.Context, name string, input SystemdServiceArgs, preview bool, ) (string, SystemdServiceState, error)
func (SystemdService) Delete ¶ added in v0.0.3
func (r SystemdService) Delete( ctx context.Context, id string, props SystemdServiceState, ) error
func (SystemdService) Diff ¶ added in v0.0.3
func (r SystemdService) Diff( ctx context.Context, id string, olds SystemdServiceState, news SystemdServiceArgs, ) (p.DiffResponse, error)
func (SystemdService) Read ¶ added in v0.0.3
func (r SystemdService) Read( ctx context.Context, id string, inputs SystemdServiceArgs, state SystemdServiceState, ) (string, SystemdServiceArgs, SystemdServiceState, error)
func (SystemdService) Update ¶ added in v0.0.3
func (r SystemdService) Update( ctx context.Context, id string, olds SystemdServiceState, news SystemdServiceArgs, preview bool, ) (SystemdServiceState, error)
type SystemdServiceArgs ¶ added in v0.0.3
type SystemdServiceArgs struct {
DaemonReexec *bool `pulumi:"daemonReexec,optional"`
DaemonReload *bool `pulumi:"daemonReload,optional"`
Enabled *bool `pulumi:"enabled,optional"`
Force *bool `pulumi:"force,optional"`
Masked *bool `pulumi:"masked,optional"`
Name *string `pulumi:"name,optional"`
NoBlock *bool `pulumi:"noBlock,optional"`
Scope *string `pulumi:"scope,optional"`
Ensure *string `pulumi:"ensure,optional"` // TODO: enum for this?
Triggers *types.TriggersInput `pulumi:"triggers,optional"`
}
type SystemdServiceState ¶ added in v0.0.3
type SystemdServiceState struct {
SystemdServiceArgs
Triggers types.TriggersOutput `pulumi:"triggers"`
}
type User ¶ added in v0.0.4
type User struct{}
type UserArgs ¶ added in v0.0.4
type UserArgs struct {
// TODO: support more features
Name string `pulumi:"name"`
Ensure *string `pulumi:"ensure,optional"`
GroupsExclusive *bool `pulumi:"groupsExclusive,optional"`
Comment *string `pulumi:"comment,optional"`
Local *bool `pulumi:"local,optional"`
Group *string `pulumi:"group,optional"`
Groups *[]string `pulumi:"groups,optional"`
Home *string `pulumi:"home,optional"`
Force *bool `pulumi:"force,optional"`
ManageHome *bool `pulumi:"manageHome,optional"`
NonUnique *bool `pulumi:"nonUnique,optional"`
Password *string `pulumi:"password,optional"`
Shell *string `pulumi:"shell,optional"`
Skeleton *string `pulumi:"skeleton,optional"`
System *bool `pulumi:"system,optional"`
Uid *int `pulumi:"uid,optional"`
UidMax *int `pulumi:"uidMax,optional"`
UidMin *int `pulumi:"uidMin,optional"`
Umask *string `pulumi:"umask,optional"`
UpdatePassword *string `pulumi:"updatePassword,optional"`
Triggers *types.TriggersInput `pulumi:"triggers,optional"`
}
type UserState ¶ added in v0.0.4
type UserState struct {
UserArgs
Triggers types.TriggersOutput `pulumi:"triggers"`
}
Click to show internal directories.
Click to hide internal directories.