Documentation ¶
Index ¶
- Constants
- func ExportHostCertificate(ctx context.Context, apis APIs, name string, dir string) error
- func ExportKubeconfig(ctx context.Context, apis APIs, name string, kubeCfg *clientcmdapi.Config) (*clientcmdapi.Config, error)
- func ExportKubeconfigFile(ctx context.Context, apis APIs, name, filename string) error
- func RunAPI(ctx context.Context, apis APIs, api *v1alpha1.API, opts RunAPIOptions) error
- type APIServices
- type APIs
- type Handle
- type Kolm
- type RunAPIOptions
- type StartOptions
Constants ¶
View Source
const (
DefaultName = "kolm"
)
Variables ¶
This section is empty.
Functions ¶
func ExportHostCertificate ¶
func ExportKubeconfig ¶
func ExportKubeconfig(ctx context.Context, apis APIs, name string, kubeCfg *clientcmdapi.Config) (*clientcmdapi.Config, error)
func ExportKubeconfigFile ¶
Types ¶
type APIServices ¶
type APIs ¶
type APIs interface { List(ctx context.Context) (*v1alpha1.APIList, error) Get(ctx context.Context, name string) (*v1alpha1.API, error) Create(ctx context.Context, api *v1alpha1.API) (*v1alpha1.API, error) Delete(ctx context.Context, name string) error Start(ctx context.Context, name string) (Handle, error) Kubeconfig(ctx context.Context, name string) (*clientcmdapi.Config, error) APIServices(name string) APIServices HostCertificate(ctx context.Context, name string) (*certutil.Pair, error) HostKeyFilename(ctx context.Context, name string) (string, error) HostCertificateFilename(ctx context.Context, name string) (string, error) }
type RunAPIOptions ¶
Click to show internal directories.
Click to hide internal directories.