Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Create CreateServiceAccount(ctx context.Context, name, namespace string) (*corev1.ServiceAccount, *corev1.Secret, error) CreateRole(ctx context.Context, roleName, namespace string) (*rbacv1.Role, error) CreateRoleBinding(ctx context.Context, serviceAccountName, roleName, roleBindingName, namespace string) (*rbacv1.RoleBinding, error) CreateClusterRole(ctx context.Context, roleName string) (*rbacv1.ClusterRole, error) CreateClusterRoleBinding(ctx context.Context, serviceAccountName, roleName, rbName, namespace string) (*rbacv1.ClusterRoleBinding, error) CreateKubeConfig(secret *corev1.Secret, username string) (*api.Config, error) // Get GetServiceAccount(ctx context.Context, name, namespace string) (*corev1.ServiceAccount, error) GetSecret(ctx context.Context, name, namespace string) (*corev1.Secret, error) }
Client interface represents the API for the Kubernetes API cluster supported for spin-admin
type ClientOption ¶
type ClientOption func(*client)
ClientOption is for additional client configurations.
Click to show internal directories.
Click to hide internal directories.