data

package
v0.0.0-...-9dcd7e1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allowlist

type Allowlist struct {
	// optional
	ModifiedAt string `json:"modified_at"`
	// required: the domains to allow
	Domains []Domain `json:"domains"`
}

func NewAllowlistCSV

func NewAllowlistCSV(r *io.LimitedReader) (*Allowlist, error)

func NewAllowlistJSON

func NewAllowlistJSON(data []byte) (*Allowlist, error)

type Domain

type Domain struct {
	// required: the domain to allow
	Domain string `json:"domain"`

	// optional: when the domain initially joined
	JoinedAt string `json:"joined_at"`
	// optional: point of contact(s) for the domain
	AdminUsers string `json:"admin_users"`
	// optional: any additional comments
	Comment string `json:"comment"`
}

Jump to

Keyboard shortcuts

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