contracts

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPathMethodForChildSpec

func GetPathMethodForChildSpec(action api.Action, s ChildSpec) (string, string)

func GetPathMethodForListSpec

func GetPathMethodForListSpec(action api.Action, s ListSpec) (string, string)

Types

type AttributeMeta

type AttributeMeta struct {
	ContractID string
}

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) GetContractID

func (s *AttributeMeta) GetContractID() string

func (*AttributeMeta) GetGroup

func (s *AttributeMeta) GetGroup() string

func (*AttributeMeta) SetContractID

func (s *AttributeMeta) SetContractID(id string)

type ChildSpec

type ChildSpec interface {
	Spec
	GetID() int64
	SetID(int64)
}

type CommonConfig

type CommonConfig struct {
	AttributeMeta
	ID int64 `read:"id"`
	// patchable
	Name        string `read:"name"  create:"name" update:"name"`
	Description string `read:"description"  create:"description" update:"description"`
	// not patchable
	ManagedDNSEnabled types.Boolean `read:"managed_dns_enabled"`
	Default           types.Boolean `read:"default"`
}

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

func (*CommonConfig) DeepCopy

func (in *CommonConfig) DeepCopy() *CommonConfig

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

func (*CommonConfig) DeepCopyInto

func (in *CommonConfig) DeepCopyInto(out *CommonConfig)

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

func (*CommonConfig) DeepCopyObject

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

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

func (*CommonConfig) GetID

func (c *CommonConfig) GetID() int64

func (*CommonConfig) GetName

func (c *CommonConfig) GetName() string

func (*CommonConfig) GetPathMethod

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

func (*CommonConfig) SetID

func (c *CommonConfig) SetID(id int64)

func (*CommonConfig) SetPathParams

func (c *CommonConfig) SetPathParams(args ...interface{}) error

type CommonConfigDefault

type CommonConfigDefault struct {
	AttributeMeta
	ID int64 `apply:"common_config_id"`
}

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

func (*CommonConfigDefault) DeepCopy

func (in *CommonConfigDefault) DeepCopy() *CommonConfigDefault

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

func (*CommonConfigDefault) DeepCopyInto

func (in *CommonConfigDefault) DeepCopyInto(out *CommonConfigDefault)

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

func (*CommonConfigDefault) DeepCopyObject

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

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

func (*CommonConfigDefault) GetID

func (c *CommonConfigDefault) GetID() int64

func (*CommonConfigDefault) GetName

func (c *CommonConfigDefault) GetName() string

func (*CommonConfigDefault) GetPathMethod

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

func (*CommonConfigDefault) SetID

func (c *CommonConfigDefault) SetID(id int64)

func (*CommonConfigDefault) SetPathParams

func (c *CommonConfigDefault) SetPathParams(args ...interface{}) error

type CommonConfigList

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

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

func (*CommonConfigList) AddItem

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

func (*CommonConfigList) ClearItems

func (c *CommonConfigList) ClearItems()

func (*CommonConfigList) DeepCopy

func (in *CommonConfigList) DeepCopy() *CommonConfigList

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

func (*CommonConfigList) DeepCopyInto

func (in *CommonConfigList) DeepCopyInto(out *CommonConfigList)

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

func (*CommonConfigList) DeepCopyObject

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

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

func (*CommonConfigList) GetItems

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

func (*CommonConfigList) GetMaxLimit

func (c *CommonConfigList) GetMaxLimit() int32

func (*CommonConfigList) GetName

func (c *CommonConfigList) GetName() string

func (*CommonConfigList) GetPathMethod

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

func (*CommonConfigList) Index

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

func (*CommonConfigList) Init

func (c *CommonConfigList) Init()

func (*CommonConfigList) Len

func (c *CommonConfigList) Len() int

func (*CommonConfigList) SetPathParams

func (c *CommonConfigList) SetPathParams(args ...interface{}) error

type CommonConfigListSearchKeywords

