SYMBOL INDEX (1319 symbols across 185 files) FILE: arch/arch.go constant AMD64 (line 14) | AMD64 = "amd64" constant I386 (line 15) | I386 = "i386" constant ARM (line 16) | ARM = "armhf" constant ARM64 (line 17) | ARM64 = "arm64" constant PPC64EL (line 18) | PPC64EL = "ppc64el" constant S390X (line 19) | S390X = "s390x" constant RISCV64 (line 20) | RISCV64 = "riscv64" constant LEGACY_PPC64 (line 23) | LEGACY_PPC64 = "ppc64" type ArchInfo (line 49) | type ArchInfo struct function hostArch (line 73) | func hostArch() string { function NormaliseArch (line 80) | func NormaliseArch(rawArch string) string { function IsSupportedArch (line 91) | func IsSupportedArch(arch string) bool { FILE: arch/arch_test.go type archSuite (line 13) | type archSuite struct method TestHostArch (line 18) | func (s *archSuite) TestHostArch(c *gc.C) { method TestNormaliseArch (line 23) | func (s *archSuite) TestNormaliseArch(c *gc.C) { method TestIsSupportedArch (line 53) | func (s *archSuite) TestIsSupportedArch(c *gc.C) { method TestArchInfo (line 60) | func (s *archSuite) TestArchInfo(c *gc.C) { FILE: arch/package_test.go function Test (line 12) | func Test(t *testing.T) { FILE: attempt.go type AttemptStrategy (line 14) | type AttemptStrategy struct method Start (line 29) | func (s AttemptStrategy) Start() *Attempt { type Attempt (line 20) | type Attempt struct method Next (line 43) | func (a *Attempt) Next() bool { method nextSleep (line 59) | func (a *Attempt) nextSleep(now time.Time) time.Duration { method HasNext (line 70) | func (a *Attempt) HasNext() bool { FILE: attempt_test.go function doSomething (line 14) | func doSomething() (int, error) { return 0, nil } function shouldRetry (line 16) | func shouldRetry(error) bool { return false } function doSomethingWith (line 18) | func doSomethingWith(int) {} function ExampleAttempt_HasNext (line 20) | func ExampleAttempt_HasNext() { method TestAttemptTiming (line 44) | func (*utilsSuite) TestAttemptTiming(c *gc.C) { method TestAttemptNextHasNext (line 67) | func (*utilsSuite) TestAttemptNextHasNext(c *gc.C) { FILE: bzr/bzr.go type Branch (line 17) | type Branch struct method Location (line 48) | func (b *Branch) Location() string { method Join (line 55) | func (b *Branch) Join(parts ...string) string { method bzr (line 59) | func (b *Branch) bzr(subcommand string, args ...string) (stdout, stder... method Init (line 80) | func (b *Branch) Init() error { method Add (line 86) | func (b *Branch) Add(parts ...string) error { method Commit (line 92) | func (b *Branch) Commit(message string) error { method RevisionId (line 98) | func (b *Branch) RevisionId() (string, error) { method PushLocation (line 115) | func (b *Branch) PushLocation() (string, error) { method Push (line 135) | func (b *Branch) Push(attr *PushAttr) error { method CheckClean (line 150) | func (b *Branch) CheckClean() error { function New (line 23) | func New(location string) *Branch { function cenv (line 36) | func cenv() []string { type PushAttr (line 127) | type PushAttr struct FILE: bzr/bzr_test.go function Test (line 21) | func Test(t *stdtesting.T) { type BzrSuite (line 27) | type BzrSuite struct method SetUpTest (line 36) | func (s *BzrSuite) SetUpTest(c *gc.C) { method TestNewFindsRoot (line 50) | func (s *BzrSuite) TestNewFindsRoot(c *gc.C) { method TestJoin (line 61) | func (s *BzrSuite) TestJoin(c *gc.C) { method TestErrorHandling (line 66) | func (s *BzrSuite) TestErrorHandling(c *gc.C) { method TestInit (line 71) | func (s *BzrSuite) TestInit(c *gc.C) { method TestRevisionIdOnEmpty (line 76) | func (s *BzrSuite) TestRevisionIdOnEmpty(c *gc.C) { method TestCommit (line 82) | func (s *BzrSuite) TestCommit(c *gc.C) { method TestPush (line 100) | func (s *BzrSuite) TestPush(c *gc.C) { method TestCheckClean (line 151) | func (s *BzrSuite) TestCheckClean(c *gc.C) { constant bzr_config (line 32) | bzr_config = `[DEFAULT] FILE: bzr/bzr_unix_test.go constant bzrHome (line 10) | bzrHome = ".bazaar" FILE: bzr/bzr_windows_test.go constant bzrHome (line 10) | bzrHome = "Bazaar/2.0" FILE: cache/cache.go type entry (line 20) | type entry struct type Key (line 26) | type Key type Cache (line 29) | type Cache struct method Len (line 70) | func (c *Cache) Len() int { method Evict (line 77) | func (c *Cache) Evict(key Key) { method EvictAll (line 85) | func (c *Cache) EvictAll() { method Get (line 96) | func (c *Cache) Get(key Key, fetch func() (any, error)) (any, error) { method getAtTime (line 102) | func (c *Cache) getAtTime(key Key, fetch func() (any, error), now time... method cachedValue (line 159) | func (c *Cache) cachedValue(key Key, now time.Time) (any, bool) { method entry (line 187) | func (c *Cache) entry(m map[Key]entry, key Key, now time.Time) (entry,... type fetchCall (line 50) | type fetchCall struct function New (line 59) | func New(maxAge time.Duration) *Cache { FILE: cache/cache_test.go type suite (line 16) | type suite struct method TestSimpleGet (line 20) | func (*suite) TestSimpleGet(c *gc.C) { method TestEvict (line 27) | func (*suite) TestEvict(c *gc.C) { method TestEvictOld (line 47) | func (*suite) TestEvictOld(c *gc.C) { method TestFetchError (line 79) | func (*suite) TestFetchError(c *gc.C) { method TestFetchOnlyOnce (line 88) | func (*suite) TestFetchOnlyOnce(c *gc.C) { method TestEntryExpiresAfterMaxEntryAge (line 99) | func (*suite) TestEntryExpiresAfterMaxEntryAge(c *gc.C) { method TestEntriesRemovedWhenNotRetrieved (line 116) | func (*suite) TestEntriesRemovedWhenNotRetrieved(c *gc.C) { method TestRefreshedEntry (line 145) | func (*suite) TestRefreshedEntry(c *gc.C) { method TestConcurrentFetch (line 179) | func (*suite) TestConcurrentFetch(c *gc.C) { method TestRefreshSpread (line 199) | func (*suite) TestRefreshSpread(c *gc.C) { method TestSingleFlight (line 243) | func (*suite) TestSingleFlight(c *gc.C) { function fetchError (line 291) | func fetchError(err error) func() (any, error) { function fetchValue (line 297) | func fetchValue(val any) func() (any, error) { FILE: cache/export_test.go function OldLen (line 8) | func OldLen(c *Cache) int { FILE: cache/package_test.go function TestPackage (line 12) | func TestPackage(t *testing.T) { FILE: cert/cert.go type OtherName (line 20) | type OtherName struct type GeneralName (line 25) | type GeneralName struct type GeneralNames (line 31) | type GeneralNames struct function getUPNExtensionValue (line 45) | func getUPNExtensionValue(subject pkix.Name) ([]byte, error) { function ParseCert (line 63) | func ParseCert(certPEM string) (*x509.Certificate, error) { function ParseCertAndKey (line 81) | func ParseCertAndKey(certPEM, keyPEM string) (*x509.Certificate, crypto.... FILE: cert/cert_test.go function TestAll (line 16) | func TestAll(t *testing.T) { type certSuite (line 20) | type certSuite struct method TestParseCertificate (line 24) | func (certSuite) TestParseCertificate(c *gc.C) { method TestParseCertAndKey (line 38) | func (certSuite) TestParseCertAndKey(c *gc.C) { FILE: command.go function RunCommand (line 11) | func RunCommand(command string, args ...string) (output string, err erro... FILE: command_test.go type EnvironmentPatcher (line 17) | type EnvironmentPatcher interface function patchExecutable (line 21) | func patchExecutable(patcher EnvironmentPatcher, dir, execName, script s... type commandSuite (line 27) | type commandSuite struct method TestRunCommandCombinesOutput (line 33) | func (s *commandSuite) TestRunCommandCombinesOutput(c *gc.C) { method TestRunCommandNonZeroExit (line 58) | func (s *commandSuite) TestRunCommandNonZeroExit(c *gc.C) { FILE: context.go type timerCtx (line 19) | type timerCtx struct method Deadline (line 35) | func (ctx *timerCtx) Deadline() (time.Time, bool) { method Err (line 39) | func (ctx *timerCtx) Err() error { method Value (line 45) | func (ctx *timerCtx) Value(key any) any { method Done (line 49) | func (ctx *timerCtx) Done() <-chan struct{} { method cancel (line 53) | func (ctx *timerCtx) cancel(err error) { method String (line 70) | func (ctx *timerCtx) String() string { function ContextWithTimeout (line 77) | func ContextWithTimeout(parent context.Context, clk clock.Clock, timeout... function ContextWithDeadline (line 84) | func ContextWithDeadline(parent context.Context, clk clock.Clock, deadli... FILE: context_test.go type contextSuite (line 19) | type contextSuite struct method TestDeadline (line 26) | func (*contextSuite) TestDeadline(c *gc.C) { method TestTimeout (line 52) | func (*contextSuite) TestTimeout(c *gc.C) { method TestCanceledTimeout (line 68) | func (*contextSuite) TestCanceledTimeout(c *gc.C) { function testContextDeadline (line 83) | func testContextDeadline(c *gc.C, ctx context.Context, name string, clk ... type otherContext (line 97) | type otherContext struct FILE: du/diskusage.go type DiskUsage (line 13) | type DiskUsage struct method Free (line 27) | func (this *DiskUsage) Free() uint64 { method Available (line 32) | func (this *DiskUsage) Available() uint64 { method Size (line 37) | func (this *DiskUsage) Size() uint64 { method Used (line 42) | func (this *DiskUsage) Used() uint64 { method Usage (line 47) | func (this *DiskUsage) Usage() float32 { function NewDiskUsage (line 19) | func NewDiskUsage(volumePath string) *DiskUsage { FILE: du/diskusage_windows.go type DiskUsage (line 14) | type DiskUsage struct method Free (line 39) | func (this *DiskUsage) Free() uint64 { method Available (line 44) | func (this *DiskUsage) Available() uint64 { method Size (line 49) | func (this *DiskUsage) Size() uint64 { method Used (line 54) | func (this *DiskUsage) Used() uint64 { method Usage (line 59) | func (this *DiskUsage) Usage() float32 { function NewDiskUsage (line 22) | func NewDiskUsage(volumePath string) *DiskUsage { FILE: errors.go type RcPassthroughError (line 12) | type RcPassthroughError struct method Error (line 17) | func (e *RcPassthroughError) Error() string { function IsRcPassthroughError (line 22) | func IsRcPassthroughError(err error) bool { function NewRcPassthroughError (line 30) | func NewRcPassthroughError(code int) error { FILE: exec/exec.go type RunParams (line 32) | type RunParams struct method Run (line 129) | func (r *RunParams) Run() error { method Process (line 176) | func (r *RunParams) Process() *os.Process { method Wait (line 187) | func (r *RunParams) Wait() (*ExecResponse, error) { method WaitWithCancel (line 231) | func (r *RunParams) WaitWithCancel(cancel <-chan struct{}) (*ExecRespo... type ExecResponse (line 48) | type ExecResponse struct function mergeEnvironment (line 59) | func mergeEnvironment(env []string) []string { function shellAndArgs (line 85) | func shellAndArgs(tempDir, script, user string) (string, []string, error) { constant timeWaitForKill (line 220) | timeWaitForKill = 30 * time.Second type resultWithError (line 222) | type resultWithError struct function RunCommands (line 272) | func RunCommands(run RunParams) (*ExecResponse, error) { FILE: exec/exec_internal_test.go type execSuite (line 16) | type execSuite struct method TestShellAndArgsNoUserSpecified (line 22) | func (*execSuite) TestShellAndArgsNoUserSpecified(c *gc.C) { method TestShellAndArgsAsUser (line 41) | func (*execSuite) TestShellAndArgsAsUser(c *gc.C) { FILE: exec/exec_linux_test.go constant cancelErrCode (line 15) | cancelErrCode = 0 method TestRunCommands (line 17) | func (*execSuite) TestRunCommands(c *gc.C) { method TestExecUnknownCommand (line 91) | func (*execSuite) TestExecUnknownCommand(c *gc.C) { FILE: exec/exec_test.go type execSuite (line 20) | type execSuite struct method TestWaitWithCancel (line 26) | func (*execSuite) TestWaitWithCancel(c *gc.C) { method TestKillAbortedIfUnsuccessfull (line 46) | func (s *execSuite) TestKillAbortedIfUnsuccessfull(c *gc.C) { type mockClock (line 76) | type mockClock struct method After (line 81) | func (m *mockClock) After(t time.Duration) <-chan time.Time { FILE: exec/exec_unix.go function KillProcess (line 20) | func KillProcess(proc *os.Process) error { method populateSysProcAttr (line 30) | func (r *RunParams) populateSysProcAttr() { FILE: exec/exec_windows.go function KillProcess (line 15) | func KillProcess(proc *os.Process) error { method populateSysProcAttr (line 20) | func (r *RunParams) populateSysProcAttr() {} FILE: exec/exec_windows_test.go constant cancelErrCode (line 18) | cancelErrCode = 1 function longPath (line 22) | func longPath(path string) ([]uint16, error) { function longPathAsString (line 45) | func longPathAsString(path string) (string, error) { method TestRunCommands (line 53) | func (*execSuite) TestRunCommands(c *gc.C) { method TestExecUnknownCommand (line 123) | func (*execSuite) TestExecUnknownCommand(c *gc.C) { FILE: exec/package_test.go function Test (line 12) | func Test(t *testing.T) { FILE: export_test.go function ExposeBackoffTimerDuration (line 16) | func ExposeBackoffTimerDuration(bot *BackoffTimer) time.Duration { FILE: file.go function UserHomeDir (line 20) | func UserHomeDir(userName string) (hDir string, err error) { function NormalizePath (line 44) | func NormalizePath(dir string) (string, error) { function ExpandPath (line 57) | func ExpandPath(path string) (string, error) { function EnsureBaseDir (line 68) | func EnsureBaseDir(baseDir, path string) string { function JoinServerPath (line 79) | func JoinServerPath(elem ...string) string { function UniqueDirectory (line 85) | func UniqueDirectory(path, name string) (string, error) { function CopyFile (line 103) | func CopyFile(dest, source string) error { function AtomicWriteFileAndChange (line 120) | func AtomicWriteFileAndChange(filename string, contents []byte, change f... function AtomicWriteFile (line 157) | func AtomicWriteFile(filename string, contents []byte, perms os.FileMode... FILE: file_test.go type fileSuite (line 20) | type fileSuite struct method TestNormalizePath (line 26) | func (*fileSuite) TestNormalizePath(c *gc.C) { method TestExpandPath (line 76) | func (*fileSuite) TestExpandPath(c *gc.C) { method TestCopyFile (line 137) | func (*fileSuite) TestCopyFile(c *gc.C) { method TestAtomicWriteFile (line 197) | func (*fileSuite) TestAtomicWriteFile(c *gc.C) { method TestMoveFile (line 248) | func (*fileSuite) TestMoveFile(c *gc.C) { FILE: file_unix.go function homeDir (line 20) | func homeDir(userName string) (string, error) { function MoveFile (line 34) | func MoveFile(source, destination string) (bool, error) { function ReplaceFile (line 49) | func ReplaceFile(source, destination string) error { function MakeFileURL (line 54) | func MakeFileURL(in string) string { function ChownPath (line 63) | func ChownPath(path, username string) error { function IsFileOwner (line 81) | func IsFileOwner(path, username string) (bool, error) { FILE: file_unix_test.go type unixFileSuite (line 22) | type unixFileSuite struct method TestEnsureBaseDir (line 27) | func (s *unixFileSuite) TestEnsureBaseDir(c *gc.C) { method TestFileOwner (line 33) | func (s *unixFileSuite) TestFileOwner(c *gc.C) { method TestFileOwnerUsingRoot (line 46) | func (s *unixFileSuite) TestFileOwnerUsingRoot(c *gc.C) { method TestFileOwnerWithInvalidPath (line 56) | func (s *unixFileSuite) TestFileOwnerWithInvalidPath(c *gc.C) { method TestFileOwnerWithInvalidUsername (line 66) | func (s *unixFileSuite) TestFileOwnerWithInvalidUsername(c *gc.C) { FILE: file_windows.go constant movefile_replace_existing (line 20) | movefile_replace_existing = 0x1 constant movefile_write_through (line 21) | movefile_write_through = 0x8 function MoveFile (line 29) | func MoveFile(source, destination string) (bool, error) { function ReplaceFile (line 49) | func ReplaceFile(source, destination string) error { function MakeFileURL (line 67) | func MakeFileURL(in string) string { function getUserSID (line 81) | func getUserSID(username string) (string, error) { function readRegString (line 90) | func readRegString(h syscall.Handle, key string) (value string, err erro... function homeFromRegistry (line 108) | func homeFromRegistry(sid string) (string, error) { function homeDir (line 129) | func homeDir(user string) (string, error) { function ChownPath (line 138) | func ChownPath(path, username string) error { function IsFileOwner (line 146) | func IsFileOwner(path, username string) (bool, error) { FILE: file_windows_test.go type windowsFileSuite (line 16) | type windowsFileSuite struct method TestMakeFileURL (line 21) | func (s *windowsFileSuite) TestMakeFileURL(c *gc.C) { method TestEnsureBaseDir (line 45) | func (s *windowsFileSuite) TestEnsureBaseDir(c *gc.C) { method TestFileOwner (line 53) | func (s *windowsFileSuite) TestFileOwner(c *gc.C) { FILE: filepath/common.go function splitSuffix (line 6) | func splitSuffix(path string) (string, string) { FILE: filepath/common_test.go type commonSuite (line 15) | type commonSuite struct method TestSplitSuffixHasSuffix (line 19) | func (s commonSuite) TestSplitSuffixHasSuffix(c *gc.C) { method TestSplitSuffixNoSuffix (line 26) | func (s commonSuite) TestSplitSuffixNoSuffix(c *gc.C) { method TestSplitSuffixEmpty (line 33) | func (s commonSuite) TestSplitSuffixEmpty(c *gc.C) { method TestSplitSuffixDotFilePlain (line 40) | func (s commonSuite) TestSplitSuffixDotFilePlain(c *gc.C) { method TestSplitSuffixDofileWithSuffix (line 47) | func (s commonSuite) TestSplitSuffixDofileWithSuffix(c *gc.C) { FILE: filepath/filepath.go type Renderer (line 21) | type Renderer interface function NewRenderer (line 71) | func NewRenderer(os string) (Renderer, error) { FILE: filepath/filepath_test.go type filepathSuite (line 18) | type filepathSuite struct method SetupTest (line 27) | func (s *filepathSuite) SetupTest(c *gc.C) { method checkRenderer (line 34) | func (s filepathSuite) checkRenderer(c *gc.C, renderer filepath.Render... method TestNewRendererDefault (line 45) | func (s filepathSuite) TestNewRendererDefault(c *gc.C) { method TestNewRendererGOOS (line 58) | func (s filepathSuite) TestNewRendererGOOS(c *gc.C) { method TestNewRendererWindows (line 71) | func (s filepathSuite) TestNewRendererWindows(c *gc.C) { method TestNewRendererUnix (line 78) | func (s filepathSuite) TestNewRendererUnix(c *gc.C) { method TestNewRendererDistros (line 88) | func (s filepathSuite) TestNewRendererDistros(c *gc.C) { method TestNewRendererUnknown (line 99) | func (s filepathSuite) TestNewRendererUnknown(c *gc.C) { FILE: filepath/package_test.go function Test (line 12) | func Test(t *testing.T) { FILE: filepath/stdlib.go function Base (line 16) | func Base(sep uint8, volumeName func(string) string, path string) string { type lazybuf (line 45) | type lazybuf struct method index (line 53) | func (b *lazybuf) index(i int) byte { method append (line 60) | func (b *lazybuf) append(c byte) { method string (line 73) | func (b *lazybuf) string() string { function Clean (line 81) | func Clean(sep uint8, volumeName func(string) string, path string) string { function Dir (line 156) | func Dir(sep uint8, volumeName func(string) string, path string) string { function Ext (line 167) | func Ext(sep uint8, path string) string { function FromSlash (line 177) | func FromSlash(sep uint8, path string) string { function Join (line 185) | func Join(sep uint8, volumeName func(string) string, elem ...string) str... function Split (line 195) | func Split(sep uint8, volumeName func(string) string, path string) (dir,... function ToSlash (line 205) | func ToSlash(sep uint8, path string) string { FILE: filepath/stdlib_test.go type stdlibSuite (line 21) | type stdlibSuite struct method SetUpTest (line 30) | func (s *stdlibSuite) SetUpTest(c *gc.C) { method TestBase (line 45) | func (s stdlibSuite) TestBase(c *gc.C) { method TestClean (line 53) | func (s stdlibSuite) TestClean(c *gc.C) { method TestDir (line 68) | func (s stdlibSuite) TestDir(c *gc.C) { method TestExt (line 81) | func (s stdlibSuite) TestExt(c *gc.C) { method TestFromSlash (line 89) | func (s stdlibSuite) TestFromSlash(c *gc.C) { method TestJoin (line 98) | func (s stdlibSuite) TestJoin(c *gc.C) { method TestSplit (line 107) | func (s stdlibSuite) TestSplit(c *gc.C) { method TestToSlash (line 122) | func (s stdlibSuite) TestToSlash(c *gc.C) { method TestMatchTrue (line 130) | func (s stdlibSuite) TestMatchTrue(c *gc.C) { method TestMatchFalse (line 152) | func (s stdlibSuite) TestMatchFalse(c *gc.C) { method TestMatchBadPattern (line 172) | func (s stdlibSuite) TestMatchBadPattern(c *gc.C) { FILE: filepath/stdlibmatch.go function Match (line 42) | func Match(sep uint8, pattern, name string) (matched bool, err error) { function scanChunk (line 89) | func scanChunk(sep uint8, pattern string) (star bool, chunk, rest string) { function matchChunk (line 122) | func matchChunk(sep uint8, chunk, s string) (rest string, ok bool, err e... function getEsc (line 201) | func getEsc(sep uint8, chunk string) (r rune, nchunk string, err error) { FILE: filepath/unix.go constant UnixSeparator (line 13) | UnixSeparator = '/' constant UnixListSeparator (line 14) | UnixListSeparator = ':' type UnixRenderer (line 18) | type UnixRenderer struct method Base (line 21) | func (ur UnixRenderer) Base(path string) string { method Clean (line 26) | func (ur UnixRenderer) Clean(path string) string { method Dir (line 31) | func (ur UnixRenderer) Dir(path string) string { method Ext (line 36) | func (UnixRenderer) Ext(path string) string { method FromSlash (line 41) | func (UnixRenderer) FromSlash(path string) string { method IsAbs (line 46) | func (UnixRenderer) IsAbs(path string) bool { method Join (line 51) | func (ur UnixRenderer) Join(path ...string) string { method Match (line 56) | func (UnixRenderer) Match(pattern, name string) (matched bool, err err... method Split (line 61) | func (ur UnixRenderer) Split(path string) (dir, file string) { method SplitList (line 66) | func (UnixRenderer) SplitList(path string) []string { method ToSlash (line 74) | func (UnixRenderer) ToSlash(path string) string { method VolumeName (line 79) | func (UnixRenderer) VolumeName(path string) string { method NormCase (line 84) | func (UnixRenderer) NormCase(path string) string { method SplitSuffix (line 89) | func (UnixRenderer) SplitSuffix(path string) (string, string) { FILE: filepath/unix_test.go type unixBaseSuite (line 19) | type unixBaseSuite struct method SetUpTest (line 26) | func (s *unixBaseSuite) SetUpTest(c *gc.C) { method matchesRuntime (line 33) | func (s *unixBaseSuite) matchesRuntime() bool { type unixSuite (line 37) | type unixSuite struct method TestIsAbs (line 41) | func (s unixSuite) TestIsAbs(c *gc.C) { method TestSplitList (line 50) | func (s unixSuite) TestSplitList(c *gc.C) { method TestVolumeName (line 60) | func (s unixSuite) TestVolumeName(c *gc.C) { method TestNormCaseLower (line 66) | func (s unixSuite) TestNormCaseLower(c *gc.C) { method TestNormCaseUpper (line 72) | func (s unixSuite) TestNormCaseUpper(c *gc.C) { method TestNormCaseMixed (line 78) | func (s unixSuite) TestNormCaseMixed(c *gc.C) { method TestNormCaseCapitalized (line 84) | func (s unixSuite) TestNormCaseCapitalized(c *gc.C) { method TestNormCasePunctuation (line 90) | func (s unixSuite) TestNormCasePunctuation(c *gc.C) { method TestSplitSuffix (line 96) | func (s unixSuite) TestSplitSuffix(c *gc.C) { type unixThinWrapperSuite (line 109) | type unixThinWrapperSuite struct method TestBase (line 113) | func (s unixThinWrapperSuite) TestBase(c *gc.C) { method TestClean (line 123) | func (s unixThinWrapperSuite) TestClean(c *gc.C) { method TestDir (line 140) | func (s unixThinWrapperSuite) TestDir(c *gc.C) { method TestExt (line 150) | func (s unixThinWrapperSuite) TestExt(c *gc.C) { method TestFromSlash (line 160) | func (s unixThinWrapperSuite) TestFromSlash(c *gc.C) { method TestJoin (line 171) | func (s unixThinWrapperSuite) TestJoin(c *gc.C) { method TestSplit (line 181) | func (s unixThinWrapperSuite) TestSplit(c *gc.C) { method TestToSlash (line 193) | func (s unixThinWrapperSuite) TestToSlash(c *gc.C) { method TestMatchTrue (line 203) | func (s unixThinWrapperSuite) TestMatchTrue(c *gc.C) { method TestMatchFalse (line 227) | func (s unixThinWrapperSuite) TestMatchFalse(c *gc.C) { method TestMatchBadPattern (line 249) | func (s unixThinWrapperSuite) TestMatchBadPattern(c *gc.C) { FILE: filepath/win.go constant WindowsSeparator (line 13) | WindowsSeparator = '\\' constant WindowsListSeparator (line 14) | WindowsListSeparator = ';' type WindowsRenderer (line 18) | type WindowsRenderer struct method Base (line 21) | func (ur WindowsRenderer) Base(path string) string { method Clean (line 26) | func (ur WindowsRenderer) Clean(path string) string { method Dir (line 31) | func (ur WindowsRenderer) Dir(path string) string { method Ext (line 36) | func (WindowsRenderer) Ext(path string) string { method FromSlash (line 41) | func (WindowsRenderer) FromSlash(path string) string { method IsAbs (line 46) | func (WindowsRenderer) IsAbs(path string) bool { method Join (line 59) | func (ur WindowsRenderer) Join(path ...string) string { method Match (line 64) | func (WindowsRenderer) Match(pattern, name string) (matched bool, err ... method Split (line 69) | func (ur WindowsRenderer) Split(path string) (dir, file string) { method SplitList (line 74) | func (WindowsRenderer) SplitList(path string) []string { method ToSlash (line 105) | func (WindowsRenderer) ToSlash(path string) string { method VolumeName (line 110) | func (WindowsRenderer) VolumeName(path string) string { method NormCase (line 115) | func (WindowsRenderer) NormCase(path string) string { method SplitSuffix (line 120) | func (WindowsRenderer) SplitSuffix(path string) (string, string) { function isSlash (line 124) | func isSlash(c uint8) bool { function volumeNameLen (line 130) | func volumeNameLen(path string) int { FILE: filepath/win_test.go type windowsBaseSuite (line 19) | type windowsBaseSuite struct method SetUpTest (line 26) | func (s *windowsBaseSuite) SetUpTest(c *gc.C) { method matchesRuntime (line 33) | func (s *windowsBaseSuite) matchesRuntime() bool { type windowsSuite (line 37) | type windowsSuite struct method TestIsAbs (line 41) | func (s windowsSuite) TestIsAbs(c *gc.C) { method TestSplitList (line 50) | func (s windowsSuite) TestSplitList(c *gc.C) { method TestVolumeName (line 60) | func (s windowsSuite) TestVolumeName(c *gc.C) { method TestNormCaseLower (line 70) | func (s windowsSuite) TestNormCaseLower(c *gc.C) { method TestNormCaseUpper (line 76) | func (s windowsSuite) TestNormCaseUpper(c *gc.C) { method TestNormCaseMixed (line 82) | func (s windowsSuite) TestNormCaseMixed(c *gc.C) { method TestNormCaseCapitalized (line 88) | func (s windowsSuite) TestNormCaseCapitalized(c *gc.C) { method TestNormCasePunctuation (line 94) | func (s windowsSuite) TestNormCasePunctuation(c *gc.C) { method TestSplitSuffix (line 100) | func (s windowsSuite) TestSplitSuffix(c *gc.C) { type windowsThinWrapperSuite (line 113) | type windowsThinWrapperSuite struct method TestBase (line 117) | func (s windowsThinWrapperSuite) TestBase(c *gc.C) { method TestClean (line 127) | func (s windowsThinWrapperSuite) TestClean(c *gc.C) { method TestDir (line 144) | func (s windowsThinWrapperSuite) TestDir(c *gc.C) { method TestExt (line 154) | func (s windowsThinWrapperSuite) TestExt(c *gc.C) { method TestFromSlash (line 164) | func (s windowsThinWrapperSuite) TestFromSlash(c *gc.C) { method TestJoin (line 175) | func (s windowsThinWrapperSuite) TestJoin(c *gc.C) { method TestSplit (line 185) | func (s windowsThinWrapperSuite) TestSplit(c *gc.C) { method TestToSlash (line 197) | func (s windowsThinWrapperSuite) TestToSlash(c *gc.C) { method TestMatchTrue (line 207) | func (s windowsThinWrapperSuite) TestMatchTrue(c *gc.C) { method TestMatchFalse (line 231) | func (s windowsThinWrapperSuite) TestMatchFalse(c *gc.C) { method TestMatchBadPattern (line 253) | func (s windowsThinWrapperSuite) TestMatchBadPattern(c *gc.C) { FILE: filestorage/fakes_test.go type FakeMetadataStorage (line 18) | type FakeMetadataStorage struct method Check (line 31) | func (s *FakeMetadataStorage) Check(c *gc.C, id string, meta filestora... method Doc (line 37) | func (s *FakeMetadataStorage) Doc(id string) (filestorage.Document, er... method ListDocs (line 46) | func (s *FakeMetadataStorage) ListDocs() ([]filestorage.Document, erro... method AddDoc (line 58) | func (s *FakeMetadataStorage) AddDoc(doc filestorage.Document) (string... method RemoveDoc (line 68) | func (s *FakeMetadataStorage) RemoveDoc(id string) error { method Close (line 74) | func (s *FakeMetadataStorage) Close() error { method Metadata (line 79) | func (s *FakeMetadataStorage) Metadata(id string) (filestorage.Metadat... method ListMetadata (line 88) | func (s *FakeMetadataStorage) ListMetadata() ([]filestorage.Metadata, ... method AddMetadata (line 96) | func (s *FakeMetadataStorage) AddMetadata(meta filestorage.Metadata) (... method RemoveMetadata (line 105) | func (s *FakeMetadataStorage) RemoveMetadata(id string) error { method SetStored (line 111) | func (s *FakeMetadataStorage) SetStored(id string) error { type FakeRawFileStorage (line 118) | type FakeRawFileStorage struct method Check (line 130) | func (s *FakeRawFileStorage) Check(c *gc.C, id string, file io.Reader,... method CheckNotUsed (line 138) | func (s *FakeRawFileStorage) CheckNotUsed(c *gc.C) { method File (line 142) | func (s *FakeRawFileStorage) File(id string) (io.ReadCloser, error) { method AddFile (line 151) | func (s *FakeRawFileStorage) AddFile(id string, file io.Reader, size i... method RemoveFile (line 159) | func (s *FakeRawFileStorage) RemoveFile(id string) error { method Close (line 165) | func (s *FakeRawFileStorage) Close() error { FILE: filestorage/interfaces.go type FileStorage (line 12) | type FileStorage interface type Document (line 36) | type Document interface type Metadata (line 46) | type Metadata interface type DocStorage (line 74) | type DocStorage interface type RawFileStorage (line 98) | type RawFileStorage interface type MetadataStorage (line 118) | type MetadataStorage interface FILE: filestorage/metadata.go type RawDoc (line 13) | type RawDoc struct type Doc (line 19) | type Doc struct method ID (line 24) | func (d *Doc) ID() string { method SetID (line 30) | func (d *Doc) SetID(id string) bool { type RawFileMetadata (line 39) | type RawFileMetadata struct type FileMetadata (line 51) | type FileMetadata struct method Size (line 62) | func (m *FileMetadata) Size() int64 { method Checksum (line 66) | func (m *FileMetadata) Checksum() string { method ChecksumFormat (line 70) | func (m *FileMetadata) ChecksumFormat() string { method Stored (line 74) | func (m *FileMetadata) Stored() *time.Time { method SetFileInfo (line 78) | func (m *FileMetadata) SetFileInfo(size int64, checksum, format string... method SetStored (line 113) | func (m *FileMetadata) SetStored(timestamp *time.Time) { function NewMetadata (line 57) | func NewMetadata() *FileMetadata { FILE: filestorage/metadata_store.go function Convert (line 11) | func Convert(doc Document) (Metadata, error) { type MetadataDocStorage (line 23) | type MetadataDocStorage struct method Metadata (line 28) | func (s *MetadataDocStorage) Metadata(id string) (Metadata, error) { method ListMetadata (line 38) | func (s *MetadataDocStorage) ListMetadata() ([]Metadata, error) { method AddMetadata (line 58) | func (s *MetadataDocStorage) AddMetadata(meta Metadata) (string, error) { method RemoveMetadata (line 64) | func (s *MetadataDocStorage) RemoveMetadata(id string) error { FILE: filestorage/metadata_test.go type MetadataSuite (line 22) | type MetadataSuite struct method TestFileMetadataNewMetadata (line 26) | func (s *MetadataSuite) TestFileMetadataNewMetadata(c *gc.C) { method TestFileMetadataSetIDInitial (line 36) | func (s *MetadataSuite) TestFileMetadataSetIDInitial(c *gc.C) { method TestFileMetadataSetIDAlreadySetSame (line 46) | func (s *MetadataSuite) TestFileMetadataSetIDAlreadySetSame(c *gc.C) { method TestFileMetadataSetIDAlreadySetDifferent (line 57) | func (s *MetadataSuite) TestFileMetadataSetIDAlreadySetDifferent(c *gc... method TestFileMetadataSetFileInfo (line 68) | func (s *MetadataSuite) TestFileMetadataSetFileInfo(c *gc.C) { method TestFileMetadataSetStored (line 82) | func (s *MetadataSuite) TestFileMetadataSetStored(c *gc.C) { method TestFileMetadataSetStoredDefault (line 90) | func (s *MetadataSuite) TestFileMetadataSetStoredDefault(c *gc.C) { FILE: filestorage/package_test.go function TestPackage (line 12) | func TestPackage(t *testing.T) { FILE: filestorage/wrapper.go type fileStorage (line 15) | type fileStorage struct method Metadata (line 37) | func (s *fileStorage) Metadata(id string) (Metadata, error) { method Get (line 49) | func (s *fileStorage) Get(id string) (Metadata, io.ReadCloser, error) { method List (line 65) | func (s *fileStorage) List() ([]Metadata, error) { method addFile (line 69) | func (s *fileStorage) addFile(id string, size int64, file io.Reader) e... method Add (line 90) | func (s *fileStorage) Add(meta Metadata, file io.Reader) (string, erro... method SetFile (line 118) | func (s *fileStorage) SetFile(id string, file io.Reader) error { method Remove (line 137) | func (s *fileStorage) Remove(id string) error { method Close (line 150) | func (s *fileStorage) Close() error { function NewFileStorage (line 27) | func NewFileStorage(meta MetadataStorage, files RawFileStorage) FileStor... FILE: filestorage/wrapper_test.go type WrapperSuite (line 21) | type WrapperSuite struct method SetUpTest (line 28) | func (s *WrapperSuite) SetUpTest(c *gc.C) { method metadata (line 36) | func (s *WrapperSuite) metadata() filestorage.Metadata { method setMeta (line 42) | func (s *WrapperSuite) setMeta() (string, filestorage.Metadata) { method setFile (line 51) | func (s *WrapperSuite) setFile(data string) (string, filestorage.Metad... method TestFileStorageNewFileStorage (line 59) | func (s *WrapperSuite) TestFileStorageNewFileStorage(c *gc.C) { method TestFileStorageMetadata (line 65) | func (s *WrapperSuite) TestFileStorageMetadata(c *gc.C) { method TestFileStorageGet (line 75) | func (s *WrapperSuite) TestFileStorageGet(c *gc.C) { method TestFileStorageListEmpty (line 84) | func (s *WrapperSuite) TestFileStorageListEmpty(c *gc.C) { method TestFileStorageListOne (line 91) | func (s *WrapperSuite) TestFileStorageListOne(c *gc.C) { method TestFileStorageListTwo (line 101) | func (s *WrapperSuite) TestFileStorageListTwo(c *gc.C) { method TestFileStorageAddMeta (line 117) | func (s *WrapperSuite) TestFileStorageAddMeta(c *gc.C) { method TestFileStorageAddFile (line 131) | func (s *WrapperSuite) TestFileStorageAddFile(c *gc.C) { method TestFileStorageAddIDNotSet (line 148) | func (s *WrapperSuite) TestFileStorageAddIDNotSet(c *gc.C) { method TestFileStorageAddMetaOnly (line 157) | func (s *WrapperSuite) TestFileStorageAddMetaOnly(c *gc.C) { method TestFileStorageAddIDAlreadySet (line 166) | func (s *WrapperSuite) TestFileStorageAddIDAlreadySet(c *gc.C) { method TestFileStorageAddFileFailureDropsMetadata (line 174) | func (s *WrapperSuite) TestFileStorageAddFileFailureDropsMetadata(c *g... method TestFileStorageSetFile (line 189) | func (s *WrapperSuite) TestFileStorageSetFile(c *gc.C) { method TestFileStorageRemove (line 202) | func (s *WrapperSuite) TestFileStorageRemove(c *gc.C) { method TestClose (line 211) | func (s *WrapperSuite) TestClose(c *gc.C) { FILE: fs/copy.go function Copy (line 19) | func Copy(src, dst string) error { function copySymLink (line 44) | func copySymLink(src, dst string) error { function copyFile (line 52) | func copyFile(src, dst string, mode os.FileMode) error { function copyDir (line 74) | func copyDir(src, dst string, mode os.FileMode) error { FILE: fs/copy_test.go type copySuite (line 16) | type copySuite struct method TestCopy (line 70) | func (*copySuite) TestCopy(c *gc.C) { function TestPackage (line 20) | func TestPackage(t *testing.T) { FILE: gomaxprocs.go function UseMultipleCPUs (line 16) | func UseMultipleCPUs() { FILE: gomaxprocs_test.go type gomaxprocsSuite (line 16) | type gomaxprocsSuite struct method SetUpTest (line 25) | func (s *gomaxprocsSuite) SetUpTest(c *gc.C) { method TestUseMultipleCPUsDoesNothingWhenGOMAXPROCSSet (line 40) | func (s *gomaxprocsSuite) TestUseMultipleCPUsDoesNothingWhenGOMAXPROCS... method TestUseMultipleCPUsWhenEnabled (line 47) | func (s *gomaxprocsSuite) TestUseMultipleCPUsWhenEnabled(c *gc.C) { FILE: hash/fingerprint.go type Fingerprint (line 16) | type Fingerprint struct method String (line 102) | func (fp Fingerprint) String() string { method Hex (line 107) | func (fp Fingerprint) Hex() string { method Base64 (line 112) | func (fp Fingerprint) Base64() string { method Bytes (line 117) | func (fp Fingerprint) Bytes() []byte { method IsZero (line 122) | func (fp Fingerprint) IsZero() bool { method Validate (line 127) | func (fp Fingerprint) Validate() error { function NewFingerprint (line 22) | func NewFingerprint(sum []byte, validate func([]byte) error) (Fingerprin... function NewValidFingerprint (line 35) | func NewValidFingerprint(hash hash.Hash) Fingerprint { function newFingerprint (line 40) | func newFingerprint(sum []byte) Fingerprint { function GenerateFingerprint (line 47) | func GenerateFingerprint(reader io.Reader, newHash func() hash.Hash) (Fi... function ParseHexFingerprint (line 67) | func ParseHexFingerprint(hexSum string, validate func([]byte) error) (Fi... function ParseBase64Fingerprint (line 85) | func ParseBase64Fingerprint(b64Sum string, validate func([]byte) error) ... FILE: hash/fingerprint_test.go type FingerprintSuite (line 22) | type FingerprintSuite struct method SetUpTest (line 27) | func (s *FingerprintSuite) SetUpTest(c *gc.C) { method newHash (line 32) | func (s *FingerprintSuite) newHash() stdhash.Hash { method validate (line 39) | func (s *FingerprintSuite) validate(sum []byte) error { method TestNewFingerprintOkay (line 48) | func (s *FingerprintSuite) TestNewFingerprintOkay(c *gc.C) { method TestNewFingerprintInvalid (line 59) | func (s *FingerprintSuite) TestNewFingerprintInvalid(c *gc.C) { method TestNewValidFingerprint (line 70) | func (s *FingerprintSuite) TestNewValidFingerprint(c *gc.C) { method TestGenerateFingerprintOkay (line 81) | func (s *FingerprintSuite) TestGenerateFingerprintOkay(c *gc.C) { method TestGenerateFingerprintNil (line 95) | func (s *FingerprintSuite) TestGenerateFingerprintNil(c *gc.C) { method TestParseHexFingerprint (line 102) | func (s *FingerprintSuite) TestParseHexFingerprint(c *gc.C) { method TestString (line 113) | func (s *FingerprintSuite) TestString(c *gc.C) { method TestHex (line 123) | func (s *FingerprintSuite) TestHex(c *gc.C) { method TestBytes (line 133) | func (s *FingerprintSuite) TestBytes(c *gc.C) { method TestValidateOkay (line 143) | func (s *FingerprintSuite) TestValidateOkay(c *gc.C) { method TestValidateZero (line 153) | func (s *FingerprintSuite) TestValidateZero(c *gc.C) { function newFingerprint (line 161) | func newFingerprint(c *gc.C, data string) ([]byte, string) { FILE: hash/hash.go function SHA384 (line 57) | func SHA384() (newHash func() hash.Hash, validate func([]byte) error) { function newSizeChecker (line 63) | func newSizeChecker(size int) func([]byte) error { FILE: hash/hash_test.go type HashSuite (line 22) | type HashSuite struct method TestHashingWriter (line 26) | func (s *HashSuite) TestHashingWriter(c *gc.C) { method TestHashingReader (line 43) | func (s *HashSuite) TestHashingReader(c *gc.C) { type fakeStream (line 68) | type fakeStream struct method Read (line 73) | func (f *fakeStream) Read(data []byte) (int, error) { FILE: hash/package_test.go function Test (line 12) | func Test(t *stdtesting.T) { FILE: hash/writer.go type HashingWriter (line 20) | type HashingWriter struct method Base64Sum (line 43) | func (hw HashingWriter) Base64Sum() string { method Write (line 49) | func (hw *HashingWriter) Write(data []byte) (int, error) { function NewHashingWriter (line 35) | func NewHashingWriter(writer io.Writer, hasher hash.Hash) *HashingWriter { FILE: hash/writer_test.go type WriterSuite (line 20) | type WriterSuite struct method SetUpTest (line 30) | func (s *WriterSuite) SetUpTest(c *gc.C) { method TestHashingWriterWriteEmpty (line 43) | func (s *WriterSuite) TestHashingWriterWriteEmpty(c *gc.C) { method TestHashingWriterWriteSmall (line 54) | func (s *WriterSuite) TestHashingWriterWriteSmall(c *gc.C) { method TestHashingWriterWriteFileError (line 65) | func (s *WriterSuite) TestHashingWriterWriteFileError(c *gc.C) { method TestHashingWriterBase64Sum (line 76) | func (s *WriterSuite) TestHashingWriterBase64Sum(c *gc.C) { FILE: home_unix.go function Home (line 16) | func Home() string { function SetHome (line 26) | func SetHome(s string) error { FILE: home_unix_test.go type homeSuite (line 15) | type homeSuite struct method TestHomeLinux (line 21) | func (s *homeSuite) TestHomeLinux(c *gc.C) { method TestHomeConfined (line 27) | func (s *homeSuite) TestHomeConfined(c *gc.C) { FILE: home_windows.go function Home (line 12) | func Home() string { function SetHome (line 17) | func SetHome(s string) error { FILE: home_windows_test.go type homeSuite (line 15) | type homeSuite struct method TestHome (line 21) | func (s *homeSuite) TestHome(c *gc.C) { FILE: isubuntu.go function IsUbuntu (line 11) | func IsUbuntu() bool { FILE: isubuntu_test.go type IsUbuntuSuite (line 17) | type IsUbuntuSuite struct method patchLsbRelease (line 23) | func (s *IsUbuntuSuite) patchLsbRelease(c *gc.C, name string) { method TestIsUbuntu (line 36) | func (s *IsUbuntuSuite) TestIsUbuntu(c *gc.C) { method TestIsNotUbuntu (line 41) | func (s *IsUbuntuSuite) TestIsNotUbuntu(c *gc.C) { method TestIsNotUbuntuLsbReleaseNotFound (line 46) | func (s *IsUbuntuSuite) TestIsNotUbuntuLsbReleaseNotFound(c *gc.C) { FILE: jsonhttp/jsonhttp.go type ErrorToResponse (line 19) | type ErrorToResponse type ErrorHandler (line 25) | type ErrorHandler function HandleErrors (line 30) | func HandleErrors(errToResp ErrorToResponse) func(handle ErrorHandler) h... type responseWriter (line 56) | type responseWriter struct method Write (line 61) | func (w *responseWriter) Write(data []byte) (int, error) { method WriteHeader (line 66) | func (w *responseWriter) WriteHeader(code int) { method Flush (line 72) | func (w *responseWriter) Flush() { function WriteError (line 85) | func WriteError(errToResp ErrorToResponse) func(w http.ResponseWriter, e... function WriteJSON (line 94) | func WriteJSON(w http.ResponseWriter, code int, val any) error { type JSONHandler (line 115) | type JSONHandler function HandleJSON (line 121) | func HandleJSON(errToResp ErrorToResponse) func(handle JSONHandler) http... FILE: jsonhttp/jsonhttp_test.go type suite (line 16) | type suite struct method TestWriteJSON (line 20) | func (*suite) TestWriteJSON(c *gc.C) { method TestWriteError (line 86) | func (s *suite) TestWriteError(c *gc.C) { method TestHandleErrors (line 105) | func (s *suite) TestHandleErrors(c *gc.C) { method TestHandleErrorsWithErrorAfterWriteHeader (line 152) | func (s *suite) TestHandleErrorsWithErrorAfterWriteHeader(c *gc.C) { method TestHandleJSON (line 167) | func (s *suite) TestHandleJSON(c *gc.C) { type errorResponse (line 39) | type errorResponse struct function errorToResponse (line 43) | func errorToResponse(err error) (int, any) { function parseErrorResponse (line 98) | func parseErrorResponse(c *gc.C, body []byte) *errorResponse { FILE: jsonhttp/package_test.go function TestPackage (line 12) | func TestPackage(t *testing.T) { FILE: keyvalues/keyvalues.go type DuplicateError (line 16) | type DuplicateError method Error (line 18) | func (e DuplicateError) Error() string { function Parse (line 24) | func Parse(src []string, allowEmptyValues bool) (map[string]string, erro... FILE: keyvalues/keyvalues_test.go type keyValuesSuite (line 12) | type keyValuesSuite struct method TestMapParsing (line 126) | func (keyValuesSuite) TestMapParsing(c *gc.C) { FILE: keyvalues/package_test.go function TestPackage (line 12) | func TestPackage(t *testing.T) { FILE: limiter.go type empty (line 14) | type empty struct type limiter (line 15) | type limiter struct method Acquire (line 60) | func (l limiter) Acquire() bool { method AcquireWait (line 76) | func (l limiter) AcquireWait() { method Release (line 82) | func (l limiter) Release() error { method pause (line 91) | func (l limiter) pause() { type Limiter (line 23) | type Limiter interface function NewLimiter (line 37) | func NewLimiter(maxAllowed int) Limiter { function NewLimiterWithPause (line 43) | func NewLimiterWithPause(maxAllowed int, minPause, maxPause time.Duratio... FILE: limiter_test.go constant longWait (line 18) | longWait = 10 * time.Second type limiterSuite (line 20) | type limiterSuite struct method TestAcquireUntilFull (line 26) | func (*limiterSuite) TestAcquireUntilFull(c *gc.C) { method TestBadRelease (line 33) | func (*limiterSuite) TestBadRelease(c *gc.C) { method TestAcquireAndRelease (line 38) | func (*limiterSuite) TestAcquireAndRelease(c *gc.C) { method TestAcquireWaitBlocksUntilRelease (line 50) | func (*limiterSuite) TestAcquireWaitBlocksUntilRelease(c *gc.C) { method TestAcquirePauses (line 84) | func (*limiterSuite) TestAcquirePauses(c *gc.C) { FILE: multireader.go type SizeReaderAt (line 14) | type SizeReaderAt interface function NewMultiReaderAt (line 29) | func NewMultiReaderAt(parts ...SizeReaderAt) SizeReaderAt { type offsetAndSource (line 42) | type offsetAndSource struct type multiReaderAt (line 47) | type multiReaderAt struct method Size (line 52) | func (m *multiReaderAt) Size() int64 { method ReadAt (line 56) | func (m *multiReaderAt) ReadAt(p []byte, off int64) (n int, err error) { function NewMultiReaderSeeker (line 101) | func NewMultiReaderSeeker(readers ...io.ReadSeeker) io.ReadSeeker { function newSizeReaderAt (line 121) | func newSizeReaderAt(r io.ReadSeeker) (SizeReaderAt, error) { type sizeReaderAt (line 134) | type sizeReaderAt struct method ReadAt (line 141) | func (r *sizeReaderAt) ReadAt(buf []byte, off int64) (n int, err error) { method Size (line 155) | func (r *sizeReaderAt) Size() int64 { type readSeeker (line 160) | type readSeeker struct method Seek (line 166) | func (r *readSeeker) Seek(off int64, whence int) (int64, error) { method Read (line 182) | func (r *readSeeker) Read(buf []byte) (int, error) { FILE: multireader_test.go type multiReaderSeekerSuite (line 17) | type multiReaderSeekerSuite struct method TestSequentialRead (line 21) | func (*multiReaderSeekerSuite) TestSequentialRead(c *gc.C) { method TestSeekStart (line 34) | func (*multiReaderSeekerSuite) TestSeekStart(c *gc.C) { method TestSeekEnd (line 55) | func (*multiReaderSeekerSuite) TestSeekEnd(c *gc.C) { method TestSeekCur (line 76) | func (*multiReaderSeekerSuite) TestSeekCur(c *gc.C) { method TestSeekAfterRead (line 107) | func (*multiReaderSeekerSuite) TestSeekAfterRead(c *gc.C) { method TestSeekNegative (line 129) | func (*multiReaderSeekerSuite) TestSeekNegative(c *gc.C) { method TestSeekPastEnd (line 154) | func (*multiReaderSeekerSuite) TestSeekPastEnd(c *gc.C) { type multiReaderAtSuite (line 182) | type multiReaderAtSuite struct method TestReadComplete (line 186) | func (*multiReaderAtSuite) TestReadComplete(c *gc.C) { method TestReadPartial (line 203) | func (*multiReaderAtSuite) TestReadPartial(c *gc.C) { function newMultiStringReader (line 220) | func newMultiStringReader(parts []string) io.ReadSeeker { type stringReader (line 228) | type stringReader struct method Size (line 234) | func (r stringReader) Size() int64 { function newMultistringReaderAt (line 238) | func newMultistringReaderAt(parts []string) io.ReaderAt { FILE: naturalsort.go function SortStringsNaturally (line 14) | func SortStringsNaturally(s []string) []string { type naturally (line 19) | type naturally method Len (line 21) | func (n naturally) Len() int { method Swap (line 25) | func (n naturally) Swap(a, b int) { method Less (line 31) | func (n naturally) Less(a, b int) bool { function splitAtNumber (line 65) | func splitAtNumber(str string) (string, int, string) { function indexOfDigit (line 79) | func indexOfDigit(str string) int { function indexOfNonDigit (line 88) | func indexOfNonDigit(str string) int { FILE: naturalsort_test.go type naturalSortSuite (line 15) | type naturalSortSuite struct method TestEmpty (line 21) | func (s *naturalSortSuite) TestEmpty(c *gc.C) { method TestAlpha (line 25) | func (s *naturalSortSuite) TestAlpha(c *gc.C) { method TestNumVsString (line 29) | func (s *naturalSortSuite) TestNumVsString(c *gc.C) { method TestStringVsStringNum (line 33) | func (s *naturalSortSuite) TestStringVsStringNum(c *gc.C) { method TestCommonPrefix (line 37) | func (s *naturalSortSuite) TestCommonPrefix(c *gc.C) { method TestDifferentNumberLengths (line 41) | func (s *naturalSortSuite) TestDifferentNumberLengths(c *gc.C) { method TestZeroPadding (line 45) | func (s *naturalSortSuite) TestZeroPadding(c *gc.C) { method TestMixed (line 49) | func (s *naturalSortSuite) TestMixed(c *gc.C) { method TestSeveralNumericParts (line 53) | func (s *naturalSortSuite) TestSeveralNumericParts(c *gc.C) { method TestUnitNameLike (line 78) | func (s *naturalSortSuite) TestUnitNameLike(c *gc.C) { method TestMachineIdLike (line 82) | func (s *naturalSortSuite) TestMachineIdLike(c *gc.C) { method TestIPs (line 101) | func (s *naturalSortSuite) TestIPs(c *gc.C) { function checkCorrectSort (line 112) | func checkCorrectSort(c *gc.C, expected []string) { function checkSort (line 119) | func checkSort(c *gc.C, expected []string, xform func([]string)) { function copyStrSlice (line 127) | func copyStrSlice(in []string) []string { function shuffle (line 133) | func shuffle(a []string) { function reverse (line 141) | func reverse(a []string) { FILE: network.go function GetIPv4Address (line 17) | func GetIPv4Address(addresses []net.Addr) (string, error) { function GetIPv6Address (line 35) | func GetIPv6Address(addresses []net.Addr) (string, error) { function GetAddressForInterface (line 51) | func GetAddressForInterface(interfaceName string) (string, error) { function GetV4OrV6AddressForInterface (line 68) | func GetV4OrV6AddressForInterface(interfaceName string) (string, error) { FILE: network_test.go type networkSuite (line 15) | type networkSuite struct method TestGetIPv4Address (line 40) | func (*networkSuite) TestGetIPv4Address(c *gc.C) { method TestGetIPv6Address (line 79) | func (*networkSuite) TestGetIPv6Address(c *gc.C) { type fakeAddress (line 21) | type fakeAddress struct method Network (line 25) | func (fake fakeAddress) Network() string { method String (line 29) | func (fake fakeAddress) String() string { function makeAddresses (line 33) | func makeAddresses(values ...string) (result []net.Addr) { FILE: os.go constant OSWindows (line 8) | OSWindows = "windows" constant OSDarwin (line 9) | OSDarwin = "darwin" constant OSDragonfly (line 10) | OSDragonfly = "dragonfly" constant OSFreebsd (line 11) | OSFreebsd = "freebsd" constant OSLinux (line 12) | OSLinux = "linux" constant OSNacl (line 13) | OSNacl = "nacl" constant OSNetbsd (line 14) | OSNetbsd = "netbsd" constant OSOpenbsd (line 15) | OSOpenbsd = "openbsd" constant OSSolaris (line 16) | OSSolaris = "solaris" function OSIsUnix (line 34) | func OSIsUnix(os string) bool { FILE: os_test.go type osSuite (line 16) | type osSuite struct method TestOSIsUnixKnown (line 20) | func (osSuite) TestOSIsUnixKnown(c *gc.C) { method TestOSIsUnixWindows (line 29) | func (osSuite) TestOSIsUnixWindows(c *gc.C) { method TestOSIsUnixUnknown (line 35) | func (osSuite) TestOSIsUnixUnknown(c *gc.C) { FILE: package_test.go function TestPackage (line 12) | func TestPackage(t *testing.T) { FILE: parallel/package_test.go function TestPackage (line 12) | func TestPackage(t *testing.T) { FILE: parallel/parallel.go type Run (line 14) | type Run struct method Do (line 53) | func (r *Run) Do(f func() error) { method Wait (line 71) | func (r *Run) Wait() error { method runner (line 84) | func (r *Run) runner() { type Errors (line 23) | type Errors method Error (line 25) | func (errs Errors) Error() string { function NewRun (line 38) | func NewRun(max int) *Run { FILE: parallel/parallel_test.go type parallelSuite (line 19) | type parallelSuite struct method TestParallelMaxPar (line 25) | func (*parallelSuite) TestParallelMaxPar(c *gc.C) { method TestConcurrentDo (line 86) | func (*parallelSuite) TestConcurrentDo(c *gc.C) { method TestParallelError (line 112) | func (*parallelSuite) TestParallelError(c *gc.C) { method TestZeroWorkerPanics (line 144) | func (*parallelSuite) TestZeroWorkerPanics(c *gc.C) { function nothing (line 64) | func nothing() error { function BenchmarkRunSingle (line 68) | func BenchmarkRunSingle(b *stdtesting.B) { function BenchmarkRun1000p100 (line 76) | func BenchmarkRun1000p100(b *stdtesting.B) { type intError (line 106) | type intError method Error (line 108) | func (intError) Error() string { FILE: parallel/try.go type Try (line 21) | type Try struct method loop (line 78) | func (t *Try) loop() (io.Closer, error) { method Start (line 122) | func (t *Try) Start(try func(stop <-chan struct{}) (io.Closer, error))... method Close (line 163) | func (t *Try) Close() { method Dead (line 175) | func (t *Try) Dead() <-chan struct{} { method Wait (line 181) | func (t *Try) Wait() error { method Result (line 191) | func (t *Try) Result() (io.Closer, error) { method Kill (line 197) | func (t *Try) Kill() { function NewTry (line 43) | func NewTry(maxParallel int, combineErrors func(err0, err1 error) error)... function chooseLastError (line 69) | func chooseLastError(err0, err1 error) error { type result (line 73) | type result struct FILE: parallel/try_test.go constant shortWait (line 22) | shortWait = 50 * time.Millisecond constant longWait (line 23) | longWait = 10 * time.Second type result (line 26) | type result method Close (line 28) | func (r result) Close() error { type trySuite (line 32) | type trySuite struct method TestOneSuccess (line 45) | func (*trySuite) TestOneSuccess(c *gc.C) { method TestOneFailure (line 53) | func (*trySuite) TestOneFailure(c *gc.C) { method TestStartReturnsErrorAfterClose (line 74) | func (*trySuite) TestStartReturnsErrorAfterClose(c *gc.C) { method TestOutOfOrderResults (line 89) | func (*trySuite) TestOutOfOrderResults(c *gc.C) { method TestMaxParallel (line 98) | func (*trySuite) TestMaxParallel(c *gc.C) { method TestStartBlocksForMaxParallel (line 129) | func (*trySuite) TestStartBlocksForMaxParallel(c *gc.C) { method TestAllConcurrent (line 208) | func (*trySuite) TestAllConcurrent(c *gc.C) { method TestErrorCombine (line 251) | func (*trySuite) TestErrorCombine(c *gc.C) { method TestTriesAreStopped (line 275) | func (*trySuite) TestTriesAreStopped(c *gc.C) { method TestCloseTwice (line 295) | func (*trySuite) TestCloseTwice(c *gc.C) { method TestExtraResultsAreClosed (line 313) | func (*trySuite) TestExtraResultsAreClosed(c *gc.C) { method TestEverything (line 347) | func (*trySuite) TestEverything(c *gc.C) { function tryFunc (line 38) | func tryFunc(delay time.Duration, val io.Closer, err error) func(<-chan ... type gradedError (line 230) | type gradedError method Error (line 232) | func (e gradedError) Error() string { function gradedErrorCombine (line 236) | func gradedErrorCombine(err0, err1 error) error { type multiError (line 243) | type multiError struct method Error (line 247) | func (e *multiError) Error() string { type closeResult (line 304) | type closeResult struct method Close (line 308) | func (r *closeResult) Close() error { FILE: password.go constant randomPasswordBytes (line 20) | randomPasswordBytes = 18 function RandomBytes (line 28) | func RandomBytes(n int) ([]byte, error) { function RandomPassword (line 38) | func RandomPassword() (string, error) { function RandomSalt (line 49) | func RandomSalt() (string, error) { function UserPasswordHash (line 65) | func UserPasswordHash(password string, salt string) string { function AgentPasswordHash (line 87) | func AgentPasswordHash(password string) string { FILE: password_test.go type passwordSuite (line 14) | type passwordSuite struct method TestRandomBytes (line 24) | func (*passwordSuite) TestRandomBytes(c *gc.C) { method TestRandomPassword (line 37) | func (*passwordSuite) TestRandomPassword(c *gc.C) { method TestRandomSalt (line 46) | func (*passwordSuite) TestRandomSalt(c *gc.C) { method TestUserPasswordHash (line 60) | func (*passwordSuite) TestUserPasswordHash(c *gc.C) { method TestAgentPasswordHash (line 79) | func (*passwordSuite) TestAgentPasswordHash(c *gc.C) { FILE: proxy/package_test.go function TestPackage (line 12) | func TestPackage(t *testing.T) { FILE: proxy/proxy.go constant http_proxy (line 16) | http_proxy = "http_proxy" constant https_proxy (line 17) | https_proxy = "https_proxy" constant ftp_proxy (line 18) | ftp_proxy = "ftp_proxy" constant no_proxy (line 19) | no_proxy = "no_proxy" type Settings (line 25) | type Settings struct method AsScriptEnvironment (line 54) | func (s *Settings) AsScriptEnvironment() string { method AsEnvironmentValues (line 74) | func (s *Settings) AsEnvironmentValues() []string { method AsSystemdDefaultEnv (line 93) | func (s *Settings) AsSystemdDefaultEnv() string { method SetEnvironmentValues (line 113) | func (s *Settings) SetEnvironmentValues() { method FullNoProxy (line 125) | func (s *Settings) FullNoProxy() string { function getSetting (line 33) | func getSetting(key string) string { function DetectProxies (line 42) | func DetectProxies() Settings { FILE: proxy/proxy_test.go type proxySuite (line 15) | type proxySuite struct method TestDetectNoSettings (line 21) | func (s *proxySuite) TestDetectNoSettings(c *gc.C) { method TestDetectPrimary (line 38) | func (s *proxySuite) TestDetectPrimary(c *gc.C) { method TestDetectFallback (line 60) | func (s *proxySuite) TestDetectFallback(c *gc.C) { method TestDetectPrimaryPreference (line 82) | func (s *proxySuite) TestDetectPrimaryPreference(c *gc.C) { method TestAsScriptEnvironmentEmpty (line 104) | func (s *proxySuite) TestAsScriptEnvironmentEmpty(c *gc.C) { method TestAsScriptEnvironmentOneValue (line 109) | func (s *proxySuite) TestAsScriptEnvironmentOneValue(c *gc.C) { method TestAsScriptEnvironmentAllValue (line 119) | func (s *proxySuite) TestAsScriptEnvironmentAllValue(c *gc.C) { method TestAsEnvironmentValuesEmpty (line 138) | func (s *proxySuite) TestAsEnvironmentValuesEmpty(c *gc.C) { method TestAsEnvironmentValuesOneValue (line 143) | func (s *proxySuite) TestAsEnvironmentValuesOneValue(c *gc.C) { method TestAsEnvironmentValuesAllValue (line 154) | func (s *proxySuite) TestAsEnvironmentValuesAllValue(c *gc.C) { method TestAsSystemdDefaultEnv (line 174) | func (s *proxySuite) TestAsSystemdDefaultEnv(c *gc.C) { method TestSetEnvironmentValues (line 191) | func (s *proxySuite) TestSetEnvironmentValues(c *gc.C) { method TestAutoNoProxy (line 223) | func (s *proxySuite) TestAutoNoProxy(c *gc.C) { FILE: randomstring.go function init (line 24) | func init() { function RandomString (line 32) | func RandomString(n int, validRunes []rune) string { FILE: randomstring_test.go type randomStringSuite (line 14) | type randomStringSuite struct method TestLength (line 25) | func (randomStringSuite) TestLength(c *gc.C) { method TestContentInValidRunes (line 30) | func (randomStringSuite) TestContentInValidRunes(c *gc.C) { FILE: registry/package_test.go function TestAll (line 12) | func TestAll(t *testing.T) { FILE: registry/registry.go type TypedNameVersion (line 19) | type TypedNameVersion struct method Register (line 47) | func (r *TypedNameVersion) Register(name string, version int, obj any)... method List (line 82) | func (r *TypedNameVersion) List() []Description { method Get (line 98) | func (r *TypedNameVersion) Get(name string, version int) (any, error) { function NewTypedNameVersion (line 25) | func NewTypedNameVersion(requiredType reflect.Type) *TypedNameVersion { type Description (line 33) | type Description struct type Versions (line 39) | type Versions function descriptionFromVersions (line 69) | func descriptionFromVersions(name string, versions Versions) Description { FILE: registry/registry_test.go type registrySuite (line 17) | type registrySuite struct method TestDescriptionFromVersions (line 45) | func (s *registrySuite) TestDescriptionFromVersions(c *gc.C) { method TestDescriptionFromVersionsAreSorted (line 62) | func (s *registrySuite) TestDescriptionFromVersionsAreSorted(c *gc.C) { method TestRegisterAndList (line 79) | func (s *registrySuite) TestRegisterAndList(c *gc.C) { method TestRegisterAndListMultiple (line 87) | func (s *registrySuite) TestRegisterAndListMultiple(c *gc.C) { method TestRegisterWrongType (line 99) | func (s *registrySuite) TestRegisterWrongType(c *gc.C) { method TestRegisterAlreadyPresent (line 105) | func (s *registrySuite) TestRegisterAlreadyPresent(c *gc.C) { method TestGet (line 122) | func (s *registrySuite) TestGet(c *gc.C) { method TestGetUnknown (line 136) | func (s *registrySuite) TestGetUnknown(c *gc.C) { method TestGetUnknownVersion (line 144) | func (s *registrySuite) TestGetUnknownVersion(c *gc.C) { type Factory (line 23) | type Factory function nilFactory (line 25) | func nilFactory() (any, error) { type testFacade (line 31) | type testFacade struct method TestMethod (line 40) | func (t *testFacade) TestMethod() stringVal { type stringVal (line 36) | type stringVal struct FILE: relativeurl.go function RelativeURLPath (line 21) | func RelativeURLPath(basePath, targPath string) (string, error) { FILE: relativeurl_test.go type relativeURLSuite (line 15) | type relativeURLSuite struct method TestRelativeURL (line 132) | func (*relativeURLSuite) TestRelativeURL(c *gc.C) { FILE: setenv.go function Setenv (line 19) | func Setenv(env []string, entry string) []string { FILE: setenv_test.go type SetenvSuite (line 12) | type SetenvSuite struct method TestSetenv (line 27) | func (*SetenvSuite) TestSetenv(c *gc.C) { FILE: shell/bash.go type BashRenderer (line 11) | type BashRenderer struct method RenderScript (line 16) | func (*BashRenderer) RenderScript(commands []string) []byte { FILE: shell/bash_test.go type bashSuite (line 17) | type bashSuite struct method SetUpTest (line 27) | func (s *bashSuite) SetUpTest(c *gc.C) { method TestExeSuffix (line 35) | func (s bashSuite) TestExeSuffix(c *gc.C) { method TestShQuote (line 41) | func (s bashSuite) TestShQuote(c *gc.C) { method TestChmod (line 47) | func (s bashSuite) TestChmod(c *gc.C) { method TestWriteFile (line 55) | func (s bashSuite) TestWriteFile(c *gc.C) { method TestMkdir (line 69) | func (s bashSuite) TestMkdir(c *gc.C) { method TestMkdirAll (line 77) | func (s bashSuite) TestMkdirAll(c *gc.C) { method TestChown (line 85) | func (s bashSuite) TestChown(c *gc.C) { method TestTouchDefault (line 93) | func (s bashSuite) TestTouchDefault(c *gc.C) { method TestTouchTimestamp (line 101) | func (s bashSuite) TestTouchTimestamp(c *gc.C) { method TestRedirectFD (line 110) | func (s bashSuite) TestRedirectFD(c *gc.C) { method TestRedirectOutput (line 118) | func (s bashSuite) TestRedirectOutput(c *gc.C) { method TestRedirectOutputReset (line 126) | func (s bashSuite) TestRedirectOutputReset(c *gc.C) { method TestScriptFilename (line 134) | func (s bashSuite) TestScriptFilename(c *gc.C) { method TestScriptPermissions (line 140) | func (s bashSuite) TestScriptPermissions(c *gc.C) { FILE: shell/command.go type CommandRenderer (line 13) | type CommandRenderer interface FILE: shell/output.go type OutputRenderer (line 19) | type OutputRenderer interface function ResolveFD (line 58) | func ResolveFD(name string) (int, bool) { FILE: shell/package_test.go function Test (line 12) | func Test(t *testing.T) { FILE: shell/powershell.go type PowershellRenderer (line 19) | type PowershellRenderer struct method Quote (line 24) | func (pr *PowershellRenderer) Quote(str string) string { method Chmod (line 29) | func (pr *PowershellRenderer) Chmod(path string, perm os.FileMode) []s... method WriteFile (line 35) | func (pr *PowershellRenderer) WriteFile(filename string, data []byte) ... method Mkdir (line 43) | func (pr *PowershellRenderer) Mkdir(dirname string) []string { method MkdirAll (line 51) | func (pr *PowershellRenderer) MkdirAll(dirname string) []string { method ScriptFilename (line 56) | func (pr *PowershellRenderer) ScriptFilename(name, dirname string) str... constant psRemoteWrapper (line 67) | psRemoteWrapper = "powershell.exe -Sta -NonInteractive -ExecutionPolicy ... function newEncodedPSScript (line 71) | func newEncodedPSScript(script string) (string, error) { function NewPSEncodedCommand (line 84) | func NewPSEncodedCommand(script string) (string, error) { FILE: shell/powershell_test.go type powershellSuite (line 16) | type powershellSuite struct method SetUpTest (line 24) | func (s *powershellSuite) SetUpTest(c *gc.C) { method TestExeSuffix (line 32) | func (s powershellSuite) TestExeSuffix(c *gc.C) { method TestShQuote (line 38) | func (s powershellSuite) TestShQuote(c *gc.C) { method TestChmod (line 44) | func (s powershellSuite) TestChmod(c *gc.C) { method TestWriteFile (line 50) | func (s powershellSuite) TestWriteFile(c *gc.C) { method TestMkdir (line 65) | func (s powershellSuite) TestMkdir(c *gc.C) { method TestMkdirAll (line 73) | func (s powershellSuite) TestMkdirAll(c *gc.C) { method TestNewPSEncodedCommand (line 81) | func (s powershellSuite) TestNewPSEncodedCommand(c *gc.C) { FILE: shell/renderer.go type PathRenderer (line 18) | type PathRenderer interface type Renderer (line 33) | type Renderer interface function NewRenderer (line 40) | func NewRenderer(name string) (Renderer, error) { FILE: shell/renderer_test.go type rendererSuite (line 18) | type rendererSuite struct method SetUpTest (line 27) | func (s *rendererSuite) SetUpTest(c *gc.C) { method checkRenderer (line 34) | func (s rendererSuite) checkRenderer(c *gc.C, renderer shell.Renderer,... method TestNewRendererDefault (line 45) | func (s rendererSuite) TestNewRendererDefault(c *gc.C) { method TestNewRendererGOOS (line 58) | func (s rendererSuite) TestNewRendererGOOS(c *gc.C) { method TestNewRendererWindows (line 71) | func (s rendererSuite) TestNewRendererWindows(c *gc.C) { method TestNewRendererUnix (line 78) | func (s rendererSuite) TestNewRendererUnix(c *gc.C) { method TestNewRendererDistros (line 88) | func (s rendererSuite) TestNewRendererDistros(c *gc.C) { method TestNewRendererUnknown (line 99) | func (s rendererSuite) TestNewRendererUnknown(c *gc.C) { FILE: shell/script.go function DumpFileOnErrorScript (line 16) | func DumpFileOnErrorScript(filename string) string { type ScriptRenderer (line 33) | type ScriptRenderer interface type ScriptWriter (line 42) | type ScriptWriter interface function WriteScript (line 68) | func WriteScript(renderer ScriptWriter, name, dirname string, script []s... FILE: shell/script_test.go type scriptSuite (line 21) | type scriptSuite struct method TestDumpFileOnErrorScriptOutput (line 27) | func (*scriptSuite) TestDumpFileOnErrorScriptOutput(c *gc.C) { method TestDumpFileOnErrorScript (line 41) | func (*scriptSuite) TestDumpFileOnErrorScript(c *gc.C) { method TestWriteScriptUnix (line 74) | func (*scriptSuite) TestWriteScriptUnix(c *gc.C) { method TestWriteScriptWindows (line 97) | func (*scriptSuite) TestWriteScriptWindows(c *gc.C) { FILE: shell/unix.go type unixRenderer (line 16) | type unixRenderer struct method Quote (line 21) | func (unixRenderer) Quote(str string) string { method ExeSuffix (line 27) | func (unixRenderer) ExeSuffix() string { method Mkdir (line 32) | func (ur unixRenderer) Mkdir(dirname string) []string { method MkdirAll (line 40) | func (ur unixRenderer) MkdirAll(dirname string) []string { method Chmod (line 48) | func (ur unixRenderer) Chmod(path string, perm os.FileMode) []string { method Chown (line 56) | func (ur unixRenderer) Chown(path, owner, group string) []string { method Touch (line 64) | func (ur unixRenderer) Touch(path string, timestamp *time.Time) []stri... method WriteFile (line 76) | func (ur unixRenderer) WriteFile(filename string, data []byte) []string { method outFD (line 84) | func (unixRenderer) outFD(name string) (int, bool) { method RedirectFD (line 93) | func (ur unixRenderer) RedirectFD(dst, src string) []string { method RedirectOutput (line 108) | func (ur unixRenderer) RedirectOutput(filename string) []string { method RedirectOutputReset (line 117) | func (ur unixRenderer) RedirectOutputReset(filename string) []string { method ScriptFilename (line 126) | func (ur *unixRenderer) ScriptFilename(name, dirname string) string { method ScriptPermissions (line 131) | func (ur *unixRenderer) ScriptPermissions() os.FileMode { FILE: shell/win.go type windowsRenderer (line 15) | type windowsRenderer struct method ExeSuffix (line 20) | func (w *windowsRenderer) ExeSuffix() string { method ScriptPermissions (line 25) | func (w *windowsRenderer) ScriptPermissions() os.FileMode { method RenderScript (line 30) | func (w *windowsRenderer) RenderScript(commands []string) []byte { method Chown (line 35) | func (w windowsRenderer) Chown(path, owner, group string) []string { method Touch (line 41) | func (w windowsRenderer) Touch(path string, timestamp *time.Time) []st... method RedirectFD (line 47) | func (w windowsRenderer) RedirectFD(dst, src string) []string { method RedirectOutput (line 53) | func (w windowsRenderer) RedirectOutput(filename string) []string { method RedirectOutputReset (line 59) | func (w windowsRenderer) RedirectOutputReset(filename string) []string { FILE: shell/wincmd.go type WinCmdRenderer (line 15) | type WinCmdRenderer struct method Quote (line 20) | func (wcr *WinCmdRenderer) Quote(str string) string { method Chmod (line 25) | func (wcr *WinCmdRenderer) Chmod(path string, perm os.FileMode) []stri... method WriteFile (line 31) | func (wcr *WinCmdRenderer) WriteFile(filename string, data []byte) []s... method Mkdir (line 42) | func (wcr *WinCmdRenderer) Mkdir(dirname string) []string { method MkdirAll (line 50) | func (wcr *WinCmdRenderer) MkdirAll(dirname string) []string { method ScriptFilename (line 59) | func (wcr *WinCmdRenderer) ScriptFilename(name, dirname string) string { FILE: shell/wincmd_test.go type winCmdSuite (line 16) | type winCmdSuite struct method SetUpTest (line 24) | func (s *winCmdSuite) SetUpTest(c *gc.C) { method TestExeSuffix (line 32) | func (s winCmdSuite) TestExeSuffix(c *gc.C) { method TestShQuote (line 38) | func (s winCmdSuite) TestShQuote(c *gc.C) { method TestChmod (line 44) | func (s winCmdSuite) TestChmod(c *gc.C) { method TestWriteFile (line 50) | func (s winCmdSuite) TestWriteFile(c *gc.C) { method TestMkdir (line 61) | func (s winCmdSuite) TestMkdir(c *gc.C) { method TestMkdirAll (line 69) | func (s winCmdSuite) TestMkdirAll(c *gc.C) { FILE: size.go function ParseSize (line 20) | func ParseSize(str string) (MB uint64, err error) { function sizeSuffixMultiplier (line 54) | func sizeSuffixMultiplier(i int) int { type SizeTracker (line 63) | type SizeTracker struct method Size (line 69) | func (st SizeTracker) Size() int64 { method Write (line 74) | func (st *SizeTracker) Write(data []byte) (n int, err error) { FILE: size_test.go type sizeSuite (line 20) | type sizeSuite struct method TestParseSize (line 24) | func (*sizeSuite) TestParseSize(c *gc.C) { method TestSizingReaderOkay (line 86) | func (*sizeSuite) TestSizingReaderOkay(c *gc.C) { method TestSizingReaderMixedEOF (line 101) | func (*sizeSuite) TestSizingReaderMixedEOF(c *gc.C) { method TestSizingWriter (line 121) | func (*sizeSuite) TestSizingWriter(c *gc.C) { type fakeStream (line 137) | type fakeStream struct method Read (line 142) | func (f *fakeStream) Read(data []byte) (int, error) { FILE: ssh/authorisedkeys.go type ListMode (line 26) | type ListMode constant defaultAuthKeysFile (line 34) | defaultAuthKeysFile = "authorized_keys" type AuthorisedKey (line 37) | type AuthorisedKey struct function authKeysDir (line 43) | func authKeysDir(username string) (string, error) { function ParseAuthorisedKey (line 58) | func ParseAuthorisedKey(line string) (*AuthorisedKey, error) { function ConcatAuthorisedKeys (line 76) | func ConcatAuthorisedKeys(a, b string) string { function SplitAuthorisedKeys (line 91) | func SplitAuthorisedKeys(keyData string) []string { function readAuthorisedKeys (line 106) | func readAuthorisedKeys(username, filename string) ([]string, error) { function writeAuthorisedKeys (line 130) | func writeAuthorisedKeys(username, filename string, keys []string) error { function AddKeys (line 194) | func AddKeys(user string, newKeys ...string) error { function DeleteKeys (line 207) | func DeleteKeys(user string, keyIds ...string) error { function ReplaceKeys (line 220) | func ReplaceKeys(user string, newKeys ...string) error { function ListKeys (line 239) | func ListKeys(user string, mode ListMode) ([]string, error) { constant JujuCommentPrefix (line 252) | JujuCommentPrefix = "Juju:" function EnsureJujuComment (line 254) | func EnsureJujuComment(key string) string { function AddKeysToFile (line 275) | func AddKeysToFile(user, file string, newKeys []string) error { function DeleteKeysFromFile (line 290) | func DeleteKeysFromFile(user, file string, keyIds []string) error { function ListKeysFromFile (line 301) | func ListKeysFromFile(user, file string, mode ListMode) ([]string, error) { function addKeys (line 311) | func addKeys(user, file string, newKeys, existingKeys []string) error { function deleteKeys (line 341) | func deleteKeys(user, file string, existingKeys, keyIdsToDelete []string... function listKeys (line 382) | func listKeys(existingKeys []string, mode ListMode) ([]string, error) { FILE: ssh/authorisedkeys_test.go type AuthorisedKeysKeysSuite (line 18) | type AuthorisedKeysKeysSuite struct method TestListKeys (line 37) | func (s *AuthorisedKeysKeysSuite) TestListKeys(c *gc.C) { method TestListKeysFull (line 50) | func (s *AuthorisedKeysKeysSuite) TestListKeysFull(c *gc.C) { method TestAddNewKey (line 61) | func (s *AuthorisedKeysKeysSuite) TestAddNewKey(c *gc.C) { method TestAddMoreKeys (line 70) | func (s *AuthorisedKeysKeysSuite) TestAddMoreKeys(c *gc.C) { method TestAddDuplicateKey (line 84) | func (s *AuthorisedKeysKeysSuite) TestAddDuplicateKey(c *gc.C) { method TestAddDuplicateComment (line 96) | func (s *AuthorisedKeysKeysSuite) TestAddDuplicateComment(c *gc.C) { method TestAddKeyWithoutComment (line 108) | func (s *AuthorisedKeysKeysSuite) TestAddKeyWithoutComment(c *gc.C) { method TestAddKeepsUnrecognised (line 117) | func (s *AuthorisedKeysKeysSuite) TestAddKeepsUnrecognised(c *gc.C) { method TestDeleteKeys (line 127) | func (s *AuthorisedKeysKeysSuite) TestDeleteKeys(c *gc.C) { method TestDeleteKeysKeepsUnrecognised (line 139) | func (s *AuthorisedKeysKeysSuite) TestDeleteKeysKeepsUnrecognised(c *g... method TestDeleteNonExistentComment (line 149) | func (s *AuthorisedKeysKeysSuite) TestDeleteNonExistentComment(c *gc.C) { method TestDeleteNonExistentFingerprint (line 156) | func (s *AuthorisedKeysKeysSuite) TestDeleteNonExistentFingerprint(c *... method TestDeleteLastKeyForbidden (line 163) | func (s *AuthorisedKeysKeysSuite) TestDeleteLastKeyForbidden(c *gc.C) { method TestReplaceKeys (line 173) | func (s *AuthorisedKeysKeysSuite) TestReplaceKeys(c *gc.C) { method TestReplaceKeepsUnrecognised (line 191) | func (s *AuthorisedKeysKeysSuite) TestReplaceKeepsUnrecognised(c *gc.C) { method TestEnsureJujuComment (line 201) | func (s *AuthorisedKeysKeysSuite) TestEnsureJujuComment(c *gc.C) { method TestSplitAuthorisedKeys (line 218) | func (s *AuthorisedKeysKeysSuite) TestSplitAuthorisedKeys(c *gc.C) { method TestParseAuthorisedKey (line 243) | func (s *AuthorisedKeysKeysSuite) TestParseAuthorisedKey(c *gc.C) { method TestConcatAuthorisedKeys (line 283) | func (s *AuthorisedKeysKeysSuite) TestConcatAuthorisedKeys(c *gc.C) { method TestAddKeysToFileToDifferentFiles (line 294) | func (s *AuthorisedKeysKeysSuite) TestAddKeysToFileToDifferentFiles(c ... method TestAddKeysToFileMultipleKeys (line 312) | func (s *AuthorisedKeysKeysSuite) TestAddKeysToFileMultipleKeys(c *gc.... method TestDeleteAllKeysFromFile (line 323) | func (s *AuthorisedKeysKeysSuite) TestDeleteAllKeysFromFile(c *gc.C) { method TestDeleteSomeKeysFromFile (line 335) | func (s *AuthorisedKeysKeysSuite) TestDeleteSomeKeysFromFile(c *gc.C) { constant testSSHUser (line 24) | testSSHUser = "" constant authKeysFile (line 25) | authKeysFile = "authorized_keys" constant alternativeKeysFile2 (line 26) | alternativeKeysFile2 = "authorized_keys2" constant alternativeKeysFile3 (line 27) | alternativeKeysFile3 = "authorized_keys3" function writeAuthKeysFile (line 32) | func writeAuthKeysFile(c *gc.C, keys []string, file string) { function b64decode (line 237) | func b64decode(c *gc.C, s string) []byte { FILE: ssh/clientkeys.go constant clientKeyName (line 20) | clientKeyName = "juju_id_ed25519" constant PublicKeySuffix (line 23) | PublicKeySuffix = ".pub" function LoadClientKeys (line 46) | func LoadClientKeys(dir string) error { function ClearClientKeys (line 77) | func ClearClientKeys() { function generateClientKey (line 83) | func generateClientKey(dir string) (keyfile string, key ssh.Signer, err ... function loadClientKeys (line 103) | func loadClientKeys(dir string) (map[string]ssh.Signer, error) { function privateKeys (line 124) | func privateKeys() (signers []ssh.Signer) { function PrivateKeyFiles (line 135) | func PrivateKeyFiles() []string { function PublicKeyFiles (line 147) | func PublicKeyFiles() []string { function publicKeyFiles (line 158) | func publicKeyFiles(clientKeysDir string) ([]string, error) { FILE: ssh/clientkeys_test.go type ClientKeysSuite (line 18) | type ClientKeysSuite struct method SetUpTest (line 24) | func (s *ClientKeysSuite) SetUpTest(c *gc.C) { method TestPublicKeyFiles (line 50) | func (s *ClientKeysSuite) TestPublicKeyFiles(c *gc.C) { method TestPrivateKeyFiles (line 73) | func (s *ClientKeysSuite) TestPrivateKeyFiles(c *gc.C) { method TestLoadClientKeysDirExists (line 100) | func (s *ClientKeysSuite) TestLoadClientKeysDirExists(c *gc.C) { function checkFiles (line 31) | func checkFiles(c *gc.C, obtained, expected []string) { function checkPublicKeyFiles (line 40) | func checkPublicKeyFiles(c *gc.C, expected ...string) { function checkPrivateKeyFiles (line 45) | func checkPrivateKeyFiles(c *gc.C, expected ...string) { FILE: ssh/export_test.go type ReadLineWriter (line 25) | type ReadLineWriter function PatchTerminal (line 27) | func PatchTerminal(s *testing.CleanupSuite, rlw ReadLineWriter) { function PatchNilTerminal (line 41) | func PatchNilTerminal(s *testing.CleanupSuite) { FILE: ssh/fakes_test.go type fakeClient (line 17) | type fakeClient struct method checkCalls (line 29) | func (cl *fakeClient) checkCalls(c *gc.C, host string, command []strin... method Command (line 37) | func (cl *fakeClient) Command(host string, command []string, options *... method Copy (line 49) | func (cl *fakeClient) Copy(args []string, options *ssh.Options) error { type bufferWriter (line 56) | type bufferWriter struct method Close (line 60) | func (*bufferWriter) Close() error { type fakeCommandImpl (line 64) | type fakeCommandImpl struct method checkCalls (line 79) | func (ci *fakeCommandImpl) checkCalls(c *gc.C, stdin io.Reader, stdout... method checkStdin (line 86) | func (ci *fakeCommandImpl) checkStdin(c *gc.C, data string) { method Start (line 90) | func (ci *fakeCommandImpl) Start() error { method Wait (line 95) | func (ci *fakeCommandImpl) Wait() error { method Kill (line 100) | func (ci *fakeCommandImpl) Kill() error { method SetStdio (line 105) | func (ci *fakeCommandImpl) SetStdio(stdin io.Reader, stdout, stderr io... method StdinPipe (line 112) | func (ci *fakeCommandImpl) StdinPipe() (io.WriteCloser, io.Reader, err... method StdoutPipe (line 117) | func (ci *fakeCommandImpl) StdoutPipe() (io.ReadCloser, io.Writer, err... method StderrPipe (line 122) | func (ci *fakeCommandImpl) StderrPipe() (io.ReadCloser, io.Writer, err... FILE: ssh/fingerprint.go function KeyFingerprint (line 17) | func KeyFingerprint(key string) (fingerprint, comment string, err error) { FILE: ssh/fingerprint_test.go type FingerprintSuite (line 15) | type FingerprintSuite struct method TestKeyFingerprint (line 21) | func (s *FingerprintSuite) TestKeyFingerprint(c *gc.C) { method TestKeyFingerprintError (line 34) | func (s *FingerprintSuite) TestKeyFingerprintError(c *gc.C) { FILE: ssh/generate.go function GenerateKey (line 24) | func GenerateKey(comment string) (private, public string, err error) { function PublicKey (line 47) | func PublicKey(privateKey []byte, comment string) (string, error) { FILE: ssh/generate_test.go type GenerateSuite (line 18) | type GenerateSuite struct method TestGenerate (line 65) | func (s *GenerateSuite) TestGenerate(c *gc.C) { function overrideGenerateKey (line 30) | func overrideGenerateKey() testing.Restorer { function generateED25519Key (line 45) | func generateED25519Key(random io.Reader) (ed25519.PublicKey, ed25519.Pr... function generateDSAKey (line 54) | func generateDSAKey(random io.Reader) (*dsa.PrivateKey, error) { FILE: ssh/package_test.go function TestPackage (line 12) | func TestPackage(t *testing.T) { FILE: ssh/run.go type ExecParams (line 20) | type ExecParams struct function StartCommandOnMachine (line 31) | func StartCommandOnMachine(params ExecParams) (*RunningCmd, error) { type RunningCmd (line 59) | type RunningCmd struct method Wait (line 69) | func (cmd *RunningCmd) Wait() (result utilexec.ExecResponse, _ error) { method WaitWithCancel (line 100) | func (cmd *RunningCmd) WaitWithCancel(cancel <-chan struct{}) (utilexe... function getExitCode (line 124) | func getExitCode(err error) (int, error) { function ExecuteCommandOnMachine (line 147) | func ExecuteCommandOnMachine(args ExecParams) (utilexec.ExecResponse, er... FILE: ssh/run_test.go constant shortWait (line 21) | shortWait = 50 * time.Millisecond constant longWait (line 22) | longWait = 10 * time.Second type ExecuteSSHCommandSuite (line 25) | type ExecuteSSHCommandSuite struct method SetUpSuite (line 34) | func (s *ExecuteSSHCommandSuite) SetUpSuite(c *gc.C) { method SetUpTest (line 39) | func (s *ExecuteSSHCommandSuite) SetUpTest(c *gc.C) { method fakeSSH (line 51) | func (s *ExecuteSSHCommandSuite) fakeSSH(c *gc.C, cmd string) { method TestCaptureOutput (line 56) | func (s *ExecuteSSHCommandSuite) TestCaptureOutput(c *gc.C) { method TestIdentityFile (line 72) | func (s *ExecuteSSHCommandSuite) TestIdentityFile(c *gc.C) { method TestTimoutCaptureOutput (line 85) | func (s *ExecuteSSHCommandSuite) TestTimoutCaptureOutput(c *gc.C) { method TestCapturesReturnCode (line 101) | func (s *ExecuteSSHCommandSuite) TestCapturesReturnCode(c *gc.C) { FILE: ssh/ssh.go type StrictHostChecksOption (line 22) | type StrictHostChecksOption constant StrictHostChecksDefault (line 34) | StrictHostChecksDefault StrictHostChecksOption = iota constant StrictHostChecksNo (line 37) | StrictHostChecksNo constant StrictHostChecksYes (line 42) | StrictHostChecksYes constant StrictHostChecksAsk (line 46) | StrictHostChecksAsk type Options (line 50) | type Options struct method SetProxyCommand (line 84) | func (o *Options) SetProxyCommand(command ...string) { method SetPort (line 89) | func (o *Options) SetPort(port int) { method EnablePTY (line 97) | func (o *Options) EnablePTY() { method SetKnownHostsFile (line 104) | func (o *Options) SetKnownHostsFile(file string) { method SetStrictHostKeyChecking (line 111) | func (o *Options) SetStrictHostKeyChecking(value StrictHostChecksOptio... method AllowPasswordAuthentication (line 119) | func (o *Options) AllowPasswordAuthentication() { method SetIdentities (line 127) | func (o *Options) SetIdentities(identityFiles ...string) { method SetHostKeyAlgorithms (line 134) | func (o *Options) SetHostKeyAlgorithms(algos ...string) { type Client (line 139) | type Client interface type Cmd (line 156) | type Cmd struct method CombinedOutput (line 170) | func (c *Cmd) CombinedOutput() ([]byte, error) { method Output (line 186) | func (c *Cmd) Output() ([]byte, error) { method Run (line 197) | func (c *Cmd) Run() error { method Start (line 214) | func (c *Cmd) Start() error { method Wait (line 221) | func (c *Cmd) Wait() error { method Kill (line 226) | func (c *Cmd) Kill() error { method StdinPipe (line 233) | func (c *Cmd) StdinPipe() (io.WriteCloser, error) { method StdoutPipe (line 245) | func (c *Cmd) StdoutPipe() (io.ReadCloser, error) { method StderrPipe (line 257) | func (c *Cmd) StderrPipe() (io.ReadCloser, error) { function newCmd (line 163) | func newCmd(impl command) *Cmd { type command (line 268) | type command interface function init (line 289) | func init() { function initDefaultClient (line 293) | func initDefaultClient() { function Command (line 304) | func Command(host string, command []string, options *Options) *Cmd { function Copy (line 310) | func Copy(args []string, options *Options) error { function CopyReader (line 316) | func CopyReader(host, filename string, r io.Reader, options *Options) er... function copyReader (line 321) | func copyReader(client Client, host, filename string, r io.Reader, optio... FILE: ssh/ssh_gocrypto.go constant sshDefaultPort (line 30) | sshDefaultPort = 22 type GoCryptoClient (line 39) | type GoCryptoClient struct method Command (line 52) | func (c *GoCryptoClient) Command(host string, command []string, option... method Copy (line 89) | func (c *GoCryptoClient) Copy(args []string, options *Options) error { function NewGoCryptoClient (line 47) | func NewGoCryptoClient(signers ...ssh.Signer) (*GoCryptoClient, error) { type goCryptoCommand (line 93) | type goCryptoCommand struct method ensureSession (line 145) | func (c *goCryptoCommand) ensureSession() (*ssh.Session, error) { method Start (line 186) | func (c *goCryptoCommand) Start() error { method Close (line 197) | func (c *goCryptoCommand) Close() error { method Wait (line 211) | func (c *goCryptoCommand) Wait() error { method Kill (line 220) | func (c *goCryptoCommand) Kill() error { method SetStdio (line 227) | func (c *goCryptoCommand) SetStdio(stdin io.Reader, stdout, stderr io.... method StdinPipe (line 233) | func (c *goCryptoCommand) StdinPipe() (io.WriteCloser, io.Reader, erro... method StdoutPipe (line 242) | func (c *goCryptoCommand) StdoutPipe() (io.ReadCloser, io.Writer, erro... method StderrPipe (line 251) | func (c *goCryptoCommand) StderrPipe() (io.ReadCloser, io.Writer, erro... method hostKeyCallback (line 260) | func (c *goCryptoCommand) hostKeyCallback(hostname string, remote net.... type readLineWriter (line 379) | type readLineWriter interface function checkHostKey (line 399) | func checkHostKey( function splitUserHost (line 479) | func splitUserHost(s string) (user, host string) { function GoCryptoKnownHostsFile (line 494) | func GoCryptoKnownHostsFile() string { function SetGoCryptoKnownHostsFile (line 502) | func SetGoCryptoKnownHostsFile(file string) { FILE: ssh/ssh_gocrypto_test.go type sshServer (line 36) | type sshServer struct method run (line 42) | func (s *sshServer) run(errorCh chan error, done chan bool) { function newClient (line 118) | func newClient(c *gc.C) (*ssh.GoCryptoClient, cryptossh.PublicKey) { type SSHGoCryptoCommandSuite (line 131) | type SSHGoCryptoCommandSuite struct method SetUpSuite (line 143) | func (s *SSHGoCryptoCommandSuite) SetUpSuite(c *gc.C) { method SetUpTest (line 180) | func (s *SSHGoCryptoCommandSuite) SetUpTest(c *gc.C) { method newServer (line 191) | func (s *SSHGoCryptoCommandSuite) newServer(c *gc.C, serverConfig cryp... method TestNewGoCryptoClient (line 202) | func (s *SSHGoCryptoCommandSuite) TestNewGoCryptoClient(c *gc.C) { method TestClientNoKeys (line 216) | func (s *SSHGoCryptoCommandSuite) TestClientNoKeys(c *gc.C) { method TestCommand (line 245) | func (s *SSHGoCryptoCommandSuite) TestCommand(c *gc.C) { method TestCopy (line 279) | func (s *SSHGoCryptoCommandSuite) TestCopy(c *gc.C) { method TestProxyCommand (line 286) | func (s *SSHGoCryptoCommandSuite) TestProxyCommand(c *gc.C) { method TestStrictHostChecksYes (line 321) | func (s *SSHGoCryptoCommandSuite) TestStrictHostChecksYes(c *gc.C) { method TestStrictHostChecksAskNonTerminal (line 344) | func (s *SSHGoCryptoCommandSuite) TestStrictHostChecksAskNonTerminal(c... method TestStrictHostChecksAskTerminalYes (line 364) | func (s *SSHGoCryptoCommandSuite) TestStrictHostChecksAskTerminalYes(c... method TestStrictHostChecksAskTerminalNo (line 401) | func (s *SSHGoCryptoCommandSuite) TestStrictHostChecksAskTerminalNo(c ... method TestStrictHostChecksNoMismatch (line 432) | func (s *SSHGoCryptoCommandSuite) TestStrictHostChecksNoMismatch(c *gc... method TestStrictHostChecksDifferentKeyTypes (line 481) | func (s *SSHGoCryptoCommandSuite) TestStrictHostChecksDifferentKeyType... function waitForServer (line 235) | func waitForServer(c *gc.C, errorCh chan error) error { type mockReadLineWriter (line 532) | type mockReadLineWriter struct method addLine (line 538) | func (m *mockReadLineWriter) addLine(line string) { method ReadLine (line 542) | func (m *mockReadLineWriter) ReadLine() (string, error) { method Write (line 552) | func (m *mockReadLineWriter) Write(data []byte) (int, error) { FILE: ssh/ssh_openssh.go type opensshCommandKind (line 29) | type opensshCommandKind constant sshKind (line 32) | sshKind opensshCommandKind = iota constant scpKind (line 33) | scpKind function sshpassWrap (line 39) | func sshpassWrap(cmd string, args []string) (string, []string) { type OpenSSHClient (line 50) | type OpenSSHClient struct method Command (line 145) | func (c *OpenSSHClient) Command(host string, command []string, options... method Copy (line 157) | func (c *OpenSSHClient) Copy(args []string, userOptions *Options) error { function NewOpenSSHClient (line 55) | func NewOpenSSHClient() (*OpenSSHClient, error) { function opensshOptions (line 66) | func opensshOptions(options *Options, commandKind opensshCommandKind) []... type opensshCmd (line 180) | type opensshCmd struct method SetStdio (line 184) | func (c *opensshCmd) SetStdio(stdin io.Reader, stdout, stderr io.Write... method StdinPipe (line 188) | func (c *opensshCmd) StdinPipe() (io.WriteCloser, io.Reader, error) { method StdoutPipe (line 196) | func (c *opensshCmd) StdoutPipe() (io.ReadCloser, io.Writer, error) { method StderrPipe (line 204) | func (c *opensshCmd) StderrPipe() (io.ReadCloser, io.Writer, error) { method Kill (line 212) | func (c *opensshCmd) Kill() error { FILE: ssh/ssh_test.go constant echoCommand (line 26) | echoCommand = "/bin/echo" constant echoScript (line 27) | echoScript = "#!/bin/sh\n" + echoCommand + " $0 \"$@\" | /usr/bin/tee $... type SSHCommandSuite (line 30) | type SSHCommandSuite struct method SetUpTest (line 41) | func (s *SSHCommandSuite) SetUpTest(c *gc.C) { method command (line 56) | func (s *SSHCommandSuite) command(args ...string) *ssh.Cmd { method commandOptions (line 60) | func (s *SSHCommandSuite) commandOptions(args []string, opts *ssh.Opti... method assertCommandArgs (line 64) | func (s *SSHCommandSuite) assertCommandArgs(c *gc.C, cmd *ssh.Cmd, exp... method TestDefaultClient (line 70) | func (s *SSHCommandSuite) TestDefaultClient(c *gc.C) { method TestCommandSSHPass (line 78) | func (s *SSHCommandSuite) TestCommandSSHPass(c *gc.C) { method TestCommand (line 101) | func (s *SSHCommandSuite) TestCommand(c *gc.C) { method TestCommandEnablePTY (line 108) | func (s *SSHCommandSuite) TestCommandEnablePTY(c *gc.C) { method TestCommandSetKnownHostsFile (line 117) | func (s *SSHCommandSuite) TestCommandSetKnownHostsFile(c *gc.C) { method TestSetStrictHostKeyChecking (line 126) | func (s *SSHCommandSuite) TestSetStrictHostKeyChecking(c *gc.C) { method TestCommandAllowPasswordAuthentication (line 152) | func (s *SSHCommandSuite) TestCommandAllowPasswordAuthentication(c *gc... method TestCommandIdentities (line 161) | func (s *SSHCommandSuite) TestCommandIdentities(c *gc.C) { method TestCommandPort (line 170) | func (s *SSHCommandSuite) TestCommandPort(c *gc.C) { method TestCopy (line 179) | func (s *SSHCommandSuite) TestCopy(c *gc.C) { method TestCommandClientKeys (line 207) | func (s *SSHCommandSuite) TestCommandClientKeys(c *gc.C) { method TestCommandError (line 222) | func (s *SSHCommandSuite) TestCommandError(c *gc.C) { method TestCommandDefaultIdentities (line 231) | func (s *SSHCommandSuite) TestCommandDefaultIdentities(c *gc.C) { method TestCopyReader (line 253) | func (s *SSHCommandSuite) TestCopyReader(c *gc.C) { FILE: ssh/stream.go type stripCR (line 12) | type stripCR struct method Read (line 30) | func (s *stripCR) Read(bufOut []byte) (int, error) { function StripCRReader (line 17) | func StripCRReader(reader io.Reader) io.Reader { FILE: ssh/stream_test.go type SSHStreamSuite (line 18) | type SSHStreamSuite struct method TestNewStripCRNil (line 24) | func (s *SSHStreamSuite) TestNewStripCRNil(c *gc.C) { method TestStripCR (line 29) | func (s *SSHStreamSuite) TestStripCR(c *gc.C) { method TestStripCROneByte (line 36) | func (s *SSHStreamSuite) TestStripCROneByte(c *gc.C) { method TestStripCRError (line 43) | func (s *SSHStreamSuite) TestStripCRError(c *gc.C) { FILE: ssh/stream_wrapper_unix.go function WrapStdin (line 14) | func WrapStdin(reader io.Reader) io.Reader { FILE: ssh/stream_wrapper_windows.go function WrapStdin (line 11) | func WrapStdin(reader io.Reader) io.Reader { FILE: ssh/testing/keys.go type SSHKey (line 6) | type SSHKey struct FILE: symlink/symlink.go function Replace (line 15) | func Replace(link, newpath string) error { FILE: symlink/symlink_posix.go function New (line 16) | func New(oldname, newname string) error { function Read (line 21) | func Read(link string) (string, error) { function IsSymlink (line 25) | func IsSymlink(path string) (bool, error) { function getLongPathAsString (line 35) | func getLongPathAsString(path string) (string, error) { FILE: symlink/symlink_test.go type SymlinkSuite (line 19) | type SymlinkSuite struct method TestReplace (line 27) | func (*SymlinkSuite) TestReplace(c *gc.C) { method TestIsSymlinkFile (line 54) | func (*SymlinkSuite) TestIsSymlinkFile(c *gc.C) { method TestIsSymlinkFolder (line 75) | func (*SymlinkSuite) TestIsSymlinkFolder(c *gc.C) { method TestIsSymlinkFalseFile (line 92) | func (*SymlinkSuite) TestIsSymlinkFalseFile(c *gc.C) { method TestIsSymlinkFalseFolder (line 107) | func (*SymlinkSuite) TestIsSymlinkFalseFolder(c *gc.C) { method TestIsSymlinkFileDoesNotExist (line 119) | func (*SymlinkSuite) TestIsSymlinkFileDoesNotExist(c *gc.C) { function Test (line 23) | func Test(t *testing.T) { FILE: symlink/symlink_windows.go constant SYMBOLIC_LINK_FLAG_DIRECTORY (line 19) | SYMBOLIC_LINK_FLAG_DIRECTORY = 1 constant GENERIC_EXECUTION (line 22) | GENERIC_EXECUTION = 33554432 constant FILE_ATTRIBUTE_REPARSE_POINT (line 26) | FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400 function New (line 34) | func New(oldname, newname string) error { function Read (line 63) | func Read(link string) (string, error) { function IsSymlink (line 109) | func IsSymlink(path string) (bool, error) { function getLongPath (line 124) | func getLongPath(path string) ([]uint16, error) { function getLongPathAsString (line 147) | func getLongPathAsString(path string) (string, error) { FILE: symlink/symlink_windows_test.go method TestLongPath (line 17) | func (*SymlinkSuite) TestLongPath(c *gc.C) { method TestCreateSymLink (line 25) | func (*SymlinkSuite) TestCreateSymLink(c *gc.C) { method TestReadData (line 42) | func (*SymlinkSuite) TestReadData(c *gc.C) { FILE: symlink/zsymlink_windows_386.go function createSymbolicLink (line 20) | func createSymbolicLink(symlinkname *uint16, targetname *uint16, flags u... function getFinalPathNameByHandle (line 32) | func getFinalPathNameByHandle(handle syscall.Handle, buf *uint16, buflen... FILE: symlink/zsymlink_windows_amd64.go function createSymbolicLink (line 20) | func createSymbolicLink(symlinkname *uint16, targetname *uint16, flags u... function getFinalPathNameByHandle (line 32) | func getFinalPathNameByHandle(handle syscall.Handle, buf *uint16, buflen... FILE: systemerrmessages_unix.go constant NoSuchUserErrRegexp (line 14) | NoSuchUserErrRegexp = `user: unknown user [a-z0-9_-]*` constant NoSuchFileErrRegexp (line 15) | NoSuchFileErrRegexp = `no such file or directory` constant MkdirFailErrRegexp (line 16) | MkdirFailErrRegexp = `.* not a directory` FILE: systemerrmessages_windows.go constant NoSuchUserErrRegexp (line 11) | NoSuchUserErrRegexp = `No mapping between account names and security IDs... constant NoSuchFileErrRegexp (line 12) | NoSuchFileErrRegexp = `The system cannot find the (file|path) specified\.` constant MkdirFailErrRegexp (line 13) | MkdirFailErrRegexp = `mkdir .*` + NoSuchFileErrRegexp FILE: tailer/package_test.go function TestPackage (line 12) | func TestPackage(t *testing.T) { FILE: tailer/tailer.go constant defaultBufferSize (line 17) | defaultBufferSize = 4096 constant polltime (line 18) | polltime = time.Second constant delimiter (line 19) | delimiter = '\n' type TailerFilterFunc (line 29) | type TailerFilterFunc type Tailer (line 33) | type Tailer struct method Stop (line 70) | func (t *Tailer) Stop() error { method Wait (line 77) | func (t *Tailer) Wait() error { method Dead (line 83) | func (t *Tailer) Dead() <-chan struct{} { method Err (line 88) | func (t *Tailer) Err() error { method loop (line 95) | func (t *Tailer) loop() error { method readLine (line 210) | func (t *Tailer) readLine() ([]byte, error) { method isValid (line 241) | func (t *Tailer) isValid(line []byte) bool { function NewTailer (line 47) | func NewTailer(readSeeker io.ReadSeeker, writer io.Writer, filter Tailer... function newTailer (line 53) | func newTailer(readSeeker io.ReadSeeker, writer io.Writer, function SeekLastLines (line 129) | func SeekLastLines(readSeeker io.ReadSeeker, lines uint, filter TailerFi... FILE: tailer/tailer_test.go type tailerSuite (line 20) | type tailerSuite struct method TestTailer (line 326) | func (s *tailerSuite) TestTailer(c *gc.C) { function startReading (line 370) | func startReading(c *gc.C, tailer *tailer.Tailer, reader *io.PipeReader,... function assertCollected (line 404) | func assertCollected(c *gc.C, linec chan string, compare []string, injec... function startReadSeeker (line 441) | func startReadSeeker(c *gc.C, data []string, initialLeg int, sigc chan s... type readSeeker (line 460) | type readSeeker struct method write (line 467) | func (r *readSeeker) write(s string) { method setError (line 473) | func (r *readSeeker) setError(err error) { method Read (line 479) | func (r *readSeeker) Read(p []byte) (n int, err error) { method Seek (line 493) | func (r *readSeeker) Seek(offset int64, whence int) (ret int64, err er... FILE: tar/tar.go function FindFile (line 28) | func FindFile(tarFile io.Reader, filename string) (*tar.Header, io.Reade... function TarFiles (line 57) | func TarFiles(fileList []string, target io.Writer, strip string) (shaSum... function tarAndHashFiles (line 66) | func tarAndHashFiles(fileList []string, target io.Writer, strip string, ... function writeContents (line 86) | func writeContents(fileName, strip string, tarw *tar.Writer) error { function createAndFill (line 145) | func createAndFill(filePath string, mode int64, content io.Reader) error { function UntarFiles (line 170) | func UntarFiles(tarFile io.Reader, outputFolder string) error { FILE: tar/tar_test.go function TestPackage (line 24) | func TestPackage(t *stdtesting.T) { type TarSuite (line 30) | type TarSuite struct method SetUpTest (line 36) | func (t *TarSuite) SetUpTest(c *gc.C) { method createTestFiles (line 41) | func (t *TarSuite) createTestFiles(c *gc.C) { method removeTestFiles (line 83) | func (t *TarSuite) removeTestFiles(c *gc.C) { method assertTarContents (line 111) | func (t *TarSuite) assertTarContents(c *gc.C, expectedContents []expec... method assertFilesWhereUntared (line 142) | func (t *TarSuite) assertFilesWhereUntared(c *gc.C, method TestTarFiles (line 196) | func (t *TarSuite) TestTarFiles(c *gc.C) { method TestSymlinksTar (line 209) | func (t *TarSuite) TestSymlinksTar(c *gc.C) { method TestUnTarFilesUncompressed (line 244) | func (t *TarSuite) TestUnTarFilesUncompressed(c *gc.C) { method TestFindFileFound (line 260) | func (t *TarSuite) TestFindFileFound(c *gc.C) { method TestFindFileNotFound (line 277) | func (t *TarSuite) TestFindFileNotFound(c *gc.C) { method TestUntarFilesHeadersIgnored (line 290) | func (t *TarSuite) TestUntarFilesHeadersIgnored(c *gc.C) { method TestUntarFilesWithMissingDirectories (line 312) | func (t *TarSuite) TestUntarFilesWithMissingDirectories(c *gc.C) { type expectedTarContents (line 90) | type expectedTarContents struct function shaSumFile (line 188) | func shaSumFile(c *gc.C, fileToSum io.Reader) string { FILE: timer.go type Countdown (line 20) | type Countdown interface function NewBackoffTimer (line 37) | func NewBackoffTimer(config BackoffTimerConfig) *BackoffTimer { type BackoffTimer (line 50) | type BackoffTimer struct method Start (line 87) | func (t *BackoffTimer) Start() { method Reset (line 99) | func (t *BackoffTimer) Reset() { method increaseDuration (line 111) | func (t *BackoffTimer) increaseDuration() { type BackoffTimerConfig (line 61) | type BackoffTimerConfig struct FILE: timer_test.go type TestStdTimer (line 19) | type TestStdTimer struct method Stop (line 23) | func (t *TestStdTimer) Stop() bool { method Reset (line 28) | func (t *TestStdTimer) Reset(d time.Duration) bool { method Chan (line 33) | func (t *TestStdTimer) Chan() <-chan time.Time { type timerSuite (line 37) | type timerSuite struct method SetUpTest (line 73) | func (s *timerSuite) SetUpTest(c *gc.C) { method setup (line 79) | func (s *timerSuite) setup(c *gc.C) { method TestStart (line 109) | func (s *timerSuite) TestStart(c *gc.C) { method TestMultipleStarts (line 115) | func (s *timerSuite) TestMultipleStarts(c *gc.C) { method TestResetNoStart (line 129) | func (s *timerSuite) TestResetNoStart(c *gc.C) { method TestResetAndStart (line 136) | func (s *timerSuite) TestResetAndStart(c *gc.C) { method testStart (line 181) | func (s *timerSuite) testStart(c *gc.C, afterFuncCalls int64, duration... method checkStopCalls (line 192) | func (s *timerSuite) checkStopCalls(c *gc.C, number int) { type mockClock (line 51) | type mockClock struct method Now (line 59) | func (c *mockClock) Now() time.Time { return t... method After (line 60) | func (c *mockClock) After(d time.Duration) <-chan time.Time { return t... method NewTimer (line 61) | func (c *mockClock) NewTimer(d time.Duration) clock.Timer { method AfterFunc (line 65) | func (c *mockClock) AfterFunc(d time.Duration, f func()) clock.Timer { FILE: trivial.go function ShQuote (line 21) | func ShQuote(s string) string { function WinPSQuote (line 28) | func WinPSQuote(s string) string { function WinCmdQuote (line 38) | func WinCmdQuote(s string) string { function winCmdQuote (line 44) | func winCmdQuote(s string) string { function winCmdEscapeMeta (line 56) | func winCmdEscapeMeta(str string) string { function CommandString (line 72) | func CommandString(args ...string) string { function Gzip (line 101) | func Gzip(data []byte) []byte { function Gunzip (line 117) | func Gunzip(data []byte) ([]byte, error) { function ReadSHA256 (line 127) | func ReadSHA256(source io.Reader) (string, int64, error) { function ReadFileSHA256 (line 139) | func ReadFileSHA256(filename string) (string, int64, error) { FILE: trivial_test.go type utilsSuite (line 19) | type utilsSuite struct method TestCompression (line 25) | func (*utilsSuite) TestCompression(c *gc.C) { method TestWinCmdQuote (line 58) | func (*utilsSuite) TestWinCmdQuote(c *gc.C) { method TestWinPSQuote (line 71) | func (*utilsSuite) TestWinPSQuote(c *gc.C) { method TestCommandString (line 84) | func (*utilsSuite) TestCommandString(c *gc.C) { method TestReadSHA256AndReadFileSHA256 (line 108) | func (*utilsSuite) TestReadSHA256AndReadFileSHA256(c *gc.C) { function checkQuoting (line 49) | func checkQuoting(c *gc.C, shQuote func(string) string, tests map[string... FILE: uptime/uptime_nix.go function Uptime (line 15) | func Uptime() (int64, error) { FILE: uptime/uptime_windows.go function Uptime (line 14) | func Uptime() (int64, error) { FILE: uptime/zuptime_windows_386.go function getTickCount64 (line 18) | func getTickCount64() (uptime uint64, err error) { FILE: uptime/zuptime_windows_amd64.go function getTickCount64 (line 18) | func getTickCount64() (uptime uint64, err error) { FILE: username.go function ResolveSudo (line 15) | func ResolveSudo(username string) string { function resolveSudo (line 19) | func resolveSudo(username string, getenvFunc func(string) string) string { function EnvUsername (line 31) | func EnvUsername() (string, error) { function OSUsername (line 36) | func OSUsername() (string, error) { function ResolveUsername (line 52) | func ResolveUsername(resolveSudo func(string) string, usernameFuncs ...f... function LocalUsername (line 71) | func LocalUsername() (string, error) { FILE: username_test.go type usernameSuite (line 17) | type usernameSuite struct method TestResolveUsername (line 21) | func (s *usernameSuite) TestResolveUsername(c *gc.C) { FILE: uuid.go type UUID (line 16) | type UUID method Copy (line 76) | func (uuid UUID) Copy() UUID { method Raw (line 82) | func (uuid UUID) Raw() [16]byte { method String (line 88) | func (uuid UUID) String() string { function UUIDFromString (line 33) | func UUIDFromString(s string) (UUID, error) { function IsValidUUIDString (line 48) | func IsValidUUIDString(s string) bool { function MustNewUUID (line 53) | func MustNewUUID() UUID { function NewUUID (line 62) | func NewUUID() (UUID, error) { FILE: uuid_test.go type uuidSuite (line 14) | type uuidSuite struct method TestUUID (line 20) | func (*uuidSuite) TestUUID(c *gc.C) { method TestIsValidUUIDFailsWhenNotValid (line 38) | func (*uuidSuite) TestIsValidUUIDFailsWhenNotValid(c *gc.C) { method TestUUIDFromString (line 74) | func (*uuidSuite) TestUUIDFromString(c *gc.C) { FILE: voyeur/package_test.go function TestPackage (line 12) | func TestPackage(t *testing.T) { FILE: voyeur/value.go type Value (line 16) | type Value struct method needsInit (line 36) | func (v *Value) needsInit() bool { method init (line 40) | func (v *Value) init() { method Set (line 47) | func (v *Value) Set(val any) { method Close (line 58) | func (v *Value) Close() error { method Closed (line 68) | func (v *Value) Closed() bool { method Get (line 75) | func (v *Value) Get() any { method Watch (line 82) | func (v *Value) Watch() *Watcher { function NewValue (line 26) | func NewValue(initial any) *Value { type Watcher (line 87) | type Watcher struct method Next (line 98) | func (w *Watcher) Next() bool { method Close (line 135) | func (w *Watcher) Close() { method Value (line 145) | func (w *Watcher) Value() any { FILE: voyeur/value_test.go type suite (line 14) | type suite struct method TestValueGetSet (line 46) | func (s *suite) TestValueGetSet(c *gc.C) { method TestValueInitial (line 55) | func (s *suite) TestValueInitial(c *gc.C) { method TestValueClose (line 63) | func (s *suite) TestValueClose(c *gc.C) { method TestWatcher (line 77) | func (s *suite) TestWatcher(c *gc.C) { method TestDoubleSet (line 114) | func (s *suite) TestDoubleSet(c *gc.C) { method TestTwoReceivers (line 145) | func (s *suite) TestTwoReceivers(c *gc.C) { method TestCloseWatcher (line 181) | func (s *suite) TestCloseWatcher(c *gc.C) { method TestWatchZeroValue (line 213) | func (s *suite) TestWatchZeroValue(c *gc.C) { function ExampleWatcher_Next (line 20) | func ExampleWatcher_Next() { FILE: yaml.go function WriteYaml (line 18) | func WriteYaml(path string, obj any) error { function ReadYaml (line 62) | func ReadYaml(path string, obj any) error { function ConformYAML (line 74) | func ConformYAML(input any) (any, error) { FILE: yaml_test.go type yamlSuite (line 15) | type yamlSuite struct method TestYamlRoundTrip (line 20) | func (*yamlSuite) TestYamlRoundTrip(c *gc.C) { method TestReadYamlReturnsNotFound (line 47) | func (*yamlSuite) TestReadYamlReturnsNotFound(c *gc.C) { method TestWriteYamlMissingDirectory (line 62) | func (*yamlSuite) TestWriteYamlMissingDirectory(c *gc.C) { method TestWriteYamlWriteGarbage (line 75) | func (*yamlSuite) TestWriteYamlWriteGarbage(c *gc.C) { type ConformSuite (line 88) | type ConformSuite struct method TestConformYAML (line 92) | func (s *ConformSuite) TestConformYAML(c *gc.C) { FILE: zfile_windows.go function moveFileEx (line 18) | func moveFileEx(lpExistingFileName *uint16, lpNewFileName *uint16, dwFla... FILE: zip/package_test.go function TestPackage (line 12) | func TestPackage(t *testing.T) { FILE: zip/zip.go function FindAll (line 18) | func FindAll(reader *zip.Reader) ([]string, error) { function Find (line 24) | func Find(reader *zip.Reader, pattern string) ([]string, error) { function ExtractAll (line 43) | func ExtractAll(reader *zip.Reader, targetRoot string) error { function Extract (line 51) | func Extract(reader *zip.Reader, targetRoot, sourceRoot string) error { type extractor (line 69) | type extractor struct method targetPath (line 76) | func (x extractor) targetPath(zipFile *zip.File) (string, bool) { method extract (line 96) | func (x extractor) extract(zipFile *zip.File) error { method writeDir (line 119) | func (x extractor) writeDir(targetPath string, modePerm os.FileMode) e... method writeFile (line 139) | func (x extractor) writeFile(targetPath string, zipFile *zip.File, mod... method writeSymlink (line 165) | func (x extractor) writeSymlink(targetPath string, zipFile *zip.File) ... method checkSymlink (line 178) | func (x extractor) checkSymlink(targetPath string, zipFile *zip.File) ... function copyTo (line 199) | func copyTo(writer io.Writer, zipFile *zip.File) error { function isSanePath (line 209) | func isSanePath(path string) bool { FILE: zip/zip_test.go type ZipSuite (line 24) | type ZipSuite struct method makeZip (line 30) | func (s *ZipSuite) makeZip(c *gc.C, entries ...ft.Entry) *stdzip.Reader { method TestFind (line 55) | func (s *ZipSuite) TestFind(c *gc.C) { method TestFindError (line 116) | func (s *ZipSuite) TestFindError(c *gc.C) { method TestExtractAll (line 122) | func (s *ZipSuite) TestExtractAll(c *gc.C) { method TestExtractAllOverwriteFiles (line 142) | func (s *ZipSuite) TestExtractAllOverwriteFiles(c *gc.C) { method TestExtractAllOverwriteSymlinks (line 159) | func (s *ZipSuite) TestExtractAllOverwriteSymlinks(c *gc.C) { method TestExtractAllOverwriteDirs (line 179) | func (s *ZipSuite) TestExtractAllOverwriteDirs(c *gc.C) { method TestExtractAllMergeDirs (line 196) | func (s *ZipSuite) TestExtractAllMergeDirs(c *gc.C) { method TestExtractAllSymlinkErrors (line 223) | func (s *ZipSuite) TestExtractAllSymlinkErrors(c *gc.C) { method TestExtractDir (line 252) | func (s *ZipSuite) TestExtractDir(c *gc.C) { method TestExtractSingleFile (line 289) | func (s *ZipSuite) TestExtractSingleFile(c *gc.C) { method TestClosesFile (line 306) | func (s *ZipSuite) TestClosesFile(c *gc.C) { method TestExtractSymlinkErrors (line 319) | func (s *ZipSuite) TestExtractSymlinkErrors(c *gc.C) { method TestExtractSourceError (line 353) | func (s *ZipSuite) TestExtractSourceError(c *gc.C) {