cmd

package
v3.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Copyright © 2024 shynome <shynome@gmail.com>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(version string)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type RemoteLockSystem

type RemoteLockSystem struct {
	// contains filtered or unexported fields
}

func NewRemoteLockSystem

func NewRemoteLockSystem(client *rpc.Client) *RemoteLockSystem

func (*RemoteLockSystem) Confirm

func (ls *RemoteLockSystem) Confirm(now time.Time, name0, name1 string, conditions ...webdav.Condition) (release func(), err error)

func (*RemoteLockSystem) Create

func (ls *RemoteLockSystem) Create(now time.Time, details webdav.LockDetails) (token string, err error)

func (*RemoteLockSystem) Refresh

func (ls *RemoteLockSystem) Refresh(now time.Time, token string, duration time.Duration) (ld webdav.LockDetails, err error)

func (*RemoteLockSystem) Unlock

func (ls *RemoteLockSystem) Unlock(now time.Time, token string) (err error)

Jump to

Keyboard shortcuts

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