Documentation ¶
Index ¶
- func ParseYaml(relativePath string, kind schema.GroupVersionKind) (map[string]interface{}, error)
- type ClusterClient
- func (c *ClusterClient) Apply(ctx context.Context, logger logr.Logger, clusterName string, ...) (resourceVersion string, err error)
- func (c *ClusterClient) CreateCluster(ctx context.Context, logger logr.Logger, clusterName string, namespace string) error
- func (c *ClusterClient) CreateNamespace(baseName string, labels map[string]string) (*corev1.Namespace, error)
- func (c *ClusterClient) GetNamespace(clusterName string) (string, error)
- func (c *ClusterClient) SetNamespace(clusterName, namespace string)
- type FakePorchClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterClient ¶
type ClusterClient struct { client.Client ClientSet clientset.Interface // contains filtered or unexported fields }
func NewClusterClient ¶
func NewClusterClient(client client.Client, clientSet clientset.Interface) *ClusterClient
func (*ClusterClient) CreateCluster ¶
func (*ClusterClient) CreateNamespace ¶
func (*ClusterClient) GetNamespace ¶
func (c *ClusterClient) GetNamespace(clusterName string) (string, error)
func (*ClusterClient) SetNamespace ¶
func (c *ClusterClient) SetNamespace(clusterName, namespace string)
type FakePorchClient ¶
type FakePorchClient struct { logr.Logger *ClusterClient }
func (*FakePorchClient) ApplyPackage ¶
Click to show internal directories.
Click to hide internal directories.