Documentation

Index

Constants

View Source
const (
	TrafficRouteType model.ResourceType = "SampleTrafficRoute"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TrafficRouteResource

type TrafficRouteResource struct {
	Meta model.ResourceMeta
	Spec *proto.TrafficRoute
}

func NewTrafficRouteResource

func NewTrafficRouteResource() *TrafficRouteResource

func (*TrafficRouteResource) Default

func (r *TrafficRouteResource) Default() error

func (*TrafficRouteResource) GetMeta

func (*TrafficRouteResource) GetSpec

func (*TrafficRouteResource) GetType

func (*TrafficRouteResource) Scope

func (*TrafficRouteResource) SetMeta

func (t *TrafficRouteResource) SetMeta(m model.ResourceMeta)

func (*TrafficRouteResource) SetSpec

func (t *TrafficRouteResource) SetSpec(spec model.ResourceSpec) error

func (*TrafficRouteResource) Validate

func (t *TrafficRouteResource) Validate() error

type TrafficRouteResourceList

type TrafficRouteResourceList struct {
	Items      []*TrafficRouteResource
	Pagination model.Pagination
}

func (*TrafficRouteResourceList) AddItem

func (*TrafficRouteResourceList) GetItemType

func (l *TrafficRouteResourceList) GetItemType() model.ResourceType

func (*TrafficRouteResourceList) GetItems

func (l *TrafficRouteResourceList) GetItems() []model.Resource

func (*TrafficRouteResourceList) GetPagination

func (l *TrafficRouteResourceList) GetPagination() *model.Pagination

func (*TrafficRouteResourceList) NewItem