custom

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnrecognisedResponse = errors.New("unrecognised response")
)

Functions

This section is empty.

Types

type AWSOIDCAccount added in v0.0.5

type AWSOIDCAccount struct {
	SpaceID                         string   `json:"SpaceId,omitempty"`
	ID                              string   `json:"Id,omitempty"`
	Slug                            string   `json:"Slug,omitempty"`
	Name                            string   `json:"Name"`
	Description                     string   `json:"Description"`
	TenantedDeploymentParticipation string   `json:"TenantedDeploymentParticipation"`
	AccountType                     string   `json:"AccountType"`
	RoleARN                         string   `json:"RoleArn"`
	SessionDuration                 string   `json:"SessionDuration"`
	EnvironmentIDs                  []string `json:"EnvironmentIds"`
	TenantIDs                       []string `json:"TenantIds"`
	TenantTags                      []string `json:"TenantTags"`
	DeploymentSubjectKeys           []string `json:"DeploymentSubjectKeys"`
	HealthCheckSubjectKeys          []string `json:"HealthCheckSubjectKeys"`
	AccountTestSubjectKeys          []string `json:"AccountTestSubjectKeys"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(client *odclient.Client) *Client

func (*Client) CreateAWSOIDCAccount added in v0.0.5

func (c *Client) CreateAWSOIDCAccount(ctx context.Context, account AWSOIDCAccount) (res *AWSOIDCAccount, err error)

func (*Client) CreateServiceAccountOIDCIdentity

func (c *Client) CreateServiceAccountOIDCIdentity(ctx context.Context, identity OIDCIdentity) (res CreateServiceAccountOIDCIdentityResponse, err error)

func (*Client) DeleteAWSOIDCAccount added in v0.0.5

func (c *Client) DeleteAWSOIDCAccount(ctx context.Context, spaceID, accountID string) error

func (*Client) DeleteServiceAccountOIDCIdentity

func (c *Client) DeleteServiceAccountOIDCIdentity(ctx context.Context, serviceAccountID, identityID string) (res DeleteServiceAccountOIDCIdentityResponse, err error)

func (*Client) GetAWSOIDCAccount added in v0.0.5

func (c *Client) GetAWSOIDCAccount(ctx context.Context, spaceID, accountID string) (res *AWSOIDCAccount, err error)

func (*Client) GetServiceAccountOIDCIdentity

func (c *Client) GetServiceAccountOIDCIdentity(ctx context.Context, serviceAccountID, identityID string) (res GetServiceAccountOIDCIdentityResponse, err error)

func (*Client) ListServiceAccountOIDCIdentites

func (c *Client) ListServiceAccountOIDCIdentites(ctx context.Context, serviceAccountID string, skip, take int) (res ListServiceAccountOIDCIdentitesResponse, err error)

func (*Client) UpdateAWSOIDCAccount added in v0.0.5

func (c *Client) UpdateAWSOIDCAccount(ctx context.Context, account AWSOIDCAccount) (res *AWSOIDCAccount, err error)

func (*Client) UpdateServiceAccountOIDCIdentity

func (c *Client) UpdateServiceAccountOIDCIdentity(ctx context.Context, identity OIDCIdentity) (res UpdateServiceAccountOIDCIdentityResponse, err error)

type CreateServiceAccountOIDCIdentityResponse

type CreateServiceAccountOIDCIdentityResponse struct {
	ID string `json:"Id"`
}

type DeleteServiceAccountOIDCIdentityResponse

type DeleteServiceAccountOIDCIdentityResponse struct{}

type GetServiceAccountOIDCIdentityResponse

type GetServiceAccountOIDCIdentityResponse OIDCIdentity

type ListServiceAccountOIDCIdentitesResponse

type ListServiceAccountOIDCIdentitesResponse struct {
	ServerURL      string         `json:"ServerUrl"`
	ExternalID     string         `json:"ExternalId"`
	Count          int64          `json:"Count"`
	OIDCIdentities []OIDCIdentity `json:"OidcIdentities"`
}

type OIDCIdentity

type OIDCIdentity struct {
	ID               *string `json:"Id,omitempty"`
	ServiceAccountID string  `json:"ServiceAccountId"`
	Name             string  `json:"Name"`
	Issuer           string  `json:"Issuer"`
	Subject          string  `json:"Subject"`
}

type UpdateServiceAccountOIDCIdentityResponse

type UpdateServiceAccountOIDCIdentityResponse struct{}

Jump to

Keyboard shortcuts

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