C# 클래스 Ntent.PowerShell.Providers.Consul.ConsulProvider

상속: System.Management.Automation.Provider.NavigationCmdletProvider
파일 보기 프로젝트 열기: ntent-ad/consul-ps-provider

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