Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sConfig ¶
type K8sConfig struct { DepHandler *handler.DepHandler `inject:"-"` PodHandler *handler.PodHandler `inject:"-"` NsHandler *handler.NsHandler `inject:"-"` }
func NewK8sConfig ¶
func NewK8sConfig() *K8sConfig
func (*K8sConfig) InitClient ¶
func (this *K8sConfig) InitClient() *kubernetes.Clientset
func (*K8sConfig) InitInformer ¶
func (this *K8sConfig) InitInformer() informers.SharedInformerFactory
type K8sHandler ¶
type K8sHandler struct {
Mapper RESTMapper `inject:"-"`
}
func NewK8sHandler ¶
func NewK8sHandler() *K8sHandler
func (*K8sHandler) DepHandlers ¶
func (this *K8sHandler) DepHandlers() *handler.DepHandler
func (*K8sHandler) MapperDo ¶
func (this *K8sHandler) MapperDo()
func (*K8sHandler) NsHandler ¶
func (this *K8sHandler) NsHandler() *handler.NsHandler
func (*K8sHandler) PodHandler ¶
func (this *K8sHandler) PodHandler() *handler.PodHandler
type K8sMaps ¶
type K8sMaps struct{}
func NewK8sMaps ¶
func NewK8sMaps() *K8sMaps
func (*K8sMaps) InitDepMap ¶
func (this *K8sMaps) InitDepMap() *maps.DeploymentMap
func (*K8sMaps) InitNsMap ¶
func (this *K8sMaps) InitNsMap() *maps.NsMapStruct
func (*K8sMaps) InitPodMap ¶
type K8sRestMapper ¶
type K8sRestMapper struct { }
func NewK8sResource ¶
func NewK8sResource() *K8sRestMapper
func (*K8sRestMapper) RestMapper ¶
func (res *K8sRestMapper) RestMapper() RESTMapper
RestMapper 所有api groupResource 用于初始化和返回一个 RESTMapper,用于将 API 资源映射到 REST 路径,以便在后续的操作中能够根据 API 资源信息进行 REST 请求。 通过获取 API 组资源信息并创建 RESTMapper,可以帮助在 Kubernetes 集群中进行资源操作时更方便地进行资源路径映射和管理
type RESTMapper ¶
type RESTMapper interface {
TestInter()
}
type ServiceWire ¶
type ServiceWire struct { ServiceContext *svc.ServiceContext K8sMaps *K8sMaps K8sConfig *K8sConfig K8sHandler *K8sHandler }
func NewServiceWire ¶
func NewServiceWire() *ServiceWire
func (*ServiceWire) Context ¶
func (w *ServiceWire) Context() *svc.ServiceContext
Click to show internal directories.
Click to hide internal directories.