core

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JobStatusRunning    = "RUNNING"
	JobStatusSuccessful = "SUCCESSFUL"
	JobStatusFailed     = "FAILED"
)

Variables

View Source
var PlanToString = map[Plan]string{
	PlanBasic:   "basic",
	PlanPremium: "premium",
}
View Source
var (
	Register = schema.NewRegister(groupName)
)

Functions

This section is empty.

Types

type AttributeMeta

type AttributeMeta struct {
}

func (*AttributeMeta) DeepCopy

func (in *AttributeMeta) DeepCopy() *AttributeMeta

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttributeMeta.

func (*AttributeMeta) DeepCopyInto

func (in *AttributeMeta) DeepCopyInto(out *AttributeMeta)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AttributeMeta) GetGroup

func (s *AttributeMeta) GetGroup() string

type Contract

type Contract struct {
	AttributeMeta
	Id          string         `read:"id"`
	ServiceCode string         `read:"service_code"`
	State       types.State    `read:"state"`
	Favorite    types.Favorite `read:"favorite" update:"favorite"`
	Plan        Plan           `read:"plan"`
	Description string         `read:"description" update:"description"`
}

+k8s:deepcopy-gen:interfaces=github.com/mimuret/golang-iij-dpf/pkg/api.Object

func (*Contract) DeepCopy

func (in *Contract) DeepCopy() *Contract

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Contract.

func (*Contract) DeepCopyInto

func (in *Contract) DeepCopyInto(out *Contract)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Contract) DeepCopyObject

func (in *Contract) DeepCopyObject() api.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new api.Object.

func (*Contract) GetName

func (c *Contract) GetName() string

func (*Contract) GetPathMethod

func (c *Contract) GetPathMethod(action api.Action) (string, string)

func (*Contract) SetParams

func (c *Contract) SetParams(args ...interface{}) error

type ContractList

type ContractList struct {
	AttributeMeta
	api.Count
	Items []Contract `read:"items"`
}

+k8s:deepcopy-gen:interfaces=github.com/mimuret/golang-iij-dpf/pkg/api.Object

func (*ContractList) AddItem

func (c *ContractList) AddItem(v interface{}) bool

func (*ContractList) ClearItems

func (c *ContractList) ClearItems()

func (*ContractList) DeepCopy

func (in *ContractList) DeepCopy() *ContractList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContractList.

func (*ContractList) DeepCopyInto

func (in *ContractList) DeepCopyInto(out *ContractList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ContractList) DeepCopyObject

func (in *ContractList) DeepCopyObject() api.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new api.Object.

func (*ContractList) GetItems

func (c *ContractList) GetItems() interface{}

func (*ContractList) GetMaxLimit

func (c *ContractList) GetMaxLimit() int32

func (*ContractList) GetName

func (c *ContractList) GetName() string

func (*ContractList) GetPathMethod

func (c *ContractList) GetPathMethod(action api.Action) (string, string)

func (*ContractList) Index

func (c *ContractList) Index(i int) interface{}

func (*ContractList) Init

func (c *ContractList) Init()

func (*ContractList) Len

func (c *ContractList) Len() int

func (*ContractList) SetParams

func (c *ContractList) SetParams(args ...interface{}) error

type ContractListSearchKeywords

type ContractListSearchKeywords struct {
	api.CommonSearchParams
	FullText    api.KeywordsString   `url:"_keywords_full_text[],omitempty"`
	ServiceCode api.KeywordsString   `url:"_keywords_service_code[],omitempty"`
	Plan        KeywordsPlan         `url:"_keywords_plan[],omitempty"`
	State       api.KeywordsState    `url:"_keywords_state[],omitempty"`
	Favorite    api.KeywordsFavorite `url:"_keywords_favorite[],omitempty"`
	Description api.KeywordsString   `url:"_keywords_description[],omitempty"`
}

+k8s:deepcopy-gen=false

func (*ContractListSearchKeywords) GetValues

func (s *ContractListSearchKeywords) GetValues() (url.Values, error)

type Delegation