type CommonConfigListSearchKeywords struct {
	api.CommonSearchParams
	FullText    api.KeywordsString `url:"_keywords_full_text[],omitempty"`
	Name        api.KeywordsString `url:"_keywords_name[],omitempty"`
	Description api.KeywordsString `url:"_keywords_description[],omitempty"`
}

+k8s:deepcopy-gen=false

func (*CommonConfigListSearchKeywords) GetValues

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

type CommonConfigManagedDns

type CommonConfigManagedDns struct {
	AttributeMeta
	ID                int64
	ManagedDnsEnabled types.Boolean `apply:"managed_dns_enabled"`
}

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

func (*CommonConfigManagedDns) DeepCopy

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

func (*CommonConfigManagedDns) DeepCopyInto

func (in *CommonConfigManagedDns) DeepCopyInto(out *CommonConfigManagedDns)

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

func (*CommonConfigManagedDns) DeepCopyObject

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

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

func (*CommonConfigManagedDns) GetID

func (c *CommonConfigManagedDns) GetID() int64

func (*CommonConfigManagedDns) GetName

func (c *CommonConfigManagedDns) GetName() string

func (*CommonConfigManagedDns) GetPathMethod

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

func (*CommonConfigManagedDns) SetID

func (c *CommonConfigManagedDns) SetID(id int64)

func (*CommonConfigManagedDns) SetPathParams

func (c *CommonConfigManagedDns) SetPathParams(args ...interface{}) error

type ContractPartner

type ContractPartner struct {
	ServiceCode string `read:"service_code"`
}

func (*ContractPartner) DeepCopy

func (in *ContractPartner) DeepCopy() *ContractPartner

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

func (*ContractPartner) DeepCopyInto

func (in *ContractPartner) DeepCopyInto(out *ContractPartner)

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

type ContractPartnerList

type ContractPartnerList struct {
	AttributeMeta
	Items []ContractPartner `read:"items"`
}

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

func (*ContractPartnerList) DeepCopy

func (in *ContractPartnerList) DeepCopy() *ContractPartnerList

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

func (*ContractPartnerList) DeepCopyInto

func (in *ContractPartnerList) DeepCopyInto(out *ContractPartnerList)

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

func (*ContractPartnerList) DeepCopyObject

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

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

func (*ContractPartnerList) GetItems

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

func (*ContractPartnerList) GetName

func (c *ContractPartnerList) GetName() string

func (*ContractPartnerList) GetPathMethod

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

func (*ContractPartnerList) Index

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

func (*ContractPartnerList) Init

func (c *ContractPartnerList) Init()

func (*ContractPartnerList) Len

func (c *ContractPartnerList) Len() int

func (*ContractPartnerList) SetPathParams

func (c *ContractPartnerList) SetPathParams(args ...interface{}) error

type ContractZoneCommonConfig

type ContractZoneCommonConfig struct {
	AttributeMeta
	CommonConfigID int64    `apply:"common_config_id"`
	ZoneIDs        []string `apply:"zone_ids"`
}

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

func (*ContractZoneCommonConfig) DeepCopy

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

func (*ContractZoneCommonConfig) DeepCopyInto

func (in *ContractZoneCommonConfig) DeepCopyInto(out *ContractZoneCommonConfig)

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

func (*ContractZoneCommonConfig) DeepCopyObject

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

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

func (*ContractZoneCommonConfig) GetName

func (c *ContractZoneCommonConfig) GetName() string

func (*ContractZoneCommonConfig) GetPathMethod

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

func (*ContractZoneCommonConfig) SetPathParams

func (c *ContractZoneCommonConfig) SetPathParams(args ...interface{}) error

type ContractZoneList

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

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

func (*ContractZoneList) AddItem

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

func (*ContractZoneList) ClearItems

func (c *ContractZoneList) ClearItems()

func (*ContractZoneList) DeepCopy

func (in *ContractZoneList) DeepCopy() *ContractZoneList

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

func (*ContractZoneList) DeepCopyInto

