spaced

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package spaced contains utilities for communicating with spaced.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is used to interact with the spaced process over D-Bus.

func NewClient

func NewClient(ctx context.Context) (*Client, error)

NewClient connects to spaced via D-Bus and returns a Client object.

func (*Client) FreeDiskSpace

func (c *Client) FreeDiskSpace(ctx context.Context, path string) (int64, error)

FreeDiskSpace fetches the free space available for a given path.

func (*Client) RootDeviceSize

func (c *Client) RootDeviceSize(ctx context.Context) (int64, error)

RootDeviceSize fetches the root storage device size for the device.

func (*Client) TotalDiskSpace

func (c *Client) TotalDiskSpace(ctx context.Context, path string) (int64, error)

TotalDiskSpace fetches the total disk space for a given path.

Jump to

Keyboard shortcuts

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