Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultKubeConfigFolderPath = "~/.kube"
)
DefaultKubeConfigFolderPath is the default folder path for kubeconfig files.
Variables ¶
View Source
var SIAK8SServiceConfig = services.ArkServiceConfig{ ServiceName: "sia-k8s", RequiredAuthenticatorNames: []string{"isp"}, OptionalAuthenticatorNames: []string{}, }
SIAK8SServiceConfig is the configuration for the ArkSIAK8SService.
Functions ¶
This section is empty.
Types ¶
type ArkSIAK8SService ¶
type ArkSIAK8SService struct {
services.ArkService
*services.ArkBaseService
// contains filtered or unexported fields
}
ArkSIAK8SService is a struct that implements the ArkService interface and provides functionality for K8S service of SIA.
func NewArkSIAK8SService ¶
func NewArkSIAK8SService(authenticators ...auth.ArkAuth) (*ArkSIAK8SService, error)
NewArkSIAK8SService creates a new instance of ArkSIAK8SService with the provided authenticators.
func (*ArkSIAK8SService) GenerateKubeconfig ¶
func (s *ArkSIAK8SService) GenerateKubeconfig(generateKubeConfig *k8sModels.ArkSIAK8SGenerateKubeconfig) (string, error)
GenerateKubeconfig generates a kubeconfig file for the SIA K8S service and saves it to the specified folder.
func (*ArkSIAK8SService) ServiceConfig ¶
func (s *ArkSIAK8SService) ServiceConfig() services.ArkServiceConfig
ServiceConfig returns the service configuration for the ArkSIAK8SService.
Click to show internal directories.
Click to hide internal directories.