Documentation ¶
Index ¶
- Constants
- func Register(ctx context.Context, user *config.UserContext, ...)
- func StartStateCalculator(ctx context.Context, cluster *config.UserContext)
- func WriteTempDir(rootDir string, files map[string]string) (string, error)
- type AppStateCalculator
- type Lifecycle
- func (l *Lifecycle) Create(obj *v3.App) (runtime.Object, error)
- func (l *Lifecycle) DeployApp(obj *v3.App) (*v3.App, error)
- func (l *Lifecycle) Remove(obj *v3.App) (runtime.Object, error)
- func (l *Lifecycle) Run(obj *v3.App, template, templateDir, notes string) error
- func (l *Lifecycle) Updated(obj *v3.App) (runtime.Object, error)
Constants ¶
View Source
const (
AppIDsLabel = "cattle.io/appIds"
)
View Source
const (
MultiClusterAppIDSelector = "mcapp"
)
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(ctx context.Context, user *config.UserContext, kubeConfigGetter common.KubeConfigGetter)
func StartStateCalculator ¶
func StartStateCalculator(ctx context.Context, cluster *config.UserContext)
Types ¶
type AppStateCalculator ¶
type AppStateCalculator struct { Apps pv3.AppInterface AppLister pv3.AppLister NamespaceLister corev1.NamespaceLister MultiClusterApps v3.MultiClusterAppInterface // contains filtered or unexported fields }
type Lifecycle ¶
type Lifecycle struct { KubeConfigGetter common.KubeConfigGetter SystemAccountManager *systemaccount.Manager UserManager user.Manager TokenClient mgmtv3.TokenInterface UserClient mgmtv3.UserInterface TemplateVersionClient mgmtv3.CatalogTemplateVersionInterface K8sClient kubernetes.Interface ListenConfigClient mgmtv3.ListenConfigInterface ClusterName string TemplateContentClient mgmtv3.TemplateContentInterface AppRevisionGetter v3.AppRevisionsGetter AppGetter v3.AppsGetter NsClient corev1.NamespaceInterface }
Click to show internal directories.
Click to hide internal directories.