C# Класс Ntent.PowerShell.Providers.Consul.ConsulProvider

Наследование: System.Management.Automation.Provider.NavigationCmdletProvider
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
ChunkPath string[]
ConsulProvider System
IsSamePath bool
MakeKey string
NewCache void
NormalizePath string
PathIsDrive bool
PathsFromWildCard string[]
RemoveDriveFromPath string
TrimEndSeparator string
TrimSeparator string
TrimStartSeparator string

Защищенные методы

Метод Описание
CopyItem ( string path, string copyPath, bool recurse ) : void
CopyItem ( string path, string copyPath, bool recurse, bool deleteSrc ) : void
ExpandPath ( string path ) : string[]
GetChildItems ( string path, bool recurse ) : void
GetItem ( string path ) : void
HasChildItems ( string path ) : bool
IsItemContainer ( string path ) : bool

Checks whether the specified path is a "container". In Consul, there is really no notion of container other than by convention the key ends in a trailing slash. when navigating the PS provider, we don't want to force people to have to end paths with a trailing slash, so we will by default be lenient on whether the path requested ends with a trailing slash.

IsItemContainer ( string path, bool exact ) : bool

Checks whether the specified path is a "container". If the 'exact' parameter is passed as true, the path must end in a trailing slash. This form is called from the Get-Item and Get-ChildItems methods when sending back whether that item is a container. This must be done because in Consul you can have both ./container and ./container/ where the former is not a container, but the latter is.

IsValidPath ( string path ) : bool
ItemExists ( string path ) : bool
MoveItem ( string path, string destination ) : void
NewDrive ( System.Management.Automation.PSDriveInfo drive ) : System.Management.Automation.PSDriveInfo
NewItem ( string path, string itemTypeName, object newItemValue ) : void
RemoveItem ( string path, bool recurse ) : void
SetItem ( string path, object value ) : void

Приватные методы

Метод Описание
ChunkPath ( string path ) : string[]

Breaks up the path into individual elements.

ConsulProvider ( ) : System
IsSamePath ( string path1, string path2 ) : bool
MakeKey ( string path, string action ) : string
NewCache ( ) : void
NormalizePath ( string path ) : string

Adapts the path, making sure the correct path separator character is used.

PathIsDrive ( string path ) : bool

Checks if a given path is actually a drive name.

PathsFromWildCard ( string path ) : string[]
RemoveDriveFromPath ( string path ) : string

Ensures that the drive is removed from the specified path

TrimEndSeparator ( string path ) : string
TrimSeparator ( string path ) : string
TrimStartSeparator ( string path ) : string

Описание методов

CopyItem() защищенный Метод

protected CopyItem ( string path, string copyPath, bool recurse ) : void
path string
copyPath string
recurse bool
Результат void

CopyItem() защищенный Метод

protected CopyItem ( string path, string copyPath, bool recurse, bool deleteSrc ) : void
path string
copyPath string
recurse bool
deleteSrc bool
Результат void

ExpandPath() защищенный Метод

protected ExpandPath ( string path ) : string[]
path string
Результат string[]

GetChildItems() защищенный Метод

protected GetChildItems ( string path, bool recurse ) : void
path string
recurse bool
Результат void

GetItem() защищенный Метод

protected GetItem ( string path ) : void
path string
Результат void

HasChildItems() защищенный Метод

protected HasChildItems ( string path ) : bool
path string
Результат bool

IsItemContainer() защищенный Метод

Checks whether the specified path is a "container". In Consul, there is really no notion of container other than by convention the key ends in a trailing slash. when navigating the PS provider, we don't want to force people to have to end paths with a trailing slash, so we will by default be lenient on whether the path requested ends with a trailing slash.
protected IsItemContainer ( string path ) : bool
path string
Результат bool

IsItemContainer() защищенный Метод

Checks whether the specified path is a "container". If the 'exact' parameter is passed as true, the path must end in a trailing slash. This form is called from the Get-Item and Get-ChildItems methods when sending back whether that item is a container. This must be done because in Consul you can have both ./container and ./container/ where the former is not a container, but the latter is.
protected IsItemContainer ( string path, bool exact ) : bool
path string
exact bool
Результат bool

IsValidPath() защищенный Метод

protected IsValidPath ( string path ) : bool
path string
Результат bool

ItemExists() защищенный Метод

protected ItemExists ( string path ) : bool
path string
Результат bool

MoveItem() защищенный Метод

protected MoveItem ( string path, string destination ) : void
path string
destination string
Результат void

NewDrive() защищенный Метод

protected NewDrive ( System.Management.Automation.PSDriveInfo drive ) : System.Management.Automation.PSDriveInfo
drive System.Management.Automation.PSDriveInfo
Результат System.Management.Automation.PSDriveInfo

NewItem() защищенный Метод

protected NewItem ( string path, string itemTypeName, object newItemValue ) : void
path string
itemTypeName string
newItemValue object
Результат void

RemoveItem() защищенный Метод

protected RemoveItem ( string path, bool recurse ) : void
path string
recurse bool
Результат void

SetItem() защищенный Метод

protected SetItem ( string path, object value ) : void
path string
value object
Результат void