type Delegation struct {
	AttributeMeta
	Id                    string     `read:"id"`
	ServiceCode           string     `read:"service_code"`
	Name                  string     `read:"name"`
	Network               string     `read:"network"`
	Description           string     `read:"description"`
	DelegationRequestedAt types.Time `read:"delegation_requested_at"`
}

+k8s:deepcopy-gen:interfaces=github.com/mimuret/golang-iij-dpf/pkg/api.Object

func (*Delegation) DeepCopy

func (in *Delegation) DeepCopy() *Delegation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Delegation.

func (*Delegation) DeepCopyInto

func (in *Delegation) DeepCopyInto(out *Delegation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Delegation) DeepCopyObject

func (in *Delegation) DeepCopyObject() api.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new api.Object.

type DelegationApply

type DelegationApply struct {
	AttributeMeta
	ZoneIds []string `apply:"zone_ids"`
}

+k8s:deepcopy-gen:interfaces=github.com/mimuret/golang-iij-dpf/pkg/api.Object

func (*DelegationApply) DeepCopy

func (in *DelegationApply) DeepCopy() *DelegationApply

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DelegationApply.

func (*DelegationApply) DeepCopyInto

func (in *DelegationApply) DeepCopyInto(out *DelegationApply)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DelegationApply) DeepCopyObject

func (in *DelegationApply) DeepCopyObject() api.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new api.Object.

func (*DelegationApply) GetName

func (c *DelegationApply) GetName() string

func (*DelegationApply) GetPathMethod

func (c *DelegationApply) GetPathMethod(action api.Action) (string, string)

func (*DelegationApply) SetParams

func (c *DelegationApply) SetParams(args ...interface{}) error

type DelegationList

type DelegationList struct {
	AttributeMeta
	api.Count
	Items []Delegation `read:"items"`
}

+k8s:deepcopy-gen:interfaces=github.com/mimuret/golang-iij-dpf/pkg/api.Object

func (*DelegationList) AddItem

func (c *DelegationList) AddItem(v interface{}) bool

func (*DelegationList) ClearItems

func (c *DelegationList) ClearItems()

func (*DelegationList) DeepCopy

func (in *DelegationList) DeepCopy() *DelegationList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DelegationList.

func (*DelegationList) DeepCopyInto

func (in *DelegationList) DeepCopyInto(out *DelegationList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DelegationList) DeepCopyObject

func (in *DelegationList) DeepCopyObject() api.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new api.Object.

func (*DelegationList) GetItems

func (c *DelegationList) GetItems() interface{}

func (*DelegationList) GetMaxLimit

func (c *DelegationList) GetMaxLimit() int32

func (*DelegationList) GetName

func (c *DelegationList) GetName() string

func (*DelegationList) GetPathMethod

func (c *DelegationList) GetPathMethod(action api.Action) (string, string)

func (*DelegationList) Index

func (c *DelegationList) Index(i int) interface{}

func (*DelegationList) Init

func (c *DelegationList) Init()

func (*DelegationList) Len

func (c *DelegationList) Len() int

func (*DelegationList) SetParams

func (c *DelegationList) SetParams(args ...interface{}) error

type DelegationListSearchKeywords

type DelegationListSearchKeywords struct {
	api.CommonSearchParams
	FullText    api.KeywordsString   `url:"_keywords_full_text[],omitempty"`
	ServiceCode api.KeywordsString   `url:"_keywords_service_code[],omitempty"`
	Name        api.KeywordsString   `url:"_keywords_name[],omitempty"`
	Network     api.KeywordsString   `url:"_keywords_network[],omitempty"`
	Favorite    api.KeywordsFavorite `url:"_keywords_favorite[],omitempty"`
	Description api.KeywordsString   `url:"_keywords_description[],omitempty"`
	Requested   api.KeywordsBoolean  `url:"_keywords_requested[],omitempty"`
}

+k8s:deepcopy-gen=false

func (*DelegationListSearchKeywords) GetValues

func (s *DelegationListSearchKeywords) GetValues() (url.Values, error)

type Job

