Versions in this module Expand all Collapse all v0 v0.6.0 Mar 23, 2026 Changes in this version type NIC + IPv4 string + IPv6 string v0.5.0 Feb 23, 2026 v0.4.0 Feb 18, 2026 v0.3.0 Feb 5, 2026 Changes in this version + var ErrServerNotFound = errors.New("server not found") + type AgentRequest struct + Provisioned *bool + type BootVolumeRequest struct + DeleteOnTermination *bool + PerformanceClass string + Size int + Source *BootVolumeSourceRequest + type BootVolumeSourceRequest struct + ID string + Type string + type CreateServerRequest struct + AffinityGroup string + Agent *AgentRequest + AvailabilityZone string + BootVolume *BootVolumeRequest + ImageID string + KeypairName string + Labels map[string]string + MachineType string + Metadata map[string]interface{} + Name string + Networking *ServerNetworkingRequest + SecurityGroups []string + ServiceAccountMails []string + UserData string + Volumes []string + type NIC struct + AllowedAddresses []string + ID string + NetworkID string + type SdkStackitClient struct + func NewStackitClient(serviceAccountKey string) (*SdkStackitClient, error) + func (c *SdkStackitClient) CreateServer(ctx context.Context, projectID, region string, req *CreateServerRequest) (*Server, error) + func (c *SdkStackitClient) DeleteServer(ctx context.Context, projectID, region, serverID string) error + func (c *SdkStackitClient) GetNICsForServer(ctx context.Context, projectID, region, serverID string) ([]*NIC, error) + func (c *SdkStackitClient) GetServer(ctx context.Context, projectID, region, serverID string) (*Server, error) + func (c *SdkStackitClient) ListServers(ctx context.Context, projectID, region string, labelSelector map[string]string) ([]*Server, error) + func (c *SdkStackitClient) UpdateNIC(ctx context.Context, projectID, region, networkID, nicID string, ...) (*NIC, error) + type Server struct + ErrorMessage string + ID string + Labels map[string]string + Name string + Status string + type ServerNetworkingRequest struct + NICIDs []string + NetworkID string + type StackitClient interface + CreateServer func(ctx context.Context, projectID, region string, req *CreateServerRequest) (*Server, error) + DeleteServer func(ctx context.Context, projectID, region, serverID string) error + GetNICsForServer func(ctx context.Context, projectID, region, serverID string) ([]*NIC, error) + GetServer func(ctx context.Context, projectID, region, serverID string) (*Server, error) + ListServers func(ctx context.Context, projectID, region string, labelSelector map[string]string) ([]*Server, error) + UpdateNIC func(ctx context.Context, projectID, region, networkID, nicID string, ...) (*NIC, error)