models

package
v0.0.0-...-02f41c6 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChunkHistoryParams

type ChunkHistoryParams struct {

	// filter
	Filter *TimeRangeFilter `json:"filter,omitempty"`

	// Limit number of results in a single chunk. Undefined means +inf.
	Limit *int64 `json:"limit,omitempty"`

	// unit
	Unit *TimeUnit `json:"unit,omitempty"`
}

ChunkHistoryParams chunk history params

swagger:model ChunkHistoryParams

func (*ChunkHistoryParams) ContextValidate

func (m *ChunkHistoryParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this chunk history params based on the context it is used

func (*ChunkHistoryParams) MarshalBinary

func (m *ChunkHistoryParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChunkHistoryParams) UnmarshalBinary

func (m *ChunkHistoryParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChunkHistoryParams) Validate

func (m *ChunkHistoryParams) Validate(formats strfmt.Registry) error

Validate validates this chunk history params

type History

type History struct {

	// cmd
	// Required: true
	Cmd *string `json:"cmd"`

	// paths
	// Min Items: 1
	Paths []string `json:"paths"`

	// when
	// Required: true
	When *Timestamp `json:"when"`
}

History history

swagger:model History

func (*History) ContextValidate

func (m *History) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this history based on the context it is used

func (*History) MarshalBinary

func (m *History) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*History) UnmarshalBinary

func (m *History) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*History) Validate

func (m *History) Validate(formats strfmt.Registry) error

Validate validates this history

type HistoryBlock

type HistoryBlock struct {

	// count
	// Required: true
	Count *int64 `json:"count"`

	// from
	// Required: true
	From *Timestamp `json:"from"`

	// histories
	// Min Items: 1
	Histories []*History `json:"histories"`

	// to
	// Required: true
	To *Timestamp `json:"to"`
}

HistoryBlock history block

swagger:model HistoryBlock

func (*HistoryBlock) ContextValidate

func (m *HistoryBlock) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this history block based on the context it is used

func (*HistoryBlock) MarshalBinary

func (m *HistoryBlock) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HistoryBlock) UnmarshalBinary

func (m *HistoryBlock) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HistoryBlock) Validate

func (m *HistoryBlock) Validate(formats strfmt.Registry) error

Validate validates this history block

type HistoryBlocks

type HistoryBlocks struct {

	// blocks
	// Min Items: 1
	Blocks []*HistoryBlock `json:"blocks"`

	// unit
	// Required: true
	Unit *TimeUnit `json:"unit"`
}

HistoryBlocks history blocks

swagger:model HistoryBlocks

func (*HistoryBlocks) ContextValidate

func (m *HistoryBlocks) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this history blocks based on the context it is used

func (*HistoryBlocks) MarshalBinary

func (m *HistoryBlocks) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HistoryBlocks) UnmarshalBinary

func (m *HistoryBlocks) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HistoryBlocks) Validate

func (m *HistoryBlocks) Validate(formats strfmt.Registry) error

Validate validates this history blocks

type TimeRangeFilter

type TimeRangeFilter struct {

	// from
	From *TimestampNullable `json:"from,omitempty"`

	// to
	To *TimestampNullable `json:"to,omitempty"`
}

TimeRangeFilter time range filter

swagger:model TimeRangeFilter

func (*TimeRangeFilter) ContextValidate

func (m *TimeRangeFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this time range filter based on the context it is used

func (*TimeRangeFilter) MarshalBinary

func (m *TimeRangeFilter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TimeRangeFilter) UnmarshalBinary

func (m *TimeRangeFilter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TimeRangeFilter) Validate

func (m *TimeRangeFilter) Validate(formats strfmt.Registry) error

Validate validates this time range filter

type TimeUnit

type TimeUnit string

TimeUnit time unit

swagger:model TimeUnit

const (

	// TimeUnitAll captures enum value "all"
	TimeUnitAll TimeUnit = "all"

	// TimeUnitYear captures enum value "year"
	TimeUnitYear TimeUnit = "year"

	// TimeUnitMonth captures enum value "month"
	TimeUnitMonth TimeUnit = "month"

	// TimeUnitWeek captures enum value "week"
	TimeUnitWeek TimeUnit = "week"

	// TimeUnitDay captures enum value "day"
	TimeUnitDay TimeUnit = "day"

	// TimeUnitHour captures enum value "hour"
	TimeUnitHour TimeUnit = "hour"

	// TimeUnitMinute captures enum value "minute"
	TimeUnitMinute TimeUnit = "minute"

	// TimeUnitSecond captures enum value "second"
	TimeUnitSecond TimeUnit = "second"
)

func NewTimeUnit

func NewTimeUnit(value TimeUnit) *TimeUnit

func (TimeUnit) ContextValidate

func (m TimeUnit) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this time unit based on context it is used

func (TimeUnit) Validate

func (m TimeUnit) Validate(formats strfmt.Registry) error

Validate validates this time unit

type Timestamp

type Timestamp int64

Timestamp Timestamp in unixtime seconds.

swagger:model Timestamp

func (Timestamp) ContextValidate

func (m Timestamp) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this timestamp based on context it is used

func (Timestamp) Validate

func (m Timestamp) Validate(formats strfmt.Registry) error

Validate validates this timestamp

type TimestampNullable

type TimestampNullable int64

TimestampNullable Timestamp in unixtime seconds.

swagger:model TimestampNullable

func (TimestampNullable) ContextValidate

func (m TimestampNullable) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this timestamp nullable based on context it is used

func (TimestampNullable) Validate

func (m TimestampNullable) Validate(formats strfmt.Registry) error

Validate validates this timestamp nullable

type TimezoneResponse

type TimezoneResponse struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// Timezone offset in seconds.
	// Required: true
	Offset *int64 `json:"offset"`
}

TimezoneResponse timezone response

swagger:model TimezoneResponse

func (*TimezoneResponse) ContextValidate

func (m *TimezoneResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this timezone response based on context it is used

func (*TimezoneResponse) MarshalBinary

func (m *TimezoneResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TimezoneResponse) UnmarshalBinary

func (m *TimezoneResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TimezoneResponse) Validate

func (m *TimezoneResponse) Validate(formats strfmt.Registry) error

Validate validates this timezone response

Jump to

Keyboard shortcuts

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