func (in *ContractZoneList) DeepCopyInto(out *ContractZoneList)

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

func (*ContractZoneList) DeepCopyObject

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

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

func (*ContractZoneList) GetItems

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

func (*ContractZoneList) GetMaxLimit

func (c *ContractZoneList) GetMaxLimit() int32

func (*ContractZoneList) GetName

func (c *ContractZoneList) GetName() string

func (*ContractZoneList) GetPathMethod

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

func (*ContractZoneList) Index

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

func (*ContractZoneList) Init

func (c *ContractZoneList) Init()

func (*ContractZoneList) Len

func (c *ContractZoneList) Len() int

func (*ContractZoneList) SetPathParams

func (c *ContractZoneList) SetPathParams(args ...interface{}) error

type CountableListSpec

type CountableListSpec interface {
	api.CountableListSpec
	Spec
}

type ListSpec

type ListSpec interface {
	api.ListSpec
	Spec
}

type LogList

type LogList struct {
	AttributeMeta
	api.Count
	Items []core.Log `read:"items"`
}

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

func (*LogList) AddItem

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

func (*LogList) ClearItems

func (c *LogList) ClearItems()

func (*LogList) DeepCopy

func (in *LogList) DeepCopy() *LogList

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

func (*LogList) DeepCopyInto

func (in *LogList) DeepCopyInto(out *LogList)

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

func (*LogList) DeepCopyObject

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

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

func (*LogList) GetItems

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

func (*LogList) GetMaxLimit

func (c *LogList) GetMaxLimit() int32

func (*LogList) GetName

func (c *LogList) GetName() string

func (*LogList) GetPathMethod

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

func (*LogList) Index

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

func (*LogList) Init

func (c *LogList) Init()

func (*LogList) Len

func (c *LogList) Len() int

func (*LogList) SetPathParams

func (c *LogList) SetPathParams(args ...interface{}) error

type QpsHistory

type QpsHistory struct {
	ServiceCode string     `read:"service_code"`
	Name        string     `read:"name"`
	Values      []QpsValue `read:"values"`
}

func (*QpsHistory) DeepCopy

func (in *QpsHistory) DeepCopy() *QpsHistory

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

func (*QpsHistory) DeepCopyInto

func (in *QpsHistory) DeepCopyInto(out *QpsHistory)

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

type QpsHistoryList

type QpsHistoryList struct {
	AttributeMeta
	Items []QpsHistory `read:"items"`
}

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

func (*QpsHistoryList) DeepCopy

func (in *QpsHistoryList) DeepCopy() *QpsHistoryList

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

func (*QpsHistoryList) DeepCopyInto

func (in *QpsHistoryList) DeepCopyInto(out *QpsHistoryList)

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

func (*QpsHistoryList) DeepCopyObject

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

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

func (*QpsHistoryList) GetItems

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

func (*QpsHistoryList) GetName

func (c *QpsHistoryList) GetName() string

func (*QpsHistoryList) GetPathMethod

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

/contracts/{ContractID}/qps/histories

func (*QpsHistoryList) Index

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

func (*QpsHistoryList) Init

func (c *QpsHistoryList) Init()

func (*QpsHistoryList) Len

func (c *QpsHistoryList) Len() int

func (*QpsHistoryList) SetPathParams

func (c *QpsHistoryList) SetPathParams(args ...interface{}) error

type QpsValue

type QpsValue struct {
	Month string `read:"month"`
	Qps   int    `read:"qps"`
}

func (*QpsValue) DeepCopy

func (in *QpsValue) DeepCopy() *QpsValue

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

func (*QpsValue) DeepCopyInto

func (in *QpsValue) DeepCopyInto(out *QpsValue)

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

type Spec

type Spec interface {
	api.Spec
	apis.Params
	GetContractID() string
	SetContractID(string)
}

type Tsig

