Documentation ¶
Index ¶
- Constants
- Variables
- func Attr(ctx context.Context, cfg *CliConfig, args []string) error
- func Get(ctx context.Context, cfg *CliConfig, args []string) error
- func Ls(ctx context.Context, w io.Writer, cfg *CliConfig, args []string) error
- func NewWriter(pathstr string, ofs ...Option) (io.WriteCloser, error)
- func NewWriterHttpForTesting(cinfo *ConnectionInfo, id uint64) (io.WriteCloser, error)
- func Put(ctx context.Context, cfg *CliConfig, args []string) error
- func TLSConfigFromCert(cert *x509.Certificate) (*tls.Config, error)
- type CliConfig
- type ConnectionInfo
- type FeConfig
- type Host
- type Option
- type Reader
- type WebdavConfig
Constants ¶
View Source
const GrpcChunkLen = 32 * 1024
Variables ¶
View Source
var ErrNoLocalPathDefined = errors.New("No local root path is defined.")
View Source
var ErrUnknownVhost = errors.New("Unknown vhost.")
View Source
var Log = logger.Registry().Category("cli")
Functions ¶
func NewWriterHttpForTesting ¶
func NewWriterHttpForTesting(cinfo *ConnectionInfo, id uint64) (io.WriteCloser, error)
func TLSConfigFromCert ¶
func TLSConfigFromCert(cert *x509.Certificate) (*tls.Config, error)
Types ¶
type CliConfig ¶
type ConnectionInfo ¶
func ConnectionInfoFromHost ¶
func ConnectionInfoFromHost(h *Host) *ConnectionInfo
func QueryConnectionInfo ¶
func QueryConnectionInfo(cfg *CliConfig, vhost string) (*ConnectionInfo, error)
func (*ConnectionInfo) DialGrpc ¶
func (ci *ConnectionInfo) DialGrpc(ctx context.Context) (*grpc.ClientConn, error)
type FeConfig ¶
type FeConfig struct { ListenAddr string WebUIRootPath string `toml:"webui_root_path"` Certs []*x509.Certificate CertsFile string Key crypto.PrivateKey KeyFile string BasicAuthUser string BasicAuthPassword string }
type Host ¶
type Host struct { ApiEndpoint string // FIXME: Remove ExpectedCertFile ExpectedCertFile string OverrideServerName string CACert *x509.Certificate CACertFile string `toml:"ca_cert_file"` Certs []*x509.Certificate CertsFile string Key crypto.PrivateKey KeyFile string }
type Option ¶
type Option func(*options)
func AllowOverwrite ¶
AllowOverwrite allows NewWriter to open an existing file.
func WithCliConfig ¶
func WithContext ¶
type Reader ¶
type Reader interface { io.ReadCloser Size() int64 }
func NewReaderHttpForTesting ¶
func NewReaderHttpForTesting(cinfo *ConnectionInfo, id uint64) (Reader, error)
type WebdavConfig ¶
type WebdavConfig struct { ListenAddr string NoTls bool Certs []*x509.Certificate CertsFile string Key crypto.PrivateKey KeyFile string BasicAuthUser string BasicAuthPassword string }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.