models

package
v1.87.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node added in v1.60.0

type Node struct {
	Storage        string `toml:"storage"`
	Address        string `toml:"address"`
	Token          string `toml:"token"`
	DefaultPrimary bool   `toml:"primary"`
}

Node describes an address that serves a storage

func (Node) String added in v1.84.0

func (n Node) String() string

String prints out the node attributes but hiding the token

type Repository

type Repository struct {
	RelativePath string
	Primary      Node
	Replicas     []Node
}

Repository describes a repository's relative path and its primary and list of secondaries

func (Repository) Clone added in v1.83.0

func (r Repository) Clone() Repository

Clone returns deep copy of the Repository

Jump to

Keyboard shortcuts

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