type Job struct {
	AttributeMeta
	RequestId    string    `read:"request_id"`
	Status       JobStatus `read:"status"`
	ResourceUrl  string    `read:"resources_url"`
	ErrorType    string    `read:"error_type"`
	ErrorMessage string    `read:"error_message"`
}

+k8s:deepcopy-gen:interfaces=github.com/mimuret/golang-iij-dpf/pkg/api.Object

func (*Job) DeepCopy

func (in *Job) DeepCopy() *Job

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Job.

func (*Job) DeepCopyInto

func (in *Job) DeepCopyInto(out *Job)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Job) DeepCopyObject

func (in *Job) DeepCopyObject() api.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new api.Object.

func (*Job) Error added in v0.3.0

func (c *Job) Error() string

func (*Job) GetError added in v0.3.0

func (c *Job) GetError() error

func (*Job) GetName

func (c *Job) GetName() string

func (*Job) GetPathMethod

func (c *Job) GetPathMethod(action api.Action) (string, string)

func (*Job) SetParams

func (c *Job) SetParams(args ...interface{}) error

type JobStatus

type JobStatus string

func (JobStatus) String

func (c JobStatus) String() string

type KeywordsLogStatus

type KeywordsLogStatus []LogStatus

+k8s:deepcopy-gen=false

type KeywordsPlan

type KeywordsPlan []Plan

+k8s:deepcopy-gen=false

func (KeywordsPlan) EncodeValues

func (c KeywordsPlan) EncodeValues(key string, v *url.Values) error

type Log

type Log struct {
	Time      types.Time `read:"time"`
	LogType   string     `read:"log_type"`
	Operator  string     `read:"operator"`
	Operation string     `read:"operation"`
	Target    string     `read:"target"`
	RequestId string     `read:"request_id"`
	Status    LogStatus  `read:"status"`
}

func (*Log) DeepCopy

func (in *Log) DeepCopy() *Log

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Log.

func (*Log) DeepCopyInto

func (in *Log) DeepCopyInto(out *Log)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LogListSearchKeywords

type LogListSearchKeywords struct {
	api.CommonSearchParams
	FullText  api.KeywordsString `url:"_keywords_full_text[],omitempty"`
	LogType   api.KeywordsString `url:"_keywords_log_type[],omitempty"`
	Operator  api.KeywordsString `url:"_keywords_operator[],omitempty"`
	Operation api.KeywordsString `url:"_keywords_operation[],omitempty"`
	Target    api.KeywordsString `url:"_keywords_target[],omitempty"`
	Detail    api.KeywordsString `url:"_keywords_detail[],omitempty"`
	RequestId api.KeywordsString `url:"_keywords_request_id[],omitempty"`
	Status    KeywordsLogStatus  `url:"_keywords_status[],omitempty"`
}

+k8s:deepcopy-gen=false

func (*LogListSearchKeywords) GetValues

func (s *LogListSearchKeywords) GetValues() (url.Values, error)

type LogStatus

type LogStatus string
var (
	LogStatusStart   LogStatus = "start"
	LogStatusSuccess LogStatus = "success"
	LogStatusFailure LogStatus = "failure"
	LogStatusRetry   LogStatus = "retry"
)

func (LogStatus) String

func (c LogStatus) String() string

type Plan

type Plan int
const (
	PlanBasic   Plan = 1
	PlanPremium Plan = 2
)

func (Plan) String

func (c Plan) String() string

type SearchLogsLimit

type SearchLogsLimit int32

+k8s:deepcopy-gen=false

func (SearchLogsLimit) Validate

func (s SearchLogsLimit) Validate() bool

type SearchLogsOffset

type SearchLogsOffset int32

+k8s:deepcopy-gen=false

func (SearchLogsOffset) Validate

func (s SearchLogsOffset) Validate() bool

type Zone

type Zone struct {
	AttributeMeta
	Id               string         `read:"id"`
	CommonConfigId   int64          `read:"common_config_id"`
	ServiceCode      string         `read:"service_code"`
	State            types.State    `read:"state"`
	Favorite         types.Favorite `read:"favorite" update:"favorite"`
	Name             string         `read:"name"`
	Network          string         `read:"network"`
	Description      string         `read:"description" update:"description"`
	ZoneProxyEnabled types.Boolean  `read:"zone_proxy_enabled"`
}

