Documentation
¶
Overview ¶
Code generated generate_clients.go. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adminv2 ¶
type Adminv2 interface {
Component() adminv2connect.ComponentServiceClient
Filesystem() adminv2connect.FilesystemServiceClient
Image() adminv2connect.ImageServiceClient
IP() adminv2connect.IPServiceClient
Machine() adminv2connect.MachineServiceClient
Network() adminv2connect.NetworkServiceClient
Partition() adminv2connect.PartitionServiceClient
Project() adminv2connect.ProjectServiceClient
Size() adminv2connect.SizeServiceClient
SizeImageConstraint() adminv2connect.SizeImageConstraintServiceClient
SizeReservation() adminv2connect.SizeReservationServiceClient
Switch() adminv2connect.SwitchServiceClient
Task() adminv2connect.TaskServiceClient
Tenant() adminv2connect.TenantServiceClient
Token() adminv2connect.TokenServiceClient
VPN() adminv2connect.VPNServiceClient
}
type Apiv2 ¶
type Apiv2 interface {
Filesystem() apiv2connect.FilesystemServiceClient
Health() apiv2connect.HealthServiceClient
Image() apiv2connect.ImageServiceClient
IP() apiv2connect.IPServiceClient
Machine() apiv2connect.MachineServiceClient
Method() apiv2connect.MethodServiceClient
Network() apiv2connect.NetworkServiceClient
Partition() apiv2connect.PartitionServiceClient
Project() apiv2connect.ProjectServiceClient
Size() apiv2connect.SizeServiceClient
SizeImageConstraint() apiv2connect.SizeImageConstraintServiceClient
SizeReservation() apiv2connect.SizeReservationServiceClient
Tenant() apiv2connect.TenantServiceClient
Token() apiv2connect.TokenServiceClient
User() apiv2connect.UserServiceClient
Version() apiv2connect.VersionServiceClient
}
type Client ¶
type Client interface {
Adminv2() Adminv2
Apiv2() Apiv2
Infrav2() Infrav2
Ping(context.Context, *PingConfig)
}
func New ¶
func New(config *DialConfig) (Client, error)
type DialConfig ¶
type DialConfig struct {
BaseURL string
Token string
// Optional client Interceptors
Interceptors []connect.Interceptor
UserAgent string
// TokenRenewal defines if and how the token should be renewed
TokenRenewal *TokenRenewal
Transport http.RoundTripper
Log *slog.Logger
// contains filtered or unexported fields
}
DialConfig is the configuration to create a api-server connection
func (*DialConfig) HttpClient ¶
func (d *DialConfig) HttpClient() *http.Client
type Infrav2 ¶
type Infrav2 interface {
BMC() infrav2connect.BMCServiceClient
Boot() infrav2connect.BootServiceClient
Component() infrav2connect.ComponentServiceClient
Event() infrav2connect.EventServiceClient
Switch() infrav2connect.SwitchServiceClient
}
type PersistTokenFn ¶ added in v0.0.4
func NewFilesystemTokenPersister ¶ added in v0.0.23
func NewFilesystemTokenPersister(tokenFile string) (PersistTokenFn, error)
type PingConfig ¶ added in v0.0.50
type PingConfig struct {
// ComponentType should be set to the type of the microservice
ComponentType v2.ComponentType
// Identifier helps to identify multiple instances of a microservice
// Usually the hostname or the podname could be used for that
// If omitted, hostname is used
Identifier *string
// StartedAt contains the starttime when this go process was started
StartedAt time.Time
// Interval at which the ping should happen
// If not specified, or shorter than 1min, or longer than 1h, it defaults to 5min
Interval time.Duration
// Version contains all version details about this microservice
// You should use https://github.com/metal-stack/v to get all information.
Version v2.Version
}
PingConfig is used to configure ping
type TokenRenewal ¶ added in v0.0.4
type TokenRenewal struct {
// PersistTokenFn is called to persist the newly fetched token
// token will not be persisted if not specified
PersistTokenFn PersistTokenFn
}
Click to show internal directories.
Click to hide internal directories.