Versions in this module Expand all Collapse all v1 v1.7.1 Jun 16, 2023 Changes in this version + const ActionTypeReplaceStr + const ActionTypeUnknownStr + const ActionTypeUpdateStr + var ActionTypesToStrs = [ActionTypeCount]string + var PActionTypeReplace = ActionTypeReplace + var PActionTypeUpdate = ActionTypeUpdate + var PAuthoritativeTypeACL = AuthoritativeTypeACL + var PAuthoritativeTypeMode = AuthoritativeTypeMode + var PPersonaTypeGroup = PersonaTypeGroup + var PPersonaTypeUnknown = PersonaTypeUnknown + var PPersonaTypeUser = PersonaTypeUser + var PPersonaTypeWellKnown = PersonaTypeWellKnown + func ACLUpdate(ctx context.Context, client api.Client, path string, acl *ACL) error + func ContainerChildDelete(ctx context.Context, client api.Client, childPath string, recursive bool) error + func ContainerChildrenGetQuery(ctx context.Context, client api.Client, containerPath string, ...) (<-chan *ContainerChild, <-chan error) + func ContainerChildrenMapAll(ctx context.Context, client api.Client, containerPath string) (map[string]*ContainerChild, error) + func ContainerCreateDir(ctx context.Context, client api.Client, containerPath, dirName string, ...) error + func ContainerCreateFile(ctx context.Context, client api.Client, containerPath, fileName string, ...) error + func ExportCreate(ctx context.Context, client api.Client, export *Export) (int, error) + func ExportDelete(ctx context.Context, client api.Client, id int) error + func ExportUpdate(ctx context.Context, client api.Client, export *Export) error + func SetExportClients(ctx context.Context, client api.Client, id int, addrs ...string) error + func SetExportRootClients(ctx context.Context, client api.Client, id int, addrs ...string) error + func Unexport(ctx context.Context, client api.Client, id int) error + type ACL struct + Action *ActionType + Authoritative *AuthoritativeType + Group *Persona + Mode *FileMode + Owner *Persona + func ACLInspect(ctx context.Context, client api.Client, path string) (*ACL, error) + type ActionType uint8 + const ActionTypeCount + const ActionTypeReplace + const ActionTypeUnknown + const ActionTypeUpdate + func ParseActionType(text string) ActionType + func (p *ActionType) UnmarshalJSON(data []byte) error + func (p ActionType) MarshalJSON() ([]byte, error) + func (p ActionType) String() string + type AuthoritativeType uint8 + const AuthoritativeTypeACL + const AuthoritativeTypeMode + const AuthoritativeTypeUnknown + func ParseAuthoritativeType(text string) AuthoritativeType + func (p *AuthoritativeType) UnmarshalJSON(data []byte) error + func (p AuthoritativeType) MarshalJSON() ([]byte, error) + func (p AuthoritativeType) String() string + type ContainerChild struct + Group *string + Mode *FileMode + Name *string + Owner *string + Path *string + Size *int + Type *string + func ContainerChildrenGetAll(ctx context.Context, client api.Client, containerPath string) ([]*ContainerChild, error) + func ContainerChildrenPostQuery(ctx context.Context, client api.Client, containerPath string, ...) ([]*ContainerChild, error) + type ContainerChildList []*ContainerChild + func (l *ContainerChildList) UnmarshalJSON(text []byte) error + func (l ContainerChildList) MarshalJSON() ([]byte, error) + type ContainerQuery struct + Result []string + Scope *ContainerQueryScope + type ContainerQueryScope struct + Conditions []interface{} + Logic string + type ContainerQueryScopeCondition struct + Attr string + Operator string + Value string + type Export struct + Clients *[]string + ID int + MapAll *UserMapping + MapFailure *UserMapping + MapNonRoot *UserMapping + MapRoot *UserMapping + Paths *[]string + RootClients *[]string + func ExportInspect(ctx context.Context, client api.Client, id int) (*Export, error) + func ExportsList(ctx context.Context, client api.Client) ([]*Export, error) + type ExportList []*Export + func (l *ExportList) UnmarshalJSON(text []byte) error + func (l ExportList) MarshalJSON() ([]byte, error) + type FileMode os.FileMode + func ParseFileMode(s string) (FileMode, error) + func (p *FileMode) UnmarshalText(data []byte) error + func (p FileMode) MarshalText() ([]byte, error) + func (p FileMode) String() string + type Persona struct + ID *PersonaID + Name *string + Type *PersonaType + func (p *Persona) MarshalJSON() ([]byte, error) + func (p *Persona) UnmarshalJSON(data []byte) error + type PersonaID struct + ID string + Type PersonaIDType + func (p *PersonaID) MarshalJSON() ([]byte, error) + func (p *PersonaID) UnmarshalJSON(data []byte) error + type PersonaIDType uint8 + const PersonaIDTypeGID + const PersonaIDTypeGroup + const PersonaIDTypeSID + const PersonaIDTypeUID + const PersonaIDTypeUnknown + const PersonaIDTypeUser + func ParsePersonaIDType(text string) PersonaIDType + func (p *PersonaIDType) UnmarshalJSON(data []byte) error + func (p PersonaIDType) MarshalJSON() ([]byte, error) + func (p PersonaIDType) String() string + type PersonaType uint8 + const PersonaTypeGroup + const PersonaTypeUnknown + const PersonaTypeUser + const PersonaTypeWellKnown + func ParsePersonaType(text string) PersonaType + func (p *PersonaType) UnmarshalJSON(data []byte) error + func (p PersonaType) MarshalJSON() ([]byte, error) + func (p PersonaType) String() string + type UserMapping struct + Enabled *bool + PrimaryGroup *Persona + SecondaryGroup []*Persona + User *Persona + func (um *UserMapping) UnmarshalJSON(data []byte) error