Documentation
¶
Overview ¶
Package konnect supplies API fixtures for KongCTL ownership and payload tests.
Index ¶
- func AuthServer(name, namespace string, protected bool) kkComps.AuthServer
- func BasicAuth(username, namespace string, protected bool) helpers.IdentityBasicAuth
- func Directory(name, namespace string, protected bool) kkComps.KongDirectory
- func Group(name, namespace string, protected bool) helpers.IdentityGroup
- type APIKeyHTTP
- type APIKeyWrite
- type AuthServerAPI
- func (a *AuthServerAPI) CreateAuthServer(_ context.Context, request kkComps.CreateAuthServer, _ ...kkOps.Option) (*kkOps.CreateAuthServerResponse, error)
- func (a *AuthServerAPI) DeleteAuthServer(_ context.Context, id string, force *kkOps.Force, _ ...kkOps.Option) (*kkOps.DeleteAuthServerResponse, error)
- func (a *AuthServerAPI) GetAuthServer(_ context.Context, id string, _ ...kkOps.Option) (*kkOps.GetAuthServerResponse, error)
- func (a *AuthServerAPI) ListAuthServers(_ context.Context, request kkOps.ListAuthServersRequest, _ ...kkOps.Option) (*kkOps.ListAuthServersResponse, error)
- func (a *AuthServerAPI) UpdateAuthServer(_ context.Context, id string, request kkComps.UpdateAuthServer, ...) (*kkOps.UpdateAuthServerResponse, error)
- type AuthServerChildrenAPI
- func (a *AuthServerChildrenAPI) CreateAuthServerClaim(_ context.Context, parent string, request kkComps.CreateClaim, ...) (*kkOps.CreateAuthServerClaimResponse, error)
- func (a *AuthServerChildrenAPI) CreateAuthServerClient(_ context.Context, parent string, request kkComps.CreateClient, ...) (*kkOps.CreateAuthServerClientResponse, error)
- func (a *AuthServerChildrenAPI) CreateAuthServerScope(_ context.Context, parent string, request kkComps.CreateScope, ...) (*kkOps.CreateAuthServerScopeResponse, error)
- func (a *AuthServerChildrenAPI) DeleteAuthServerClaim(_ context.Context, parent, id string, _ ...kkOps.Option) (*kkOps.DeleteAuthServerClaimResponse, error)
- func (a *AuthServerChildrenAPI) DeleteAuthServerClient(_ context.Context, parent, id string, _ ...kkOps.Option) (*kkOps.DeleteAuthServerClientResponse, error)
- func (a *AuthServerChildrenAPI) DeleteAuthServerScope(_ context.Context, parent, id string, _ ...kkOps.Option) (*kkOps.DeleteAuthServerScopeResponse, error)
- func (a *AuthServerChildrenAPI) GetAuthServerClaim(_ context.Context, parent, id string, _ ...kkOps.Option) (*kkOps.GetAuthServerClaimResponse, error)
- func (a *AuthServerChildrenAPI) GetAuthServerClient(_ context.Context, parent, id string, _ ...kkOps.Option) (*kkOps.GetAuthServerClientResponse, error)
- func (a *AuthServerChildrenAPI) GetAuthServerScope(_ context.Context, parent, id string, _ ...kkOps.Option) (*kkOps.GetAuthServerScopeResponse, error)
- func (a *AuthServerChildrenAPI) ListAuthServerClaims(_ context.Context, request kkOps.ListAuthServerClaimsRequest, ...) (*kkOps.ListAuthServerClaimsResponse, error)
- func (a *AuthServerChildrenAPI) ListAuthServerClients(_ context.Context, request kkOps.ListAuthServerClientsRequest, ...) (*kkOps.ListAuthServerClientsResponse, error)
- func (a *AuthServerChildrenAPI) ListAuthServerScopes(_ context.Context, request kkOps.ListAuthServerScopesRequest, ...) (*kkOps.ListAuthServerScopesResponse, error)
- func (a *AuthServerChildrenAPI) UpdateAuthServerClaim(_ context.Context, request kkOps.UpdateAuthServerClaimRequest, ...) (*kkOps.UpdateAuthServerClaimResponse, error)
- func (a *AuthServerChildrenAPI) UpdateAuthServerClient(_ context.Context, request kkOps.UpdateAuthServerClientRequest, ...) (*kkOps.UpdateAuthServerClientResponse, error)
- func (a *AuthServerChildrenAPI) UpdateAuthServerScope(_ context.Context, request kkOps.UpdateAuthServerScopeRequest, ...) (*kkOps.UpdateAuthServerScopeResponse, error)
- type BasicAuthAPI
- func (a *BasicAuthAPI) CreatePrincipalBasicAuth(_ context.Context, req kkOps.CreatePrincipalBasicAuthRequest, ...) (*kkOps.CreatePrincipalBasicAuthResponse, error)
- func (a *BasicAuthAPI) DeletePrincipalBasicAuth(_ context.Context, req kkOps.DeletePrincipalBasicAuthRequest, ...) (*kkOps.DeletePrincipalBasicAuthResponse, error)
- func (*BasicAuthAPI) GetPassword(context.Context, kkOps.GetPasswordRequest, ...kkOps.Option) (*kkOps.GetPasswordResponse, error)
- func (a *BasicAuthAPI) GetPrincipalBasicAuth(_ context.Context, req kkOps.GetPrincipalBasicAuthRequest, _ ...kkOps.Option) (*kkOps.GetPrincipalBasicAuthResponse, error)
- func (a *BasicAuthAPI) ListPasswords(_ context.Context, req kkOps.ListPasswordsRequest, _ ...kkOps.Option) (*kkOps.ListPasswordsResponse, error)
- func (a *BasicAuthAPI) ListPrincipalBasicAuths(_ context.Context, req kkOps.ListPrincipalBasicAuthsRequest, _ ...kkOps.Option) (*kkOps.ListPrincipalBasicAuthsResponse, error)
- func (a *BasicAuthAPI) ListPrincipalKeys(_ context.Context, req kkOps.ListPrincipalKeysRequest, _ ...kkOps.Option) (*kkOps.ListPrincipalKeysResponse, error)
- func (a *BasicAuthAPI) ReplacePrincipalBasicAuth(_ context.Context, req kkOps.ReplacePrincipalBasicAuthRequest, ...) (*kkOps.ReplacePrincipalBasicAuthResponse, error)
- type DirectoryAPI
- func (a *DirectoryAPI) CreateDirectory(_ context.Context, request kkComps.CreateDirectoryBody, _ ...kkOps.Option) (*kkOps.CreateDirectoryResponse, error)
- func (a *DirectoryAPI) DeleteDirectory(_ context.Context, _ string, force *kkOps.DeleteDirectoryQueryParamForce, ...) (*kkOps.DeleteDirectoryResponse, error)
- func (a *DirectoryAPI) GetDirectory(context.Context, string, ...kkOps.Option) (*kkOps.GetDirectoryResponse, error)
- func (a *DirectoryAPI) ListKongDirectories(_ context.Context, page *kkComps.CursorPageParameters, _ *string, ...) (*kkOps.ListKongDirectoriesResponse, error)
- func (a *DirectoryAPI) ReplaceDirectory(_ context.Context, _ string, request kkComps.ReplaceDirectoryBody, ...) (*kkOps.ReplaceDirectoryResponse, error)
- type DirectoryDependenciesAPI
- func (a *DirectoryDependenciesAPI) ListTrustedIdps(context.Context, string, *kkComps.CursorPageParameters, ...kkOps.Option) (*kkOps.ListTrustedIdpsResponse, error)
- func (a *DirectoryDependenciesAPI) ListVaultKeys(context.Context, kkOps.ListVaultKeysRequest, ...kkOps.Option) (*kkOps.ListVaultKeysResponse, error)
- func (a *DirectoryDependenciesAPI) ListVaultProviders(context.Context, kkOps.ListVaultProvidersRequest, ...kkOps.Option) (*kkOps.ListVaultProvidersResponse, error)
- type GroupAPI
- func (a *GroupAPI) CreateGroup(_ context.Context, directoryID string, request kkComps.CreateGroupBody, ...) (*kkOps.CreateGroupResponse, error)
- func (a *GroupAPI) CreateGroupMembershipEntry(_ context.Context, request kkOps.CreateGroupMembershipEntryRequest, ...) (*kkOps.CreateGroupMembershipEntryResponse, error)
- func (a *GroupAPI) DeleteGroup(_ context.Context, directoryID, id string, _ ...kkOps.Option) (*kkOps.DeleteGroupResponse, error)
- func (a *GroupAPI) DeleteGroupMembershipEntry(_ context.Context, request kkOps.DeleteGroupMembershipEntryRequest, ...) (*kkOps.DeleteGroupMembershipEntryResponse, error)
- func (a *GroupAPI) GetGroup(_ context.Context, directoryID, id string, _ ...kkOps.Option) (*kkOps.GetGroupResponse, error)
- func (a *GroupAPI) GetGroupMembershipEntry(_ context.Context, request kkOps.GetGroupMembershipEntryRequest, ...) (*kkOps.GetGroupMembershipEntryResponse, error)
- func (a *GroupAPI) ListGroupKeys(_ context.Context, request kkOps.ListGroupKeysRequest, _ ...kkOps.Option) (*kkOps.ListGroupKeysResponse, error)
- func (a *GroupAPI) ListGroupMembership(_ context.Context, request kkOps.ListGroupMembershipRequest, _ ...kkOps.Option) (*kkOps.ListGroupMembershipResponse, error)
- func (a *GroupAPI) ListGroups(_ context.Context, request kkOps.ListGroupsRequest, _ ...kkOps.Option) (*kkOps.ListGroupsResponse, error)
- func (a *GroupAPI) ReplaceGroup(_ context.Context, request kkOps.ReplaceGroupRequest, _ ...kkOps.Option) (*kkOps.ReplaceGroupResponse, error)
- type PrincipalAPI
- func (a *PrincipalAPI) CreatePrincipal(_ context.Context, directoryID string, request kkComps.CreatePrincipalBody, ...) (*kkOps.CreatePrincipalResponse, error)
- func (a *PrincipalAPI) DeletePrincipal(_ context.Context, directoryID, id string, _ ...kkOps.Option) (*kkOps.DeletePrincipalResponse, error)
- func (a *PrincipalAPI) GetPrincipal(_ context.Context, directoryID, id string, _ ...kkOps.Option) (*kkOps.GetPrincipalResponse, error)
- func (a *PrincipalAPI) ListPrincipals(_ context.Context, request kkOps.ListPrincipalsRequest, _ ...kkOps.Option) (*kkOps.ListPrincipalsResponse, error)
- func (a *PrincipalAPI) ReplacePrincipal(_ context.Context, request kkOps.ReplacePrincipalRequest, _ ...kkOps.Option) (*kkOps.ReplacePrincipalResponse, error)
- type PrincipalIdentitiesAPI
- func (a *PrincipalIdentitiesAPI) CreateIdentity(_ context.Context, request kkOps.CreateIdentityRequest, _ ...kkOps.Option) (*kkOps.CreateIdentityResponse, error)
- func (a *PrincipalIdentitiesAPI) DeleteIdentity(_ context.Context, request kkOps.DeleteIdentityRequest, _ ...kkOps.Option) (*kkOps.DeleteIdentityResponse, error)
- func (a *PrincipalIdentitiesAPI) GetIdentity(_ context.Context, request kkOps.GetIdentityRequest, _ ...kkOps.Option) (*kkOps.GetIdentityResponse, error)
- func (a *PrincipalIdentitiesAPI) ListIdentities(_ context.Context, request kkOps.ListIdentitiesRequest, _ ...kkOps.Option) (*kkOps.ListIdentitiesResponse, error)
- func (a *PrincipalIdentitiesAPI) ReplaceIdentity(_ context.Context, request kkOps.ReplaceIdentityRequest, _ ...kkOps.Option) (*kkOps.ReplaceIdentityResponse, error)
- type TrustedIDPsAPI
- func (a *TrustedIDPsAPI) CreateTrustedIdp(_ context.Context, directory string, request kkComps.CreateTrustedIdpPayload, ...) (*kkOps.CreateTrustedIdpResponse, error)
- func (a *TrustedIDPsAPI) DeleteTrustedIdp(_ context.Context, directory, id string, _ ...kkOps.Option) (*kkOps.DeleteTrustedIdpResponse, error)
- func (a *TrustedIDPsAPI) GetTrustedIdp(_ context.Context, directory, id string, _ ...kkOps.Option) (*kkOps.GetTrustedIdpResponse, error)
- func (a *TrustedIDPsAPI) ListTrustedIdpPrincipals(_ context.Context, request kkOps.ListTrustedIdpPrincipalsRequest, ...) (*kkOps.ListTrustedIdpPrincipalsResponse, error)
- func (a *TrustedIDPsAPI) ListTrustedIdps(_ context.Context, directory string, _ *kkComps.CursorPageParameters, ...) (*kkOps.ListTrustedIdpsResponse, error)
- func (a *TrustedIDPsAPI) UpdateTrustedIdp(_ context.Context, request kkOps.UpdateTrustedIdpRequest, _ ...kkOps.Option) (*kkOps.UpdateTrustedIdpResponse, error)
- type VaultKeysAPI
- func (a *VaultKeysAPI) CreateVaultKey(_ context.Context, directory string, request kkComps.CreateVaultKeyBody, ...) (*kkOps.CreateVaultKeyResponse, error)
- func (a *VaultKeysAPI) DeleteVaultKey(_ context.Context, directory, id string, _ ...kkOps.Option) (*kkOps.DeleteVaultKeyResponse, error)
- func (a *VaultKeysAPI) GetVaultKey(_ context.Context, directory, id string, _ ...kkOps.Option) (*kkOps.GetVaultKeyResponse, error)
- func (a *VaultKeysAPI) ListVaultKeys(_ context.Context, request kkOps.ListVaultKeysRequest, _ ...kkOps.Option) (*kkOps.ListVaultKeysResponse, error)
- func (a *VaultKeysAPI) UpdateVaultKey(_ context.Context, request kkOps.UpdateVaultKeyRequest, _ ...kkOps.Option) (*kkOps.UpdateVaultKeyResponse, error)
- type VaultProvidersAPI
- func (a *VaultProvidersAPI) CreateVaultProvider(_ context.Context, directory string, request kkComps.CreateVaultProviderBody, ...) (*kkOps.CreateVaultProviderResponse, error)
- func (a *VaultProvidersAPI) CreateVaultProviderCredential(_ context.Context, r kkOps.CreateVaultProviderCredentialRequest, ...) (*kkOps.CreateVaultProviderCredentialResponse, error)
- func (a *VaultProvidersAPI) DeleteVaultProvider(_ context.Context, directory, id string, _ ...kkOps.Option) (*kkOps.DeleteVaultProviderResponse, error)
- func (a *VaultProvidersAPI) DeleteVaultProviderCredential(_ context.Context, r kkOps.DeleteVaultProviderCredentialRequest, ...) (*kkOps.DeleteVaultProviderCredentialResponse, error)
- func (a *VaultProvidersAPI) GetCredentialProviderTemplate(_ context.Context, name kkComps.ProviderTemplateName, _ ...kkOps.Option) (*kkOps.GetCredentialProviderTemplateResponse, error)
- func (a *VaultProvidersAPI) GetVaultProvider(_ context.Context, directory, id string, _ ...kkOps.Option) (*kkOps.GetVaultProviderResponse, error)
- func (a *VaultProvidersAPI) ListCredentialProviderTemplates(context.Context, *kkComps.CursorPageParameters, ...kkOps.Option) (*kkOps.ListCredentialProviderTemplatesResponse, error)
- func (a *VaultProvidersAPI) ListVaultProviderCredentials(_ context.Context, request kkOps.ListVaultProviderCredentialsRequest, ...) (*kkOps.ListVaultProviderCredentialsResponse, error)
- func (a *VaultProvidersAPI) ListVaultProviders(_ context.Context, request kkOps.ListVaultProvidersRequest, _ ...kkOps.Option) (*kkOps.ListVaultProvidersResponse, error)
- func (a *VaultProvidersAPI) UpdateVaultProvider(_ context.Context, request kkOps.UpdateVaultProviderRequest, _ ...kkOps.Option) (*kkOps.UpdateVaultProviderResponse, error)
- func (a *VaultProvidersAPI) UpdateVaultProviderCredential(_ context.Context, r kkOps.UpdateVaultProviderCredentialRequest, ...) (*kkOps.UpdateVaultProviderCredentialResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthServer ¶
func AuthServer(name, namespace string, protected bool) kkComps.AuthServer
Types ¶
type APIKeyHTTP ¶
type APIKeyHTTP struct {
Keys map[string][]helpers.IdentityAPIKey
Writes []APIKeyWrite
PageSize int
Failure string
Before func(*http.Request)
}
APIKeyHTTP exercises the native SDK while keeping key fixtures scoped by the complete directory/parent route. No request reaches a network transport.
func (*APIKeyHTTP) SDK ¶
func (a *APIKeyHTTP) SDK() *helpers.KonnectSDK
type APIKeyWrite ¶
type AuthServerAPI ¶
type AuthServerAPI struct {
Servers []kkComps.AuthServer
Writes []kkComps.UpdateAuthServer
Creates, Deletes int
Force *kkOps.Force
List func(kkOps.ListAuthServersRequest) (*kkOps.ListAuthServersResponse, error)
}
func (*AuthServerAPI) CreateAuthServer ¶
func (a *AuthServerAPI) CreateAuthServer( _ context.Context, request kkComps.CreateAuthServer, _ ...kkOps.Option, ) (*kkOps.CreateAuthServerResponse, error)
func (*AuthServerAPI) DeleteAuthServer ¶
func (*AuthServerAPI) GetAuthServer ¶
func (a *AuthServerAPI) GetAuthServer( _ context.Context, id string, _ ...kkOps.Option, ) (*kkOps.GetAuthServerResponse, error)
func (*AuthServerAPI) ListAuthServers ¶
func (a *AuthServerAPI) ListAuthServers( _ context.Context, request kkOps.ListAuthServersRequest, _ ...kkOps.Option, ) (*kkOps.ListAuthServersResponse, error)
func (*AuthServerAPI) UpdateAuthServer ¶
func (a *AuthServerAPI) UpdateAuthServer( _ context.Context, id string, request kkComps.UpdateAuthServer, _ ...kkOps.Option, ) (*kkOps.UpdateAuthServerResponse, error)
type AuthServerChildrenAPI ¶
type AuthServerChildrenAPI struct {
helpers.IdentityAuthServerClientsAPI
Scopes map[string][]kkComps.Scope
Claims map[string][]kkComps.Claim
Clients map[string][]kkComps.Client
ScopeUpdates []kkOps.UpdateAuthServerScopeRequest
ClaimUpdates []kkOps.UpdateAuthServerClaimRequest
ClientUpdates []kkOps.UpdateAuthServerClientRequest
Deleted []string
Writes int
// contains filtered or unexported fields
}
func (*AuthServerChildrenAPI) CreateAuthServerClaim ¶
func (a *AuthServerChildrenAPI) CreateAuthServerClaim(_ context.Context, parent string, request kkComps.CreateClaim, _ ...kkOps.Option, ) (*kkOps.CreateAuthServerClaimResponse, error)
func (*AuthServerChildrenAPI) CreateAuthServerClient ¶
func (a *AuthServerChildrenAPI) CreateAuthServerClient( _ context.Context, parent string, request kkComps.CreateClient, _ ...kkOps.Option, ) (*kkOps.CreateAuthServerClientResponse, error)
func (*AuthServerChildrenAPI) CreateAuthServerScope ¶
func (a *AuthServerChildrenAPI) CreateAuthServerScope(_ context.Context, parent string, request kkComps.CreateScope, _ ...kkOps.Option, ) (*kkOps.CreateAuthServerScopeResponse, error)
func (*AuthServerChildrenAPI) DeleteAuthServerClaim ¶
func (a *AuthServerChildrenAPI) DeleteAuthServerClaim(_ context.Context, parent, id string, _ ...kkOps.Option) ( *kkOps.DeleteAuthServerClaimResponse, error, )
func (*AuthServerChildrenAPI) DeleteAuthServerClient ¶
func (a *AuthServerChildrenAPI) DeleteAuthServerClient( _ context.Context, parent, id string, _ ...kkOps.Option, ) (*kkOps.DeleteAuthServerClientResponse, error)
func (*AuthServerChildrenAPI) DeleteAuthServerScope ¶
func (a *AuthServerChildrenAPI) DeleteAuthServerScope(_ context.Context, parent, id string, _ ...kkOps.Option) ( *kkOps.DeleteAuthServerScopeResponse, error, )
func (*AuthServerChildrenAPI) GetAuthServerClaim ¶
func (a *AuthServerChildrenAPI) GetAuthServerClaim(_ context.Context, parent, id string, _ ...kkOps.Option) ( *kkOps.GetAuthServerClaimResponse, error, )
func (*AuthServerChildrenAPI) GetAuthServerClient ¶
func (a *AuthServerChildrenAPI) GetAuthServerClient( _ context.Context, parent, id string, _ ...kkOps.Option, ) (*kkOps.GetAuthServerClientResponse, error)
func (*AuthServerChildrenAPI) GetAuthServerScope ¶
func (a *AuthServerChildrenAPI) GetAuthServerScope(_ context.Context, parent, id string, _ ...kkOps.Option) ( *kkOps.GetAuthServerScopeResponse, error, )
func (*AuthServerChildrenAPI) ListAuthServerClaims ¶
func (a *AuthServerChildrenAPI) ListAuthServerClaims(_ context.Context, request kkOps.ListAuthServerClaimsRequest, _ ...kkOps.Option, ) (*kkOps.ListAuthServerClaimsResponse, error)
func (*AuthServerChildrenAPI) ListAuthServerClients ¶
func (a *AuthServerChildrenAPI) ListAuthServerClients(_ context.Context, request kkOps.ListAuthServerClientsRequest, _ ...kkOps.Option, ) (*kkOps.ListAuthServerClientsResponse, error)
func (*AuthServerChildrenAPI) ListAuthServerScopes ¶
func (a *AuthServerChildrenAPI) ListAuthServerScopes(_ context.Context, request kkOps.ListAuthServerScopesRequest, _ ...kkOps.Option, ) (*kkOps.ListAuthServerScopesResponse, error)
func (*AuthServerChildrenAPI) UpdateAuthServerClaim ¶
func (a *AuthServerChildrenAPI) UpdateAuthServerClaim(_ context.Context, request kkOps.UpdateAuthServerClaimRequest, _ ...kkOps.Option, ) (*kkOps.UpdateAuthServerClaimResponse, error)
func (*AuthServerChildrenAPI) UpdateAuthServerClient ¶
func (a *AuthServerChildrenAPI) UpdateAuthServerClient( _ context.Context, request kkOps.UpdateAuthServerClientRequest, _ ...kkOps.Option, ) (*kkOps.UpdateAuthServerClientResponse, error)
func (*AuthServerChildrenAPI) UpdateAuthServerScope ¶
func (a *AuthServerChildrenAPI) UpdateAuthServerScope(_ context.Context, request kkOps.UpdateAuthServerScopeRequest, _ ...kkOps.Option, ) (*kkOps.UpdateAuthServerScopeResponse, error)
type BasicAuthAPI ¶
type BasicAuthAPI struct {
helpers.IdentityPrincipalKeysReader
Parents map[string][]helpers.IdentityBasicAuth
Passwords map[string][]helpers.IdentityPassword
Keys map[string][]string
Writes []kkComps.ReplaceBasicAuthBody
Creates, Deletes int
Failure string
}
func (*BasicAuthAPI) CreatePrincipalBasicAuth ¶
func (a *BasicAuthAPI) CreatePrincipalBasicAuth(_ context.Context, req kkOps.CreatePrincipalBasicAuthRequest, _ ...kkOps.Option, ) (*kkOps.CreatePrincipalBasicAuthResponse, error)
func (*BasicAuthAPI) DeletePrincipalBasicAuth ¶
func (a *BasicAuthAPI) DeletePrincipalBasicAuth(_ context.Context, req kkOps.DeletePrincipalBasicAuthRequest, _ ...kkOps.Option, ) (*kkOps.DeletePrincipalBasicAuthResponse, error)
func (*BasicAuthAPI) GetPassword ¶
func (*BasicAuthAPI) GetPassword( context.Context, kkOps.GetPasswordRequest, ...kkOps.Option, ) (*kkOps.GetPasswordResponse, error)
func (*BasicAuthAPI) GetPrincipalBasicAuth ¶
func (a *BasicAuthAPI) GetPrincipalBasicAuth(_ context.Context, req kkOps.GetPrincipalBasicAuthRequest, _ ...kkOps.Option, ) (*kkOps.GetPrincipalBasicAuthResponse, error)
func (*BasicAuthAPI) ListPasswords ¶
func (a *BasicAuthAPI) ListPasswords(_ context.Context, req kkOps.ListPasswordsRequest, _ ...kkOps.Option, ) (*kkOps.ListPasswordsResponse, error)
func (*BasicAuthAPI) ListPrincipalBasicAuths ¶
func (a *BasicAuthAPI) ListPrincipalBasicAuths(_ context.Context, req kkOps.ListPrincipalBasicAuthsRequest, _ ...kkOps.Option, ) (*kkOps.ListPrincipalBasicAuthsResponse, error)
func (*BasicAuthAPI) ListPrincipalKeys ¶
func (a *BasicAuthAPI) ListPrincipalKeys(_ context.Context, req kkOps.ListPrincipalKeysRequest, _ ...kkOps.Option, ) (*kkOps.ListPrincipalKeysResponse, error)
func (*BasicAuthAPI) ReplacePrincipalBasicAuth ¶
func (a *BasicAuthAPI) ReplacePrincipalBasicAuth(_ context.Context, req kkOps.ReplacePrincipalBasicAuthRequest, _ ...kkOps.Option, ) (*kkOps.ReplacePrincipalBasicAuthResponse, error)
type DirectoryAPI ¶
type DirectoryAPI struct {
Lifecycle bool
helpers.IdentityDirectoriesAPI
Directories []kkComps.KongDirectory
Current kkComps.KongDirectory
Created kkComps.CreateDirectoryBody
Replaced kkComps.ReplaceDirectoryBody
Creates, Replaces, Deletes, Gets, Lists int
Force *kkOps.DeleteDirectoryQueryParamForce
List func(*kkComps.CursorPageParameters) (*kkOps.ListKongDirectoriesResponse, error)
}
func (*DirectoryAPI) CreateDirectory ¶
func (a *DirectoryAPI) CreateDirectory(_ context.Context, request kkComps.CreateDirectoryBody, _ ...kkOps.Option, ) (*kkOps.CreateDirectoryResponse, error)
func (*DirectoryAPI) DeleteDirectory ¶
func (a *DirectoryAPI) DeleteDirectory(_ context.Context, _ string, force *kkOps.DeleteDirectoryQueryParamForce, _ ...kkOps.Option, ) (*kkOps.DeleteDirectoryResponse, error)
func (*DirectoryAPI) GetDirectory ¶
func (a *DirectoryAPI) GetDirectory(context.Context, string, ...kkOps.Option) (*kkOps.GetDirectoryResponse, error)
func (*DirectoryAPI) ListKongDirectories ¶
func (a *DirectoryAPI) ListKongDirectories(_ context.Context, page *kkComps.CursorPageParameters, _ *string, _ ...kkOps.Option, ) (*kkOps.ListKongDirectoriesResponse, error)
func (*DirectoryAPI) ReplaceDirectory ¶
func (a *DirectoryAPI) ReplaceDirectory(_ context.Context, _ string, request kkComps.ReplaceDirectoryBody, _ ...kkOps.Option, ) (*kkOps.ReplaceDirectoryResponse, error)
type DirectoryDependenciesAPI ¶
DirectoryDependenciesAPI supplies explicitly empty Vault observations by default. Individual tests can attach one collection without a parent cascade.
func (*DirectoryDependenciesAPI) ListTrustedIdps ¶
func (a *DirectoryDependenciesAPI) ListTrustedIdps( context.Context, string, *kkComps.CursorPageParameters, ...kkOps.Option, ) ( *kkOps.ListTrustedIdpsResponse, error, )
func (*DirectoryDependenciesAPI) ListVaultKeys ¶
func (a *DirectoryDependenciesAPI) ListVaultKeys(context.Context, kkOps.ListVaultKeysRequest, ...kkOps.Option) ( *kkOps.ListVaultKeysResponse, error, )
func (*DirectoryDependenciesAPI) ListVaultProviders ¶
func (a *DirectoryDependenciesAPI) ListVaultProviders( context.Context, kkOps.ListVaultProvidersRequest, ...kkOps.Option, ) ( *kkOps.ListVaultProvidersResponse, error, )
type GroupAPI ¶
type GroupAPI struct {
Directories map[string][]helpers.IdentityGroup
Memberships map[string][]kkComps.KongGroupMembershipEntry
Keys map[string][]string
Writes []kkComps.ReplaceGroupBody
Creates, Deletes int
MembershipCreates, MembershipDeletes int
Failure string
}
func (*GroupAPI) CreateGroup ¶
func (*GroupAPI) CreateGroupMembershipEntry ¶
func (a *GroupAPI) CreateGroupMembershipEntry(_ context.Context, request kkOps.CreateGroupMembershipEntryRequest, _ ...kkOps.Option, ) (*kkOps.CreateGroupMembershipEntryResponse, error)
func (*GroupAPI) DeleteGroup ¶
func (*GroupAPI) DeleteGroupMembershipEntry ¶
func (a *GroupAPI) DeleteGroupMembershipEntry(_ context.Context, request kkOps.DeleteGroupMembershipEntryRequest, _ ...kkOps.Option, ) (*kkOps.DeleteGroupMembershipEntryResponse, error)
func (*GroupAPI) GetGroupMembershipEntry ¶
func (a *GroupAPI) GetGroupMembershipEntry(_ context.Context, request kkOps.GetGroupMembershipEntryRequest, _ ...kkOps.Option, ) (*kkOps.GetGroupMembershipEntryResponse, error)
func (*GroupAPI) ListGroupKeys ¶
func (a *GroupAPI) ListGroupKeys(_ context.Context, request kkOps.ListGroupKeysRequest, _ ...kkOps.Option, ) (*kkOps.ListGroupKeysResponse, error)
func (*GroupAPI) ListGroupMembership ¶
func (a *GroupAPI) ListGroupMembership(_ context.Context, request kkOps.ListGroupMembershipRequest, _ ...kkOps.Option, ) (*kkOps.ListGroupMembershipResponse, error)
func (*GroupAPI) ListGroups ¶
func (a *GroupAPI) ListGroups( _ context.Context, request kkOps.ListGroupsRequest, _ ...kkOps.Option, ) (*kkOps.ListGroupsResponse, error)
func (*GroupAPI) ReplaceGroup ¶
func (a *GroupAPI) ReplaceGroup(_ context.Context, request kkOps.ReplaceGroupRequest, _ ...kkOps.Option, ) (*kkOps.ReplaceGroupResponse, error)
type PrincipalAPI ¶
type PrincipalAPI struct {
Directories map[string][]kkComps.KongPrincipal
Writes []kkComps.ReplacePrincipalBody
Creates int
Deletes int
ExposeActive bool
}
PrincipalAPI keeps parent-scoped fixtures and captures full replacement writes.
func (*PrincipalAPI) CreatePrincipal ¶
func (a *PrincipalAPI) CreatePrincipal( _ context.Context, directoryID string, request kkComps.CreatePrincipalBody, _ ...kkOps.Option, ) (*kkOps.CreatePrincipalResponse, error)
func (*PrincipalAPI) DeletePrincipal ¶
func (a *PrincipalAPI) DeletePrincipal( _ context.Context, directoryID, id string, _ ...kkOps.Option, ) (*kkOps.DeletePrincipalResponse, error)
func (*PrincipalAPI) GetPrincipal ¶
func (a *PrincipalAPI) GetPrincipal( _ context.Context, directoryID, id string, _ ...kkOps.Option, ) (*kkOps.GetPrincipalResponse, error)
func (*PrincipalAPI) ListPrincipals ¶
func (a *PrincipalAPI) ListPrincipals( _ context.Context, request kkOps.ListPrincipalsRequest, _ ...kkOps.Option, ) (*kkOps.ListPrincipalsResponse, error)
func (*PrincipalAPI) ReplacePrincipal ¶
func (a *PrincipalAPI) ReplacePrincipal( _ context.Context, request kkOps.ReplacePrincipalRequest, _ ...kkOps.Option, ) (*kkOps.ReplacePrincipalResponse, error)
type PrincipalIdentitiesAPI ¶
type PrincipalIdentitiesAPI struct {
helpers.IdentityPrincipalIdentitiesAPI
Data []kkComps.KongPrincipalIdentity
Parents map[string][]kkComps.KongPrincipalIdentity
Creates []kkOps.CreateIdentityRequest
Replaces []kkOps.ReplaceIdentityRequest
Gets []kkOps.GetIdentityRequest
Deletes []kkOps.DeleteIdentityRequest
Error error
Requests []kkOps.ListIdentitiesRequest
}
PrincipalIdentitiesAPI supplies complete child observations for parent tests.
func (*PrincipalIdentitiesAPI) CreateIdentity ¶
func (a *PrincipalIdentitiesAPI) CreateIdentity(_ context.Context, request kkOps.CreateIdentityRequest, _ ...kkOps.Option, ) (*kkOps.CreateIdentityResponse, error)
func (*PrincipalIdentitiesAPI) DeleteIdentity ¶
func (a *PrincipalIdentitiesAPI) DeleteIdentity(_ context.Context, request kkOps.DeleteIdentityRequest, _ ...kkOps.Option, ) (*kkOps.DeleteIdentityResponse, error)
func (*PrincipalIdentitiesAPI) GetIdentity ¶
func (a *PrincipalIdentitiesAPI) GetIdentity(_ context.Context, request kkOps.GetIdentityRequest, _ ...kkOps.Option, ) (*kkOps.GetIdentityResponse, error)
func (*PrincipalIdentitiesAPI) ListIdentities ¶
func (a *PrincipalIdentitiesAPI) ListIdentities(_ context.Context, request kkOps.ListIdentitiesRequest, _ ...kkOps.Option, ) (*kkOps.ListIdentitiesResponse, error)
func (*PrincipalIdentitiesAPI) ReplaceIdentity ¶
func (a *PrincipalIdentitiesAPI) ReplaceIdentity(_ context.Context, request kkOps.ReplaceIdentityRequest, _ ...kkOps.Option, ) (*kkOps.ReplaceIdentityResponse, error)
type TrustedIDPsAPI ¶
type TrustedIDPsAPI struct {
DirectoryDependenciesAPI
Records map[string][]helpers.IdentityTrustedIDP
Associations func(string, string) []helpers.IdentityPrincipal
Writes, Creates, Updates, Deletes, Lists, Counter int
}
func (*TrustedIDPsAPI) CreateTrustedIdp ¶
func (a *TrustedIDPsAPI) CreateTrustedIdp(_ context.Context, directory string, request kkComps.CreateTrustedIdpPayload, _ ...kkOps.Option, ) (*kkOps.CreateTrustedIdpResponse, error)
func (*TrustedIDPsAPI) DeleteTrustedIdp ¶
func (a *TrustedIDPsAPI) DeleteTrustedIdp( _ context.Context, directory, id string, _ ...kkOps.Option, ) (*kkOps.DeleteTrustedIdpResponse, error)
func (*TrustedIDPsAPI) GetTrustedIdp ¶
func (a *TrustedIDPsAPI) GetTrustedIdp( _ context.Context, directory, id string, _ ...kkOps.Option, ) (*kkOps.GetTrustedIdpResponse, error)
func (*TrustedIDPsAPI) ListTrustedIdpPrincipals ¶
func (a *TrustedIDPsAPI) ListTrustedIdpPrincipals(_ context.Context, request kkOps.ListTrustedIdpPrincipalsRequest, _ ...kkOps.Option, ) (*kkOps.ListTrustedIdpPrincipalsResponse, error)
func (*TrustedIDPsAPI) ListTrustedIdps ¶
func (a *TrustedIDPsAPI) ListTrustedIdps(_ context.Context, directory string, _ *kkComps.CursorPageParameters, _ ...kkOps.Option, ) (*kkOps.ListTrustedIdpsResponse, error)
func (*TrustedIDPsAPI) UpdateTrustedIdp ¶
func (a *TrustedIDPsAPI) UpdateTrustedIdp(_ context.Context, request kkOps.UpdateTrustedIdpRequest, _ ...kkOps.Option, ) (*kkOps.UpdateTrustedIdpResponse, error)
type VaultKeysAPI ¶
type VaultKeysAPI struct {
DirectoryDependenciesAPI
Keys []helpers.IdentityVaultKey
Writes, Creates, Updates, Deletes, Lists int
Counter int
}
func (*VaultKeysAPI) CreateVaultKey ¶
func (a *VaultKeysAPI) CreateVaultKey(_ context.Context, directory string, request kkComps.CreateVaultKeyBody, _ ...kkOps.Option, ) (*kkOps.CreateVaultKeyResponse, error)
func (*VaultKeysAPI) DeleteVaultKey ¶
func (a *VaultKeysAPI) DeleteVaultKey(_ context.Context, directory, id string, _ ...kkOps.Option, ) (*kkOps.DeleteVaultKeyResponse, error)
func (*VaultKeysAPI) GetVaultKey ¶
func (a *VaultKeysAPI) GetVaultKey(_ context.Context, directory, id string, _ ...kkOps.Option, ) (*kkOps.GetVaultKeyResponse, error)
func (*VaultKeysAPI) ListVaultKeys ¶
func (a *VaultKeysAPI) ListVaultKeys(_ context.Context, request kkOps.ListVaultKeysRequest, _ ...kkOps.Option, ) (*kkOps.ListVaultKeysResponse, error)
func (*VaultKeysAPI) UpdateVaultKey ¶
func (a *VaultKeysAPI) UpdateVaultKey(_ context.Context, request kkOps.UpdateVaultKeyRequest, _ ...kkOps.Option, ) (*kkOps.UpdateVaultKeyResponse, error)
type VaultProvidersAPI ¶
type VaultProvidersAPI struct {
Credentials map[string][]helpers.IdentityVaultProviderCredential
CredentialWrites int
DirectoryDependenciesAPI
Providers []helpers.IdentityVaultProvider
AttachedCredentials map[string]bool
Writes, Creates, Updates, Deletes, Lists, SecretWrites int
Counter int
}
func (*VaultProvidersAPI) CreateVaultProvider ¶
func (a *VaultProvidersAPI) CreateVaultProvider( _ context.Context, directory string, request kkComps.CreateVaultProviderBody, _ ...kkOps.Option, ) (*kkOps.CreateVaultProviderResponse, error)
func (*VaultProvidersAPI) CreateVaultProviderCredential ¶
func (a *VaultProvidersAPI) CreateVaultProviderCredential( _ context.Context, r kkOps.CreateVaultProviderCredentialRequest, _ ...kkOps.Option, ) (*kkOps.CreateVaultProviderCredentialResponse, error)
func (*VaultProvidersAPI) DeleteVaultProvider ¶
func (a *VaultProvidersAPI) DeleteVaultProvider( _ context.Context, directory, id string, _ ...kkOps.Option, ) (*kkOps.DeleteVaultProviderResponse, error)
func (*VaultProvidersAPI) DeleteVaultProviderCredential ¶
func (a *VaultProvidersAPI) DeleteVaultProviderCredential( _ context.Context, r kkOps.DeleteVaultProviderCredentialRequest, _ ...kkOps.Option, ) (*kkOps.DeleteVaultProviderCredentialResponse, error)
func (*VaultProvidersAPI) GetCredentialProviderTemplate ¶
func (a *VaultProvidersAPI) GetCredentialProviderTemplate( _ context.Context, name kkComps.ProviderTemplateName, _ ...kkOps.Option, ) (*kkOps.GetCredentialProviderTemplateResponse, error)
func (*VaultProvidersAPI) GetVaultProvider ¶
func (a *VaultProvidersAPI) GetVaultProvider( _ context.Context, directory, id string, _ ...kkOps.Option, ) (*kkOps.GetVaultProviderResponse, error)
func (*VaultProvidersAPI) ListCredentialProviderTemplates ¶
func (a *VaultProvidersAPI) ListCredentialProviderTemplates( context.Context, *kkComps.CursorPageParameters, ...kkOps.Option, ) (*kkOps.ListCredentialProviderTemplatesResponse, error)
func (*VaultProvidersAPI) ListVaultProviderCredentials ¶
func (a *VaultProvidersAPI) ListVaultProviderCredentials( _ context.Context, request kkOps.ListVaultProviderCredentialsRequest, _ ...kkOps.Option, ) (*kkOps.ListVaultProviderCredentialsResponse, error)
func (*VaultProvidersAPI) ListVaultProviders ¶
func (a *VaultProvidersAPI) ListVaultProviders( _ context.Context, request kkOps.ListVaultProvidersRequest, _ ...kkOps.Option, ) (*kkOps.ListVaultProvidersResponse, error)
func (*VaultProvidersAPI) UpdateVaultProvider ¶
func (a *VaultProvidersAPI) UpdateVaultProvider( _ context.Context, request kkOps.UpdateVaultProviderRequest, _ ...kkOps.Option, ) (*kkOps.UpdateVaultProviderResponse, error)
func (*VaultProvidersAPI) UpdateVaultProviderCredential ¶
func (a *VaultProvidersAPI) UpdateVaultProviderCredential( _ context.Context, r kkOps.UpdateVaultProviderCredentialRequest, _ ...kkOps.Option, ) (*kkOps.UpdateVaultProviderCredentialResponse, error)