types

package
v0.6.28 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SortAsc       SortDir = "asc"
	SortDesc      SortDir = "desc"
	SortName      SortKey = "name"
	SortStatus    SortKey = "status"
	SortCreatedAt SortKey = "created_at"
	SortUpdatedAt SortKey = "updated_at"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SortDir

type SortDir string

SortDir is a type for specifying in which direction to sort a list of stacks.

func (SortDir) IsValid

func (sd SortDir) IsValid() error

func (SortDir) List

func (sd SortDir) List() []SortDir

func (*SortDir) MarshalJSON

func (sd *SortDir) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface

func (SortDir) String

func (sd SortDir) String() string

func (SortDir) StringList

func (sd SortDir) StringList() []string

func (*SortDir) UnmarshalJSON

func (sd *SortDir) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface

func (SortDir) ValidOrNil

func (sd SortDir) ValidOrNil() (*SortDir, error)

type SortKey

type SortKey string

SortKey is a type for specifying by which key to sort a list of stacks.

func (SortKey) IsValid

func (sk SortKey) IsValid() error

func (SortKey) List

func (sk SortKey) List() []SortKey

func (*SortKey) MarshalJSON

func (sk *SortKey) MarshalJSON() ([]byte, error)

MarshalJSON - implements Marshaler interface

func (SortKey) String

func (sk SortKey) String() string

func (SortKey) StringList

func (sk SortKey) StringList() []string

func (*SortKey) UnmarshalJSON

func (sk *SortKey) UnmarshalJSON(data []byte) error

UnmarshalJSON - implements Unmarshaler interface

func (SortKey) ValidOrNil

func (sk SortKey) ValidOrNil() (*SortKey, error)

Jump to

Keyboard shortcuts

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