func (*Zone) DeepCopy

func (in *Zone) DeepCopy() *Zone

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Zone.

func (*Zone) DeepCopyInto

func (in *Zone) DeepCopyInto(out *Zone)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Zone) DeepCopyObject

func (in *Zone) DeepCopyObject() api.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new api.Object.

func (*Zone) GetName

func (c *Zone) GetName() string

func (*Zone) GetPathMethod

func (c *Zone) GetPathMethod(action api.Action) (string, string)

func (*Zone) SetParams

func (c *Zone) SetParams(args ...interface{}) error

type ZoneApply

type ZoneApply struct {
	AttributeMeta
	Id          string
	Description string `apply:"description"`
}

func (*ZoneApply) DeepCopy

func (in *ZoneApply) DeepCopy() *ZoneApply

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneApply.

func (*ZoneApply) DeepCopyInto

func (in *ZoneApply) DeepCopyInto(out *ZoneApply)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ZoneApply) DeepCopyObject

func (in *ZoneApply) DeepCopyObject() api.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new api.Object.

func (*ZoneApply) GetName

func (c *ZoneApply) GetName() string

func (*ZoneApply) GetPathMethod

func (c *ZoneApply) GetPathMethod(action api.Action) (string, string)

func (*ZoneApply) SetParams

func (c *ZoneApply) SetParams(args ...interface{}) error

type ZoneList

type ZoneList struct {
	AttributeMeta
	api.Count
	Items []Zone `read:"items"`
}

func (*ZoneList) AddItem

func (c *ZoneList) AddItem(v interface{}) bool

func (*ZoneList) ClearItems

func (c *ZoneList) ClearItems()

func (*ZoneList) DeepCopy

func (in *ZoneList) DeepCopy() *ZoneList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneList.

func (*ZoneList) DeepCopyInto

func (in *ZoneList) DeepCopyInto(out *ZoneList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ZoneList) DeepCopyObject

func (in *ZoneList) DeepCopyObject() api.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new api.Object.

func (*ZoneList) GetItems

func (c *ZoneList) GetItems() interface{}

func (*ZoneList) GetMaxLimit

func (c *ZoneList) GetMaxLimit() int32

func (*ZoneList) GetName

func (c *ZoneList) GetName() string

func (*ZoneList) GetPathMethod

func (c *ZoneList) GetPathMethod(action api.Action) (string, string)

func (*ZoneList) Index

func (c *ZoneList) Index(i int) interface{}

func (*ZoneList) Init

func (c *ZoneList) Init()

func (*ZoneList) Len

func (c *ZoneList) Len() int

func (*ZoneList) SetParams

func (c *ZoneList) SetParams(args ...interface{}) error

type ZoneListSearchKeywords

type ZoneListSearchKeywords struct {
	api.CommonSearchParams
	FullText         api.KeywordsString   `url:"_keywords_full_text[],omitempty"`
	ServiceCode      api.KeywordsString   `url:"_keywords_service_code[],omitempty"`
	Name             api.KeywordsString   `url:"_keywords_name[],omitempty"`
	Network          api.KeywordsString   `url:"_keywords_network[],omitempty"`
	State            api.KeywordsState    `url:"_keywords_state[],omitempty"`
	Favorite         api.KeywordsFavorite `url:"_keywords_favorite[],omitempty"`
	Description      api.KeywordsString   `url:"_keywords_description[],omitempty"`
	CommonConfigId   api.KeywordsId       `url:"_keywords_common_config_id[],omitempty"`
	ZoneProxyEnabled api.KeywordsBoolean  `url:"_keywords_zone_proxy_enabled[],omitempty"`
}

+k8s:deepcopy-gen=false

func (*ZoneListSearchKeywords) GetValues

func (s *ZoneListSearchKeywords) GetValues() (url.Values, error)

Jump to

Keyboard shortcuts

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