users

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShadowUsersResBody

type ShadowUsersResBody struct {
	UUID     string `json:"uuid"`
	Username string `json:"username"`
	Origin   string `json:"origin"`
}

ShadowUsersResBody is the response struct from the shadow api

type User

type User struct {
	UUID           string
	Email          string
	Origin         string
	OrganizationID string // Also called Customer Account
}

User struct holds important info about a shadow user

type UsersService

type UsersService common.Service

UsersService is the service that handles CRUD functionality for STACKIT shadow users

func New

func New(c common.Client) *UsersService

New returns a new handler for the service

func (*UsersService) Get

func (svc *UsersService) Get(ctx context.Context, email, origin string) (User, error)

Get returns the user's their UUID (this is a shadow user UUID) Reference https://api.stackit.schwarz/appcloud-shadow-user-creator/openapi.v1.html#section/Authentication

Jump to

Keyboard shortcuts

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