projects

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectGetResponse

type ProjectGetResponse struct {
	ProjectID      string         `json:"projectId"`
	ContainerID    string         `json:"containerId"`
	LifecycleState string         `json:"lifecycleState"`
	Scope          string         `json:"scope"`
	Name           string         `json:"name"`
	CreateTime     string         `json:"createTime"`
	Labels         ProjectsLabels `json:"labels"`
	Parent         ProjectsParent
}

ProjectGetResponse is the generic api response struct

type ProjectService

type ProjectService common.Service

ProjectService is the service that handles CRUD functionality for STACKIT projects

func New

New returns a new handler for the service

func (*ProjectService) Get

func (svc *ProjectService) Get(ctx context.Context, projectID string) (res ProjectGetResponse, err error)

Get returns the project by id See also https://api.stackit.schwarz/resource-management/openapi.v1.html#operation/get-projects-projectId

type ProjectsLabels

type ProjectsLabels struct {
	BillingReference string `json:"billingReference"`
}

ProjectsLabels is the labels response

type ProjectsParent

type ProjectsParent struct {
	Type string `json:"type"`
	ID   string `json:"id"`
}

ProjectsParent is the parent entity response

Jump to

Keyboard shortcuts

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