store

package
v0.0.0-...-24e56ee Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=setcreed.io.store

Index

Constants

View Source
const GroupName = "setcreed.io.store"

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

下面的两个var是必须的,因为在生成的代码里直接用了这个包下的这两个变量

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

Functions

func Kind

func Kind(kind string) schema.GroupKind

func Resource

func Resource(resource string) schema.GroupResource

需要的,按名字找到resource实例

Types

type DBConfig

type DBConfig struct {
	Replicas    int
	Dsn         string
	MaxOpenConn int
	MaxLifeTime int
	MaxIdleConn int
}

func (*DBConfig) DeepCopy

func (in *DBConfig) DeepCopy() *DBConfig

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

func (*DBConfig) DeepCopyInto

func (in *DBConfig) DeepCopyInto(out *DBConfig)

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

type SQLConfig

type SQLConfig struct {
	Name   string
	Sql    string
	Select *Select
}

func (*SQLConfig) DeepCopy

func (in *SQLConfig) DeepCopy() *SQLConfig

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

func (*SQLConfig) DeepCopyInto

func (in *SQLConfig) DeepCopyInto(out *SQLConfig)

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

type Select

type Select struct {
	Sql string
}

func (*Select) DeepCopy

func (in *Select) DeepCopy() *Select

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

func (*Select) DeepCopyInto

func (in *Select) DeepCopyInto(out *Select)

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

type StoreService

type StoreService struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   StoreServiceSpec
	Status StoreServiceStatus
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*StoreService) DeepCopy

func (in *StoreService) DeepCopy() *StoreService

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

func (*StoreService) DeepCopyInto

func (in *StoreService) DeepCopyInto(out *StoreService)

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

func (*StoreService) DeepCopyObject

func (in *StoreService) DeepCopyObject() runtime.Object

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

type StoreServiceList

type StoreServiceList struct {
	metav1.TypeMeta
	metav1.ListMeta

	Items []StoreService
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*StoreServiceList) DeepCopy

func (in *StoreServiceList) DeepCopy() *StoreServiceList

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

func (*StoreServiceList) DeepCopyInto

func (in *StoreServiceList) DeepCopyInto(out *StoreServiceList)

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

func (*StoreServiceList) DeepCopyObject

func (in *StoreServiceList) DeepCopyObject() runtime.Object

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

type StoreServiceSpec

type StoreServiceSpec struct {
	DbConfig  DBConfig
	SqlConfig []*SQLConfig
}

func (*StoreServiceSpec) DeepCopy

func (in *StoreServiceSpec) DeepCopy() *StoreServiceSpec

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

func (*StoreServiceSpec) DeepCopyInto

func (in *StoreServiceSpec) DeepCopyInto(out *StoreServiceSpec)

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

type StoreServiceStatus

type StoreServiceStatus struct {
	Replicas int32
	Ready    string
}

func (*StoreServiceStatus) DeepCopy

func (in *StoreServiceStatus) DeepCopy() *StoreServiceStatus

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

func (*StoreServiceStatus) DeepCopyInto

func (in *StoreServiceStatus) DeepCopyInto(out *StoreServiceStatus)

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

Directories

Path Synopsis
+k8s:deepcopy-gen=package +k8s:conversion-gen=github.com/setcreed/store-apiserver/pkg/apis/store +k8s:defaulter-gen=TypeMeta +groupName=setcreed.io.store
+k8s:deepcopy-gen=package +k8s:conversion-gen=github.com/setcreed/store-apiserver/pkg/apis/store +k8s:defaulter-gen=TypeMeta +groupName=setcreed.io.store

Jump to

Keyboard shortcuts

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