serviceaccounts

package
v2.60.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteOIDCIdentityByID

func DeleteOIDCIdentityByID(client newclient.Client, serviceAccountID string, ID string) error

DeleteOIDCIdentityByID remove an OIDC identity by ID for the provided service account ID

func GetOIDCIdentities

func GetOIDCIdentities(client newclient.Client, query OIDCIdentityQuery) (*resources.Resources[*OIDCIdentity], error)

GetOIDCIdentities queries all OIDC identities for the provided service account ID

func UpdateOIDCIdentity

func UpdateOIDCIdentity(client newclient.Client, identity *OIDCIdentity) error

UpdateOIDCIdentity will update the OIDC identity, update does not return the updated OIDC identity

Types

type OIDCIdentity

type OIDCIdentity struct {
	Audience         string `json:"Audience"`
	Issuer           string `json:"Issuer"`
	Name             string `json:"Name"`
	ServiceAccountID string `json:"ServiceAccountId"`
	Subject          string `json:"Subject"`
	resources.Resource
}

func AddOIDCIdentity

func AddOIDCIdentity(client newclient.Client, identity *OIDCIdentity) (*OIDCIdentity, error)

AddOIDCIdentity creates a new OIDC Identity for the service account

func GetOIDCIdentityByID

func GetOIDCIdentityByID(client newclient.Client, serviceAccountID string, ID string) (*OIDCIdentity, error)

GetOIDCIdentityByID queries OIDC identities by ID for the provided service account ID

func NewOIDCIdentity

func NewOIDCIdentity(serviceAccountID string, name string, issuer string, subject string) *OIDCIdentity

NewOIDCIdentity initializes a Service Account with required fields.

type OIDCIdentityQuery

type OIDCIdentityQuery struct {
	Skip int `uri:"skip,omitempty" url:"skip,omitempty"`
	Take int `uri:"take,omitempty" url:"take,omitempty"`
}

Jump to

Keyboard shortcuts

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