type Tsig struct {
	AttributeMeta
	ID          int64         `read:"id"`
	Name        string        `read:"name" create:"name"`
	Algorithm   TsigAlgorithm `read:"algorithm"`
	Secret      string        `read:"secret"`
	Description string        `read:"description" create:"description" update:"description"`
}

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

func (*Tsig) DeepCopy

func (in *Tsig) DeepCopy() *Tsig

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

func (*Tsig) DeepCopyInto

func (in *Tsig) DeepCopyInto(out *Tsig)

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

func (*Tsig) DeepCopyObject

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

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

func (*Tsig) GetID

func (c *Tsig) GetID() int64

func (*Tsig) GetName

func (c *Tsig) GetName() string

func (*Tsig) GetPathMethod

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

func (*Tsig) SetID

func (c *Tsig) SetID(id int64)

func (*Tsig) SetPathParams

func (c *Tsig) SetPathParams(args ...interface{}) error

type TsigAlgorithm

type TsigAlgorithm int
const (
	TsigAlgorithmHMACSHA256 TsigAlgorithm = 0
)

func (TsigAlgorithm) String

func (c TsigAlgorithm) String() string

type TsigCommonConfigList

type TsigCommonConfigList struct {
	AttributeMeta
	api.Count
	ID    int64
	Items []CommonConfig `read:"items"`
}

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

func (*TsigCommonConfigList) AddItem

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

func (*TsigCommonConfigList) ClearItems

func (c *TsigCommonConfigList) ClearItems()

func (*TsigCommonConfigList) DeepCopy

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

func (*TsigCommonConfigList) DeepCopyInto

func (in *TsigCommonConfigList) DeepCopyInto(out *TsigCommonConfigList)

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

func (*TsigCommonConfigList) DeepCopyObject

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

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

func (*TsigCommonConfigList) GetID

func (c *TsigCommonConfigList) GetID() int64

func (*TsigCommonConfigList) GetItems

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

func (*TsigCommonConfigList) GetMaxLimit

func (c *TsigCommonConfigList) GetMaxLimit() int32

func (*TsigCommonConfigList) GetName

func (c *TsigCommonConfigList) GetName() string

func (*TsigCommonConfigList) GetPathMethod

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

func (*TsigCommonConfigList) Index

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

func (*TsigCommonConfigList) Init

func (c *TsigCommonConfigList) Init()

func (*TsigCommonConfigList) Len

func (c *TsigCommonConfigList) Len() int

func (*TsigCommonConfigList) SetID

func (c *TsigCommonConfigList) SetID(id int64)

func (*TsigCommonConfigList) SetPathParams

func (c *TsigCommonConfigList) SetPathParams(args ...interface{}) error

type TsigList

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

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

func (*TsigList) AddItem

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

func (*TsigList) ClearItems

func (c *TsigList) ClearItems()

func (*TsigList) DeepCopy

func (in *TsigList) DeepCopy() *TsigList

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

func (*TsigList) DeepCopyInto

func (in *TsigList) DeepCopyInto(out *TsigList)

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

func (*TsigList) DeepCopyObject

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

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

func (*TsigList) GetItems

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

func (*TsigList) GetMaxLimit

func (c *TsigList) GetMaxLimit() int32

func (*TsigList) GetName

func (c *TsigList) GetName() string

func (*TsigList) GetPathMethod

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

func (*TsigList) Index

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

func (*TsigList) Init

func (c *TsigList) Init()

func (*TsigList) Len

func (c *TsigList) Len() int

func (*TsigList) SetPathParams

func (c *TsigList) SetPathParams(args ...interface{}) error

type TsigListSearchKeywords

type TsigListSearchKeywords struct {
	api.CommonSearchParams
	FullText    api.KeywordsString `url:"_keywords_full_text[],omitempty"`
	Name        api.KeywordsString `url:"_keywords_name[],omitempty"`
	Description api.KeywordsString `url:"_keywords_description[],omitempty"`
}

+k8s:deepcopy-gen=false

func (*TsigListSearchKeywords) GetValues

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

Jump to

Keyboard shortcuts

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