adspath

package
v0.0.0-...-153c760 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LDAP is the scheme of the LDAP namespace provider.
	LDAP = "LDAP"
	// WinNT is the scheme of the WinNT namespace provider.
	WinNT = "WinNT"
	// IIS is the scheme of the IIS namespace provider.
	IIS = "IIS"
	// GC is the scheme of the GC namespace provider.
	GC = "GC"
)

Variables

View Source
var (
	// ErrFragmentNotPermitted is returned when an attempt is made to parse a
	// path that has a URL fragment. URL fragments are not permitted in ADS paths.
	ErrFragmentNotPermitted = errors.New("The URL contains a fragment, which is not permitted within Active Directory paths.")
	// ErrUserInfoNotPermitted is returned when an attempt is made to parse a
	// path that has a user information section. User info cannot be specified in
	// ADS paths.
	ErrUserInfoNotPermitted = errors.New("The URL contains a username or password, which is not permitted within Active Directory paths.")
)

Functions

This section is empty.

Types

type Path

type Path struct {
	// Scheme indicates the type of namespace provider used to access the path.
	// It is sometimes also referred to as the protocol or as the ProgID.
	//
	// It is important to note that many namespace providers require a
	// case-sensitive match of the scheme.
	Scheme string
	// Host may be the computer, domain, or nothing for serverless binding. It may
	// be in the form "host" or "host:port".
	Host string
	// Path is the address of the resource within the namespace. The rules for its
	// interpretation vary between schemes.
	Path string
}

Path represents the location of an Active Directory Services object.

Paths are commonly represented in the form of a URL.

func Parse

func Parse(rawpath string) (path *Path, err error)

Parse will attempt to interpret the raw path provided as a string in URL form.

func (*Path) String

func (p *Path) String() string

String returns the path as a string in URL form.

func (*Path) URL

func (p *Path) URL() (u *url.URL)

URL converts the path to a url.URL.

Jump to

Keyboard shortcuts

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