apicontractsv2self

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOrRenewApikeyRequest

type CreateOrRenewApikeyRequest struct {
	Name string `json:"name" validate:"required"`
	Ttl  int64  `json:"ttl" validate:"required"`
}

type CreateOrRenewApikeyResponse

type CreateOrRenewApikeyResponse struct {
	Token   string    `json:"token"`
	Expires time.Time `json:"expires"`
}

type SelfData

type SelfData struct {
	Auth identitymodels.AuthInfo     `json:"auth,omitempty"`
	Type identitymodels.IdentityType `json:"type"`
	User SelfUser                    `json:"user,omitempty"`
}

type SelfUser

type SelfUser struct {
	Name   string   `json:"name,omitempty"`
	Email  string   `json:"email,omitempty"`
	Groups []string `json:"groups,omitempty"`
}

Jump to

Keyboard shortcuts

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