accountnotifier

package
v0.0.0-...-c2b5c71 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package accountnotifier is used for Pgp Reencryption

Index

Constants

This section is empty.

Variables

View Source
var IntegrationName = "account-notifier"

IntegrationName is the name of the integration

Functions

This section is empty.

Types

type AccountNotifier

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

AccountNotifier is the account notifier integration used for pgp reencryption

func NewAccountNotifier

func NewAccountNotifier() *AccountNotifier

NewAccountNotifier create a new account notifier

func (*AccountNotifier) CurrentState

CurrentState lists the secrets from the vault import path and adds them to the resource inventory as current state

func (*AccountNotifier) DesiredState

func (n *AccountNotifier) DesiredState(ctx context.Context, ri *reconcile.ResourceInventory) error

DesiredState lists the users from the QontractServer and adds them to the resource inventory as desired state

func (*AccountNotifier) LogDiff

LogDiff specifies the logging for the account notifier

func (*AccountNotifier) Reconcile

Reconcile loop over state and reconcile depending on it.

func (*AccountNotifier) Setup

func (n *AccountNotifier) Setup(ctx context.Context) error

Setup the account notifier

type PgpReencryptSettingsPgp_reencrypt_settings_v1PgpReencryptSettings_v1

type PgpReencryptSettingsPgp_reencrypt_settings_v1PgpReencryptSettings_v1 struct {
	Aws_account_output_vault_path string `json:"aws_account_output_vault_path"`
	Reencrypt_vault_path          string `json:"reencrypt_vault_path"`
	Private_pgp_key_vault_path    string `json:"private_pgp_key_vault_path"`
}

PgpReencryptSettingsPgp_reencrypt_settings_v1PgpReencryptSettings_v1 includes the requested fields of the GraphQL type PgpReencryptSettings_v1.

func (*PgpReencryptSettingsPgp_reencrypt_settings_v1PgpReencryptSettings_v1) GetAws_account_output_vault_path

GetAws_account_output_vault_path returns PgpReencryptSettingsPgp_reencrypt_settings_v1PgpReencryptSettings_v1.Aws_account_output_vault_path, and is useful for accessing the field via an interface.

func (*PgpReencryptSettingsPgp_reencrypt_settings_v1PgpReencryptSettings_v1) GetPrivate_pgp_key_vault_path

GetPrivate_pgp_key_vault_path returns PgpReencryptSettingsPgp_reencrypt_settings_v1PgpReencryptSettings_v1.Private_pgp_key_vault_path, and is useful for accessing the field via an interface.

func (*PgpReencryptSettingsPgp_reencrypt_settings_v1PgpReencryptSettings_v1) GetReencrypt_vault_path

GetReencrypt_vault_path returns PgpReencryptSettingsPgp_reencrypt_settings_v1PgpReencryptSettings_v1.Reencrypt_vault_path, and is useful for accessing the field via an interface.

type PgpReencryptSettingsResponse

type PgpReencryptSettingsResponse struct {
	Pgp_reencrypt_settings_v1 []PgpReencryptSettingsPgp_reencrypt_settings_v1PgpReencryptSettings_v1 `json:"pgp_reencrypt_settings_v1"`
}

PgpReencryptSettingsResponse is returned by PgpReencryptSettings on success.

func PgpReencryptSettings

func PgpReencryptSettings(
	ctx context.Context,
) (*PgpReencryptSettingsResponse, error)

func (*PgpReencryptSettingsResponse) GetPgp_reencrypt_settings_v1

GetPgp_reencrypt_settings_v1 returns PgpReencryptSettingsResponse.Pgp_reencrypt_settings_v1, and is useful for accessing the field via an interface.

type SmtpSettingsResponse

type SmtpSettingsResponse struct {
	Settings []SmtpSettingsSettingsAppInterfaceSettings_v1 `json:"settings"`
}

SmtpSettingsResponse is returned by SmtpSettings on success.

func SmtpSettings

func SmtpSettings(
	ctx context.Context,
) (*SmtpSettingsResponse, error)

func (*SmtpSettingsResponse) GetSettings

GetSettings returns SmtpSettingsResponse.Settings, and is useful for accessing the field via an interface.

type SmtpSettingsSettingsAppInterfaceSettings_v1

type SmtpSettingsSettingsAppInterfaceSettings_v1 struct {
	Smtp SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1 `json:"smtp"`
}

