charon-0.1: Template
Safe HaskellSafe-Inferred
LanguageGHC2021

Charon.Backend.Fdo.DirectorySizes

Description

Provides functionality for handling the directorysizes file in the FDO spec.

Synopsis

Types

newtype DirectorySizes Source #

Represents the directorysizes contents.

Instances

Instances details
Monoid DirectorySizes Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

Semigroup DirectorySizes Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

Generic DirectorySizes Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

Associated Types

type Rep DirectorySizes :: Type -> Type #

Show DirectorySizes Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

Serial DirectorySizes Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

Associated Types

type DecodeExtra DirectorySizes Source #

NFData DirectorySizes Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

Methods

rnf :: DirectorySizes -> () #

Eq DirectorySizes Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

(k ~ An_Iso, a ~ Seq DirectorySizesEntry, b ~ Seq DirectorySizesEntry) => LabelOptic "unDirectorySizes" k DirectorySizes DirectorySizes a b Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

type Rep DirectorySizes Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

type Rep DirectorySizes = D1 ('MetaData "DirectorySizes" "Charon.Backend.Fdo.DirectorySizes" "charon-0.1-inplace" 'True) (C1 ('MetaCons "MkDirectorySizes" 'PrefixI 'True) (S1 ('MetaSel ('Just "unDirectorySizes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Seq DirectorySizesEntry))))
type DecodeExtra DirectorySizes Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

data DirectorySizesEntry Source #

directorysizes entry.

Constructors

MkDirectorySizesEntry 

Fields

  • size :: Bytes B Natural

    Directory size in bytes. This does not include the size of the directory itself.

  • time :: Natural

    The time this directory was deleted. The units are milliseconds since the unix epoch.

  • fileName :: ByteString

    Percent encoded filename.

Instances

Instances details
Generic DirectorySizesEntry Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

Associated Types

type Rep DirectorySizesEntry :: Type -> Type #

Show DirectorySizesEntry Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

Serial DirectorySizesEntry Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

NFData DirectorySizesEntry Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

Methods

rnf :: DirectorySizesEntry -> () #

Eq DirectorySizesEntry Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

(k ~ A_Lens, a ~ ByteString, b ~ ByteString) => LabelOptic "fileName" k DirectorySizesEntry DirectorySizesEntry a b Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

(k ~ A_Lens, a ~ Bytes 'B Natural, b ~ Bytes 'B Natural) => LabelOptic "size" k DirectorySizesEntry DirectorySizesEntry a b Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

(k ~ A_Lens, a ~ Natural, b ~ Natural) => LabelOptic "time" k DirectorySizesEntry DirectorySizesEntry a b Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

type Rep DirectorySizesEntry Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

type Rep DirectorySizesEntry = D1 ('MetaData "DirectorySizesEntry" "Charon.Backend.Fdo.DirectorySizes" "charon-0.1-inplace" 'False) (C1 ('MetaCons "MkDirectorySizesEntry" 'PrefixI 'True) (S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Bytes 'B Natural)) :*: (S1 ('MetaSel ('Just "time") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "fileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))))
type DecodeExtra DirectorySizesEntry Source # 
Instance details

Defined in Charon.Backend.Fdo.DirectorySizes

Adding

appendEntry :: forall m env. (HasCallStack, HasTrashHome env, MonadCatch m, MonadLoggerNS m, MonadReader env m, MonadFileReader m, MonadFileWriter m, MonadPathReader m, MonadPathWriter m, MonadTime m) => DirectorySizesEntry -> m () Source #

Appends an entry to directorysizes.

Removing

Reading