pathinsfmt

package
v0.1.1-pre Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 Attributes struct {
	IsRecursive    bool           `json:"IsRecursive"`
	IsCache        bool           `json:"IsCache"`
	IsRedis        bool           `json:"IsRedis"`
	IsWriteToFiles bool           `json:"IsWriteToFiles"`
	CacheFilePath  string         `json:"CacheFilePath"`
	CachesRefresh  *CachesRefresh `json:"CachesRefresh,omitempty"`
}

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 BaseSourceDestination struct {
	Source      string `json:"Source"`
	Destination string `json:"Destination"`
}
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 ChmodCommand struct {
	Condition *chmodins.Condition `json:"Condition,omitempty"`
	Commands  []string            `json:"Commands,omitempty"`
}

type Chown

type CliConfig

type CliConfig struct {
	CliRunner *CliRunner `json:"CliRunner,omitempty"`
}

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 Duration

type Duration struct {
	Value      int    `json:"Value"`
	Quantifier string `json:"Quantifier"`
}

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 EnvironmentPaths struct {
	ModifyAs reqtype.Request `json:"ModifyAs"`
	Paths    []string        `json:"Locations,omitempty"`
}

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 EnvironmentVariable struct {
	Name  string `json:"Name,omitempty"`
	Value string `json:"Value,omitempty"`
}

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 PathVar

type PathVar struct {
	VarName string `json:"VarName"`
	Value   string `json:"Value"`
	IsRegex bool   `json:"IsRegex"`
}

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 Processors struct {
	Name          string   `json:"Name"`
	IsEnabled     bool     `json:"IsEnabled"`
	ProcessorPath string   `json:"ProcessorPath"`
	Exe           string   `json:"Exe"`
	Args          []string `json:"Args,omitempty"`
}

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
type SymbolicLink struct {
	Src           string `json:"Src"`
	Dst           string `json:"Dst"`
	IsForce       bool   `json:"IsForce"`
	IsSkipOnError bool   `json:"IsSkipOnError"`
}

Jump to

Keyboard shortcuts

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