Documentation
¶
Index ¶
- type AllDiffPaths
- type Attributes
- type BaseEnvPaths
- type BaseEnvironmentVariables
- type BaseGenericPathsCollection
- type BaseGroupName
- type BaseIsRecursive
- type BaseIsRename
- type BasePathModifiers
- type BasePathVerifiers
- type BasePathsModifiersApply
- type BaseSourceDestination
- type BaseSymbolicLinks
- type BaseUserNamePlusGroupName
- type CachesRefresh
- type ChangeGroup
- type ChmodCommand
- type Chown
- type CliConfig
- type CliRunner
- type CopyMoveStructure
- type CopyMoveStructuresOptions
- type Duration
- type DynamicPaths
- type EnvironmentPaths
- type EnvironmentPathsUsingFilesCollection
- type EnvironmentPathsUsingGenericPaths
- type EnvironmentVariable
- type FilesSelector
- type GenericPathsCollection
- type LocationCollection
- type PathModifier
- type PathVar
- type PathVerifier
- type PrePostStatePathModifiers
- type Processors
- type SimilarPaths
- type SymbolicLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllDiffPaths ¶
type AllDiffPaths struct { Paths []string `json:"Locations"` IsNormalizeApply bool `json:"IsNormalizeApply"` // contains filtered or unexported fields }
func (*AllDiffPaths) FlatPaths ¶ added in v0.1.2
func (allDiffPaths *AllDiffPaths) FlatPaths() []string
func (*AllDiffPaths) HasAnyItem ¶ added in v0.1.2
func (allDiffPaths *AllDiffPaths) HasAnyItem() bool
func (*AllDiffPaths) IsEmpty ¶ added in v0.1.2
func (allDiffPaths *AllDiffPaths) IsEmpty() bool
func (*AllDiffPaths) LazyFlatPaths ¶ added in v0.1.2
func (allDiffPaths *AllDiffPaths) LazyFlatPaths() []string
func (*AllDiffPaths) Length ¶ added in v0.1.2
func (allDiffPaths *AllDiffPaths) Length() int
type Attributes ¶
type BaseEnvPaths ¶
type BaseEnvPaths struct {
EnvPaths []string `json:"EnvPaths,omitempty"`
}
type BaseEnvironmentVariables ¶
type BaseEnvironmentVariables struct {
EnvVars []EnvironmentVariable `json:"EnvVars,omitempty"`
}
type BaseGenericPathsCollection ¶
type BaseGenericPathsCollection struct {
GenericPathsCollection *GenericPathsCollection `json:"GenericPathsCollection,omitempty"`
}
type BaseGroupName ¶
type BaseGroupName struct {
GroupName string `json:"GroupName,omitempty"` // Not define or empty string or * means keeping the existing one
}
type BaseIsRecursive ¶
type BaseIsRecursive struct {
IsRecursive bool `json:"IsRecursive"`
}
type BaseIsRename ¶
type BaseIsRename struct {
IsRename bool `json:"IsRename"`
}
type BasePathModifiers ¶
type BasePathModifiers struct {
PathModifiers []PathModifier `json:"PathModifiers,omitempty"`
}
type BasePathVerifiers ¶
type BasePathVerifiers struct {
PathVerifiers []PathVerifier `json:"PathVerifiers,omitempty"`
}
type BasePathsModifiersApply ¶
type BasePathsModifiersApply struct {
PathModifiersByDefinition []PathModifier `json:"PathModifiersByDefinition,omitempty"`
}
type BaseSourceDestination ¶
type BaseSymbolicLinks ¶
type BaseSymbolicLinks struct {
SymbolicLinks []SymbolicLink `json:"SymbolicLinks,omitempty"`
}
type BaseUserNamePlusGroupName ¶
type BaseUserNamePlusGroupName struct { BaseGroupName UserName *string `json:"UserName,omitempty"` // Not define or empty string or * means keeping the existing one }
type CachesRefresh ¶
type CachesRefresh struct {
Duration Duration `json:"Duration"`
}
type ChangeGroup ¶
type ChangeGroup struct { BaseIsRecursive GroupName string `json:"GroupName,omitempty"` }
type ChmodCommand ¶
type Chown ¶
type Chown struct { BaseIsRecursive BaseUserNamePlusGroupName }
type CliRunner ¶
type CliRunner struct { FilesSelector []FilesSelector `json:"FilesSelector,omitempty"` Processors []Processors `json:"Processors,omitempty"` }
type CopyMoveStructure ¶
type CopyMoveStructure struct { BasePathModifiers BaseSourceDestination Rename *string `json:"Rename,omitempty"` Options *CopyMoveStructuresOptions `json:"Options,omitempty"` }
type CopyMoveStructuresOptions ¶
type CopyMoveStructuresOptions struct { BasePathModifiers BaseIsRename IsClearBeforeStart bool `json:"IsClearBeforeStart"` IsMove bool `json:"IsMove"` PermissionOptions string `json:"PermissionOptions,omitempty"` OverwriteConfig string `json:"OverwriteConfig,omitempty"` }
type DynamicPaths ¶
type DynamicPaths struct { Vars []PathVar `json:"Vars,omitempty"` AllDiffPaths []AllDiffPaths `json:"AllDiffPaths,omitempty"` // contains filtered or unexported fields }
func (*DynamicPaths) EachItemsLength ¶ added in v0.1.2
func (dynamicPaths *DynamicPaths) EachItemsLength() int
func (*DynamicPaths) FlatPaths ¶ added in v0.1.2
func (dynamicPaths *DynamicPaths) FlatPaths() []string
FlatPaths don't apply PathVar at this moment, feature is complicated and not implemented yet.
Current flat paths only returns all the paths combined.
func (*DynamicPaths) IsEmpty ¶ added in v0.1.2
func (dynamicPaths *DynamicPaths) IsEmpty() bool
func (*DynamicPaths) LazyFlatPaths ¶ added in v0.1.2
func (dynamicPaths *DynamicPaths) LazyFlatPaths() []string
func (*DynamicPaths) Length ¶ added in v0.1.2
func (dynamicPaths *DynamicPaths) Length() int
type EnvironmentPaths ¶ added in v0.1.2
type EnvironmentPathsUsingFilesCollection ¶ added in v0.1.2
type EnvironmentPathsUsingFilesCollection struct { ModifyAs reqtype.Request `json:"ModifyAs"` FilesCollection *LocationCollection `json:"LocationCollection,omitempty"` }
type EnvironmentPathsUsingGenericPaths ¶ added in v0.1.2
type EnvironmentPathsUsingGenericPaths struct { ModifyAs reqtype.Request `json:"ModifyAs"` GenericPaths *GenericPathsCollection `json:"GenericPathsCollection,omitempty"` }
type EnvironmentVariable ¶
type FilesSelector ¶
type FilesSelector struct { Path string `json:"Path"` Filters []string `json:"Filters,omitempty"` SkipFilters []string `json:"SkipFilters,omitempty"` Extensions []string `json:"Extensions,omitempty"` Processors []string `json:"Processors,omitempty"` Attributes *Attributes `json:"Attributes,omitempty"` }
type GenericPathsCollection ¶
type GenericPathsCollection struct { SimilarPaths []SimilarPaths `json:"SimilarPaths,omitempty"` AllDiffPaths []AllDiffPaths `json:"AllDiffPaths,omitempty"` DynamicPaths *DynamicPaths `json:"DynamicPaths,omitempty"` // contains filtered or unexported fields }
func (*GenericPathsCollection) HasAnyItem ¶ added in v0.1.2
func (receiver *GenericPathsCollection) HasAnyItem() bool
func (*GenericPathsCollection) IsEmpty ¶ added in v0.1.2
func (receiver *GenericPathsCollection) IsEmpty() bool
func (*GenericPathsCollection) Length ¶ added in v0.1.2
func (receiver *GenericPathsCollection) Length() int
Length of len(receiver.SimilarPaths) + len(receiver.AllDiffPaths) + items in DynamicPaths (not all specific paths)
type LocationCollection ¶ added in v0.1.2
type LocationCollection struct { Locations []string `json:"Locations,omitempty"` IsNormalizeApply bool `json:"IsNormalizeApply"` }
func (*LocationCollection) HasAnyItem ¶ added in v0.1.2
func (receiver *LocationCollection) HasAnyItem() bool
func (*LocationCollection) IsEmpty ¶ added in v0.1.2
func (receiver *LocationCollection) IsEmpty() bool
func (*LocationCollection) Length ¶ added in v0.1.2
func (receiver *LocationCollection) Length() int
type PathModifier ¶
type PathModifier struct { chmodins.BaseRwxInstructions GenericPathsCollection *GenericPathsCollection `json:"GenericPathsCollection,omitempty"` ChmodCommand *ChmodCommand `json:"ChmodCommand,omitempty"` Chown *Chown `json:"Chown,omitempty"` ChangeGroup *ChangeGroup `json:"ChangeGroup,omitempty"` }
type PathVerifier ¶
type PathVerifier struct { BaseUserNamePlusGroupName chmodins.BaseRwxInstructions Path string `json:"Path"` }
type PrePostStatePathModifiers ¶
type PrePostStatePathModifiers struct { PrePathModifiers []PathModifier `json:"PrePathModifiers,omitempty"` PostPathModifiers []PathModifier `json:"PostPathModifiers,omitempty"` }
type Processors ¶
type SimilarPaths ¶
type SimilarPaths struct { RootPath string `json:"RootPath"` RelativePaths []string `json:"RelativePaths"` IsNormalizeApply bool `json:"IsNormalizeApply"` }
func (*SimilarPaths) FlatPaths ¶ added in v0.1.2
func (s *SimilarPaths) FlatPaths(isIncludeRootAsClone bool) []string
func (*SimilarPaths) HasAnyItem ¶ added in v0.1.2
func (s *SimilarPaths) HasAnyItem() bool
func (*SimilarPaths) IsEmpty ¶ added in v0.1.2
func (s *SimilarPaths) IsEmpty() bool
func (*SimilarPaths) Length ¶ added in v0.1.2
func (s *SimilarPaths) Length() int
Source Files
¶
- AllDiffPaths.go
- Attributes.go
- BaseEnvPaths.go
- BaseEnvironmentVariables.go
- BaseGenericPathsCollection.go
- BaseGroupName.go
- BaseIsRecursive.go
- BaseIsRename.go
- BasePathModifiers.go
- BasePathVerifiers.go
- BaseSourceDestination.go
- BaseSymbolicLinks.go
- BaseUserNamePlusGroupName.go
- CachesRefresh.go
- ChangeGroup.go
- ChmodCommand.go
- Chown.go
- CliConfig.go
- CliRunner.go
- CopyMoveStructure.go
- CopyMoveStructuresOptions.go
- Duration.go
- DynamicPaths.go
- EnvironmentVariable.go
- FilesSelector.go
- GenericPathsCollection.go
- LocationCollection.go
- PathModifier.go
- PathVar.go
- PathVerifier.go
- PathsChmodsApply.go
- PrePostStatePathModifiers.go
- Processors.go
- SimilarPaths.go
- SymbolicLink.go
Click to show internal directories.
Click to hide internal directories.