v1

package
v0.0.0-...-171e18a Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pomo

type Pomo struct {
	UUID           string `json:"uuid,omitempty"`
	CreatedAt      string `json:"created_at,omitempty"`
	UpdatedAd      string `json:"updated_at,omitempty"`
	Description    string `json:"description,omitempty"`
	StartedAt      string `json:"started_at,omitempty"`
	EndedAt        string `json:"ended_at,omitempty"`
	LocalStartedAt string `json:"local_started_at,omitempty"`
	LocalEndedAt   string `json:"local_ended_at,omitempty"`
	Length         int    `json:"length,omitempty"`
	Abandonded     bool   `json:"abandoned,omitempty"`
	Manual         bool   `json:"manual,omitempty"`
}

Pomo ...

type PomoGetter

type PomoGetter interface {
	Pomos() PomoInterface
}

PomoGetter has a method to return a DeploymentInterface. A group's client should implement this interface.

type PomoInterface

type PomoInterface interface {
	Create(*Pomo) (*Pomo, error)
	Update(*Pomo) (*Pomo, error)
	Delete(name string, options *v1.DeleteOptions) error
	Get(name string, options v1.GetOptions) (*Pomo, error)
	List(opts v1.ListOptions) (*PomoList, error)
}

PomoInterface has methods to work with Pomo resources.

type PomoList

type PomoList struct {
	// contains filtered or unexported fields
}

type SubTodo

type SubTodo struct {
	UUID        string `json:"uuid,omitempty"`
	ParentUUID  string `json:"parent_uuid,omitempty"`
	CreatedAt   string `json:"created_at,omitempty"`
	UpdatedAd   string `json:"updated_at,omitempty"`
	Description string `json:"description,omitempty"`
	Completed   bool   `json:"completed,omitmpy"`
	CompletedAt string `json:"completed_at,omitempty"`
}

SubTodo ...

type SubTodoGetter

type SubTodoGetter interface {
	SubTodos() SubTodoInterface
}

SubTodoGetter has a method to return a SubTodoInterface. A group's client should implement this interface.

type SubTodoInterface

type SubTodoInterface interface {
	Create(*SubTodo) (*SubTodo, error)
	Update(*SubTodo) (*SubTodo, error)
	Delete(name string, options *v1.DeleteOptions) error
	Get(name string, options v1.GetOptions) (*SubTodo, error)
	List(opts v1.ListOptions) (*SubTodoList, error)
}

SubTodoInterface has methods to work with Pomo resources.

type SubTodoList

type SubTodoList struct {
	// contains filtered or unexported fields
}

type Todo

type Todo struct {
	UUID        string `json:"uuid,omitempty"`
	CreatedAt   string `json:"created_at,omitempty"`
	UpdatedAd   string `json:"updated_at,omitempty"`
	Description string `json:"description,omitempty"`
	Notice      string `json"notice,omitempty"`
	Pin         bool   `json:"pin,omitempty"`
	Completed   bool   `json:"completed,omitmpy"`
	CompletedAt string `json:"completed_at,omitempty"`
	RepeatType  string `json:"repeat_type,omitempty"`
	RepeatTime  string `json:"remind_time,omitempty"`

	CostedPomoCount string `json:"costed_pomo_count,omitempty"`
	SubTodos        string `json:"sub_todos,omitempty"`
	// contains filtered or unexported fields
}

Todo ...

type TodoGetter

type TodoGetter interface {
	Todos() TodoInterface
}

TodoGetter has a method to return a TodoInterface. A group's client should implement this interface.

type TodoInterface

type TodoInterface interface {
	Create(*Todo) (*Todo, error)
	Update(*Todo) (*Todo, error)
	Delete(uuid string, options *v1.DeleteOptions) error
	Get(uuid string, options v1.GetOptions) (*Todo, error)
	List(opts v1.ListOptions) (*TodoList, error)
}

TodoInterface has methods to work with Pomo resources.

type TodoList

type TodoList struct {
	// contains filtered or unexported fields
}

type V1Client

type V1Client struct {
	// contains filtered or unexported fields
}

V1Client is used to interact with features provided by the apps group.

func New

func New(c rest.Interface) *V1Client

New creates a new AppsV1Client for the given RESTClient.

func NewForConfig

func NewForConfig(c *rest.Config) (*V1Client, error)

NewForConfig creates a new AppsV1Client for the given config.

func NewForConfigOrDie

func NewForConfigOrDie(c *rest.Config) *V1Client

NewForConfigOrDie creates a new AppsV1Client for the given config and panics if there is an error in the config.

func (*V1Client) Pomos

func (c *V1Client) Pomos() PomoInterface

func (*V1Client) RESTClient

func (c *V1Client) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*V1Client) SubTodos

func (c *V1Client) SubTodos() SubTodoInterface

func (*V1Client) Todos

func (c *V1Client) Todos() TodoInterface

type V1Interface

type V1Interface interface {
	RESTClient() rest.Interface
	PomoGetter
	TodoGetter
	SubTodoGetter
}

Jump to

Keyboard shortcuts

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