Documentation
¶
Index ¶
- func DeleteOIDCIdentityByID(client newclient.Client, serviceAccountID string, ID string) error
- func GetOIDCIdentities(client newclient.Client, query OIDCIdentityQuery) (*resources.Resources[*OIDCIdentity], error)
- func UpdateOIDCIdentity(client newclient.Client, identity *OIDCIdentity) error
- type OIDCIdentity
- func AddOIDCIdentity(client newclient.Client, identity *OIDCIdentity) (*OIDCIdentity, error)
- func GetOIDCIdentityByID(client newclient.Client, serviceAccountID string, ID string) (*OIDCIdentity, error)
- func NewOIDCIdentity(serviceAccountID string, name string, issuer string, subject string) *OIDCIdentity
- type OIDCIdentityClaimCondition
- type OIDCIdentityQuery
- type ServiceAccountOIDCIdentitiesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteOIDCIdentityByID ¶
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,omitempty"`
Issuer string `json:"Issuer"`
Name string `json:"Name"`
ServiceAccountID string `json:"ServiceAccountId"`
Subject string `json:"Subject"`
// ClaimConditions has no omitempty on purpose.
// On update, a nil slice is sent as null and Octopus keeps the existing conditions.
// An empty slice is sent as [] and Octopus removes them.
ClaimConditions []OIDCIdentityClaimCondition `json:"ClaimConditions"`
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 OIDCIdentityClaimCondition ¶ added in v2.123.0
type OIDCIdentityClaimCondition struct {
Claim string `json:"Claim"`
Values []string `json:"Values"`
}
OIDCIdentityClaimCondition is a condition a token claim must pass before Octopus exchanges the token for an access token. The token passes the condition when its claim matches any one of the values. Values support the same wildcards as the subject.
type OIDCIdentityQuery ¶
type ServiceAccountOIDCIdentitiesResponse ¶ added in v2.105.0
type ServiceAccountOIDCIdentitiesResponse struct {
ServerUrl string `json:"ServerUrl"`
ExternalId string `json:"ExternalId"`
OidcIdentities []*OIDCIdentity `json:"OidcIdentities"`
Count int `json:"Count"`
}
func GetServiceAccountOIDCData ¶ added in v2.105.0
func GetServiceAccountOIDCData(client newclient.Client, query OIDCIdentityQuery) (*ServiceAccountOIDCIdentitiesResponse, error)
GetServiceAccountOIDCData queries the service account and identities for the provided service account ID