Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = fmt.Errorf("not found")
)
Functions ¶
func Main ¶
func Main(clientset kubernetes.Interface)
Types ¶
type ConfigStore ¶
type ConfigStore interface { Set(ns, typ, name string, data Data) error Get(ns, typ, name string) (*Data, error) }
func NewConfigStore ¶
func NewConfigStore() ConfigStore
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) Do ¶
func (c *Controller) Do()
type KubeRepo ¶
type KubeRepo interface { ListWatchedDeploys(ns string) ([]*appsv1.Deployment, error) GetConfigMapLatestUpdatedTime(name string, ns string) (time.Time, error) GetSecretLatestUpdatedTime(name string, ns string) (time.Time, error) RolloutRestartDeployment(name string, ns string) error }
func NewKubeRepo ¶
func NewKubeRepo(clientset kubernetes.Interface, cache ConfigStore) KubeRepo
Click to show internal directories.
Click to hide internal directories.