serviceaccount

package
v0.51.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 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 List

type List struct {
	ServiceAccounts []*ServiceAccount
}

List is a list of ServiceAccounts, used for index action

func UnmarshalList

func UnmarshalList(input io.Reader) (List, error)

Unmarshal unmarshals a list of TestCase records

type ServiceAccount

type ServiceAccount struct {
	UID                        string     `jsonapi:"primary,service_account"`
	TokenLabel                 string     `jsonapi:"attr,token_label"`
	GeneratedAt                *time.Time `jsonapi:"attr,generated_at,iso8601"`
	MostRecentAPIAccessAt      *time.Time `jsonapi:"attr,most_recent_api_access_at,iso8601"`
	MostRecentAPIClientVersion string     `jsonapi:"attr,most_recent_api_client_version"`

	// AccessToken is returned only once when creating a new service account and is not available again afterwards
	AccessToken string `jsonapi:"attr,access_token"`
}

ServiceAccount represents a single ServiceAccount

func Unmarshal

func Unmarshal(input io.Reader) (*ServiceAccount, error)

Unmarshal unmarshals a single ServiceAccount record

Jump to

Keyboard shortcuts

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