organizations

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 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 OrganizationResponse

type OrganizationResponse struct {
	Name           string            `json:"name"`
	ContainerID    string            `json:"containerId"`
	OrganizationID string            `json:"organizationId"`
	LifecycleState string            `json:"lifecycleState"`
	CreationTime   string            `json:"creationTime"`
	UpdateTime     string            `json:"updateTime"`
	Labels         map[string]string `json:"labels"`
}

OrganizationResponse is the structure representing the response for organization from the API

type OrganizationsService

type OrganizationsService common.Service

OrganizationsService is the service that handles CRUD functionality for STACKIT organizations

func New

New returns a new handler for the service

func (*OrganizationsService) Get

func (svc *OrganizationsService) Get(ctx context.Context, containerID string) (res OrganizationResponse, err error)

Get returns the organization by container id See also https://api.stackit.schwarz/resource-management/openapi.v2.html#operation/get-organizations-containerId

Jump to

Keyboard shortcuts

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