SmtpSettingsSettingsAppInterfaceSettings_v1 includes the requested fields of the GraphQL type AppInterfaceSettings_v1.

func (*SmtpSettingsSettingsAppInterfaceSettings_v1) GetSmtp

GetSmtp returns SmtpSettingsSettingsAppInterfaceSettings_v1.Smtp, and is useful for accessing the field via an interface.

type SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1

type SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1 struct {
	MailAddress string                                                                                  `json:"mailAddress"`
	Timeout     int                                                                                     `json:"timeout"`
	Credentials SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1 `json:"credentials"`
}

SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1 includes the requested fields of the GraphQL type SmtpSettings_v1.

func (*SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1) GetCredentials

GetCredentials returns SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1.Credentials, and is useful for accessing the field via an interface.

func (*SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1) GetMailAddress

GetMailAddress returns SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1.MailAddress, and is useful for accessing the field via an interface.

func (*SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1) GetTimeout

GetTimeout returns SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1.Timeout, and is useful for accessing the field via an interface.

type SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1

type SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1 struct {
	Path    string `json:"path"`
	Field   string `json:"field"`
	Version int    `json:"version"`
	Format  string `json:"format"`
}

SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1 includes the requested fields of the GraphQL type VaultSecret_v1.

func (*SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1) GetField

GetField returns SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1.Field, and is useful for accessing the field via an interface.

func (*SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1) GetFormat

GetFormat returns SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1.Format, and is useful for accessing the field via an interface.

func (*SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1) GetPath

GetPath returns SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1.Path, and is useful for accessing the field via an interface.

func (*SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1) GetVersion

GetVersion returns SmtpSettingsSettingsAppInterfaceSettings_v1SmtpSmtpSettings_v1CredentialsVaultSecret_v1.Version, and is useful for accessing the field via an interface.

type UsersResponse

type UsersResponse struct {
	Users_v1 []UsersUsers_v1User_v1 `json:"users_v1"`
}

UsersResponse is returned by Users on success.

func Users

func Users(
	ctx context.Context,
) (*UsersResponse, error)

func (*UsersResponse) GetUsers_v1

func (v *UsersResponse) GetUsers_v1() []UsersUsers_v1User_v1

GetUsers_v1 returns UsersResponse.Users_v1, and is useful for accessing the field via an interface.

type UsersUsers_v1User_v1

type UsersUsers_v1User_v1 struct {
	Path               string `json:"path"`
	Name               string `json:"name"`
	Org_username       string `json:"org_username"`
	Github_username    string `json:"github_username"`
	Slack_username     string `json:"slack_username"`
	Pagerduty_username string `json:"pagerduty_username"`
	Public_gpg_key     string `json:"public_gpg_key"`
}

UsersUsers_v1User_v1 includes the requested fields of the GraphQL type User_v1.

func (*UsersUsers_v1User_v1) GetGithub_username

func (v *UsersUsers_v1User_v1) GetGithub_username() string

GetGithub_username returns UsersUsers_v1User_v1.Github_username, and is useful for accessing the field via an interface.

func (*UsersUsers_v1User_v1) GetName

func (v *UsersUsers_v1User_v1) GetName() string

GetName returns UsersUsers_v1User_v1.Name, and is useful for accessing the field via an interface.

func (*UsersUsers_v1User_v1) GetOrg_username

func (v *UsersUsers_v1User_v1) GetOrg_username() string

GetOrg_username returns UsersUsers_v1User_v1.Org_username, and is useful for accessing the field via an interface.

func (*UsersUsers_v1User_v1) GetPagerduty_username

func (v *UsersUsers_v1User_v1) GetPagerduty_username() string

GetPagerduty_username returns UsersUsers_v1User_v1.Pagerduty_username, and is useful for accessing the field via an interface.

func (*UsersUsers_v1User_v1) GetPath

func (v *UsersUsers_v1User_v1) GetPath() string

GetPath returns UsersUsers_v1User_v1.Path, and is useful for accessing the field via an interface.

func (*UsersUsers_v1User_v1) GetPublic_gpg_key

func (v *UsersUsers_v1User_v1) GetPublic_gpg_key() string

GetPublic_gpg_key returns UsersUsers_v1User_v1.Public_gpg_key, and is useful for accessing the field via an interface.

func (*UsersUsers_v1User_v1) GetSlack_username

func (v *UsersUsers_v1User_v1) GetSlack_username() string

GetSlack_username returns UsersUsers_v1User_v1.Slack_username, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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