Documentation
¶
Index ¶
- Constants
- func CreateBMCClient(ctx context.Context, c client.Client, ...) (bmc.BMC, error)
- func GetBMCAddressForBMC(ctx context.Context, c client.Client, bmcObj *metalv1alpha1.BMC) (string, error)
- func GetBMCClientForServer(ctx context.Context, c client.Client, server *metalv1alpha1.Server, ...) (bmc.BMC, error)
- func GetBMCClientFromBMC(ctx context.Context, c client.Client, bmcObj *metalv1alpha1.BMC, insecure bool, ...) (bmc.BMC, error)
- func GetBMCCredentialsForBMCSecretName(ctx context.Context, c client.Client, bmcSecretName string) (string, string, error)
- func GetBMCCredentialsFromSecret(secret *metalv1alpha1.BMCSecret) (string, string, error)
- func GetBMCFromBMCName(ctx context.Context, c client.Client, bmcName string) (*metalv1alpha1.BMC, error)
- func GetProtocolScheme(scheme metalv1alpha1.ProtocolScheme, insecure bool) metalv1alpha1.ProtocolScheme
- func GetServerNameFromBMCandIndex(index int, bmc *metalv1alpha1.BMC) string
- func SSHResetBMC(ctx context.Context, ip, manufacturer, username, password string, ...) error
- type BMCClientOptions
- type BMCUnAvailableError
Constants ¶
View Source
const ( BmcSecretUsernameKey = "username" BmcSecretPasswordKey = "password" )
View Source
const DefaultKubeNamespace = "default"
Variables ¶
This section is empty.
Functions ¶
func CreateBMCClient ¶
func CreateBMCClient( ctx context.Context, c client.Client, protocolScheme metalv1alpha1.ProtocolScheme, bmcProtocol metalv1alpha1.ProtocolName, address string, port int32, bmcSecret *metalv1alpha1.BMCSecret, bmcOptions bmc.Options, ) (bmc.BMC, error)
func GetBMCAddressForBMC ¶
func GetBMCClientForServer ¶
func GetBMCClientFromBMC ¶
func GetBMCCredentialsFromSecret ¶
func GetBMCCredentialsFromSecret(secret *metalv1alpha1.BMCSecret) (string, string, error)
func GetBMCFromBMCName ¶
func GetProtocolScheme ¶
func GetProtocolScheme(scheme metalv1alpha1.ProtocolScheme, insecure bool) metalv1alpha1.ProtocolScheme
func GetServerNameFromBMCandIndex ¶
func GetServerNameFromBMCandIndex(index int, bmc *metalv1alpha1.BMC) string
Types ¶
type BMCClientOptions ¶ added in v0.2.0
type BMCClientOptions int
const (
BMCConnectivityCheckOption BMCClientOptions = 1
)
type BMCUnAvailableError ¶ added in v0.2.0
type BMCUnAvailableError struct {
Message string
}
func (BMCUnAvailableError) Error ¶ added in v0.2.0
func (e BMCUnAvailableError) Error() string
Click to show internal directories.
Click to hide internal directories.