k8ssync

package
v0.0.0-...-f49aa48 Latest Latest
Warning

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

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

README

介绍

clusteragent 同步 k8s 元数据到 registry.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeltaSyncRequest

type DeltaSyncRequest struct {
	Apikey    string      `json:"apikey"`
	Type      string      `json:"type"`
	Workspace string      `json:"workspace"`
	Cluster   string      `json:"cluster"`
	Add       []*Resource `json:"add"`
	Del       []*Resource `json:"del"`
}

type FullSyncRequest

type FullSyncRequest struct {
	Apikey    string      `json:"apikey"`
	Type      string      `json:"type"`
	Workspace string      `json:"workspace"`
	Cluster   string      `json:"cluster"`
	Resources []*Resource `json:"resources"`
}

type MetaSyncer

type MetaSyncer interface {
	Start()
	Stop()
}

func NewMetaSyncer

func NewMetaSyncer(rs *registry.Service, clientset *kubernetes.Clientset) MetaSyncer

type Resource

type Resource struct {
	Namespace   string            `json:"namespace"`
	Name        string            `json:"name"`
	App         string            `json:"app"`
	Labels      map[string]string `json:"labels"`
	Annotations map[string]string `json:"annotations"`
	Ip          string            `json:"ip"`
	Hostname    string            `json:"hostname"`
	HostIP      string            `json:"hostIP"`
	Status      string            `json:"status"`
	Spec        map[string]string `json:"spec"`
}

Jump to

Keyboard shortcuts

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