Documentation ¶
Index ¶
- Variables
- func CreateCompApp(ctx context.Context, ca CompositeApp) (string, error)
- func FindApp(ca CompositeApp, app string) bool
- func FindCluster(ca CompositeApp, app string, cluster string) bool
- func FindResource(ca CompositeApp, app, cluster, res string) bool
- func PrintCompositeApp(ca CompositeApp)
- func ReadAppContext(ctx context.Context, contextID interface{}) (CompositeApp, error)
- type Connection
Constants ¶
This section is empty.
Variables ¶
View Source
var IsTestKubeClient bool = false
IsTestKubeClient .. global variable used during unit-tests to check whether a fake kube client object has to be instantiated
Functions ¶
func CreateCompApp ¶
CreateCompApp creates a AppContext for a composite app, for testing
func FindCluster ¶
FindCluster finds cluster in an app in the appcontext and returns true or false
func FindResource ¶
FindCluster finds resource in a cluster in an app in the appcontext and returns true or false
func PrintCompositeApp ¶
func PrintCompositeApp(ca CompositeApp)
PrintCompositeApp prints the composite app
func ReadAppContext ¶
ReadAppContext reads a composite app for AppContext
Types ¶
type Connection ¶
Connection is for a cluster
func (*Connection) GetClient ¶
func (c *Connection) GetClient(ctx context.Context, cluster string, level string, namespace string) (*kubeclient.Client, error)
GetClient returns client for the cluster
func (*Connection) Init ¶
func (c *Connection) Init(id interface{}) error
Init Connection for an app context
func (*Connection) RemoveClient ¶
func (c *Connection) RemoveClient()
Click to show internal directories.
Click to hide internal directories.