Documentation ¶
Overview ¶
Package resource provides test data for testing.
Index ¶
- func ClusterRoleResourceContentForTest(t *testing.T) *fleetv1beta1.ResourceContent
- func CreateResourceContentForTest(t *testing.T, obj interface{}) *fleetv1beta1.ResourceContent
- func DeploymentResourceContentForTest(t *testing.T) *fleetv1beta1.ResourceContent
- func NamespaceResourceContentForTest(t *testing.T) *fleetv1beta1.ResourceContent
- func SecretResourceContentForTest(t *testing.T) *fleetv1beta1.ResourceContent
- func ServiceResourceContentForTest(t *testing.T) *fleetv1beta1.ResourceContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterRoleResourceContentForTest ¶
func ClusterRoleResourceContentForTest(t *testing.T) *fleetv1beta1.ResourceContent
ClusterRoleResourceContentForTest creates a clusterRole for testing.
func CreateResourceContentForTest ¶ added in v0.9.6
func CreateResourceContentForTest(t *testing.T, obj interface{}) *fleetv1beta1.ResourceContent
CreateResourceContentForTest creates a ResourceContent for testing.
func DeploymentResourceContentForTest ¶
func DeploymentResourceContentForTest(t *testing.T) *fleetv1beta1.ResourceContent
DeploymentResourceContentForTest creates a deployment for testing.
func NamespaceResourceContentForTest ¶
func NamespaceResourceContentForTest(t *testing.T) *fleetv1beta1.ResourceContent
NamespaceResourceContentForTest creates a namespace for testing.
func SecretResourceContentForTest ¶
func SecretResourceContentForTest(t *testing.T) *fleetv1beta1.ResourceContent
SecretResourceContentForTest creates a secret for testing.
func ServiceResourceContentForTest ¶
func ServiceResourceContentForTest(t *testing.T) *fleetv1beta1.ResourceContent
ServiceResourceContentForTest creates a service for testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.