types

package
v1.1.7-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blacklist added in v1.1.2

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

func NewBlacklist added in v1.1.4

func NewBlacklist(entries map[string][]string) *Blacklist

func (*Blacklist) Add added in v1.1.2

func (bl *Blacklist) Add(contract string, action string)

func (Blacklist) Empty added in v1.1.4

func (bl Blacklist) Empty() bool

func (Blacklist) IsAllowed added in v1.1.4

func (bl Blacklist) IsAllowed(contract string, action string) bool

func (Blacklist) IsDenied added in v1.1.4

func (bl Blacklist) IsDenied(contract string, action string) bool

func (*Blacklist) SetWhitelist added in v1.1.4

func (bl *Blacklist) SetWhitelist(value bool) *Blacklist

type Size

type Size int64

The value is in bytes.

func (*Size) Parse

func (s *Size) Parse(value string) error

Parse a string into number of bytes stored in a int64

func (Size) String

func (s Size) String() string

func (*Size) UnmarshalText

func (s *Size) UnmarshalText(text []byte) error

func (*Size) UnmarshalYAML

func (s *Size) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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