provider

package
v0.0.0-...-f4b31ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package provider provides a generic template for new Bots Provider Interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGCEPClient

func NewGCEPClient(ctx context.Context, host string) (*gcepProvider, error)

NewGCEPClient returns a new gcepClient instance.

Types

type BPI

type BPI interface {
	UpdateConfig(ctx context.Context, hostnames []string, cfID string) error
}

BPI is a generic Provider interface. Future Providers need to satisfy this interface.

func NewProviderFromEnv

func NewProviderFromEnv(ctx context.Context, host string) (BPI, error)

NewProviderFromEnv creates a provider.BPI based on the server running environment. The provider is responsible for the actual implementation. Providers currently supported are GCE Provider and Satlab(WIP).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL