Documentation ¶
Index ¶
- func MustSelectAuditLog(ctx context.Context, log zerolog.Logger, id, orgID string, ...) *audit.AuditLog
- func MustSelectAuditLogArchive(ctx context.Context, log zerolog.Logger, id string, ...) *audit.AuditLogArchive
- func MustSelectBackup(ctx context.Context, log zerolog.Logger, id string, ...) *backup.Backup
- func MustSelectBackupPolicy(ctx context.Context, log zerolog.Logger, id string, ...) *backup.BackupPolicy
- func MustSelectCACertificate(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, ...) *crypto.CACertificate
- func MustSelectDeployment(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, ...) *data.Deployment
- func MustSelectExampleDataset(ctx context.Context, log zerolog.Logger, id string, ...) *example.ExampleDataset
- func MustSelectExampleDatasetInstallation(ctx context.Context, log zerolog.Logger, ...) *example.ExampleDatasetInstallation
- func MustSelectGroup(ctx context.Context, log zerolog.Logger, id, orgID string, ...) *iam.Group
- func MustSelectIPAllowlist(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, ...) *security.IPAllowlist
- func MustSelectMember(ctx context.Context, log zerolog.Logger, id, orgID string, ...) *iam.User
- func MustSelectMetricsToken(ctx context.Context, log zerolog.Logger, ...) *metrics.Token
- func MustSelectOrganization(ctx context.Context, log zerolog.Logger, id string, ...) *rm.Organization
- func MustSelectOrganizationInvite(ctx context.Context, log zerolog.Logger, id, orgID string, ...) *rm.OrganizationInvite
- func MustSelectProject(ctx context.Context, log zerolog.Logger, id, orgID string, ...) *rm.Project
- func MustSelectProvider(ctx context.Context, log zerolog.Logger, id string, organizationID string, ...) *platform.Provider
- func MustSelectRegion(ctx context.Context, log zerolog.Logger, id, providerID string, ...) *platform.Region
- func MustSelectRole(ctx context.Context, log zerolog.Logger, id, orgID string, ...) *iam.Role
- func MustSelectTermsAndConditions(ctx context.Context, log zerolog.Logger, id, orgID string, ...) *rm.TermsAndConditions
- func SelectAuditLog(ctx context.Context, log zerolog.Logger, id, orgID string, ...) (*audit.AuditLog, error)
- func SelectAuditLogArchive(ctx context.Context, log zerolog.Logger, id string, ...) (*audit.AuditLogArchive, error)
- func SelectBackup(ctx context.Context, log zerolog.Logger, id string, ...) (*backup.Backup, error)
- func SelectBackupPolicy(ctx context.Context, log zerolog.Logger, id string, ...) (*backup.BackupPolicy, error)
- func SelectCACertificate(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, ...) (*crypto.CACertificate, error)
- func SelectDeployment(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, ...) (*data.Deployment, error)
- func SelectExampleDataset(ctx context.Context, log zerolog.Logger, id string, ...) (*example.ExampleDataset, error)
- func SelectExampleDatasetInstallation(ctx context.Context, log zerolog.Logger, ...) (*example.ExampleDatasetInstallation, error)
- func SelectGroup(ctx context.Context, log zerolog.Logger, id, orgID string, ...) (*iam.Group, error)
- func SelectIPAllowlist(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, ...) (*security.IPAllowlist, error)
- func SelectMember(ctx context.Context, log zerolog.Logger, id, orgID string, ...) (*iam.User, error)
- func SelectMetricsToken(ctx context.Context, log zerolog.Logger, ...) (*metrics.Token, error)
- func SelectOrganization(ctx context.Context, log zerolog.Logger, id string, ...) (*rm.Organization, error)
- func SelectOrganizationInvite(ctx context.Context, log zerolog.Logger, id, orgID string, ...) (*rm.OrganizationInvite, error)
- func SelectProject(ctx context.Context, log zerolog.Logger, id, orgID string, ...) (*rm.Project, error)
- func SelectProvider(ctx context.Context, log zerolog.Logger, id string, organizationID string, ...) (*platform.Provider, error)
- func SelectRegion(ctx context.Context, log zerolog.Logger, id, providerID string, ...) (*platform.Region, error)
- func SelectRole(ctx context.Context, log zerolog.Logger, id, orgID string, ...) (*iam.Role, error)
- func SelectTermsAndConditions(ctx context.Context, log zerolog.Logger, id, orgID string, ...) (*rm.TermsAndConditions, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustSelectAuditLog ¶ added in v0.20.2
func MustSelectAuditLog(ctx context.Context, log zerolog.Logger, id, orgID string, auditc audit.AuditServiceClient) *audit.AuditLog
MustSelectAuditLog fetches an auditlog given ID, name, or URL and fails if no such item is found.
func MustSelectAuditLogArchive ¶ added in v0.20.2
func MustSelectAuditLogArchive(ctx context.Context, log zerolog.Logger, id string, auditc audit.AuditServiceClient) *audit.AuditLogArchive
MustSelectAuditLogArchive fetches an auditlog archive given ID, name, or URL and fails if no such item is found.
func MustSelectBackup ¶
func MustSelectBackup(ctx context.Context, log zerolog.Logger, id string, backupc backup.BackupServiceClient) *backup.Backup
MustSelectBackup fetches a backup with given ID, name, or URL and fails if no backup is found. If no ID is specified, all backups are fetched from the selected deployment and if the list is exactly 1 long, that backup is returned.
func MustSelectBackupPolicy ¶ added in v0.19.0
func MustSelectBackupPolicy(ctx context.Context, log zerolog.Logger, id string, backupc backup.BackupServiceClient) *backup.BackupPolicy
MustSelectBackupPolicy fetches a backup policy with given ID, name, or URL and fails if no backup policy is found. If no ID is specified, all backup policies are fetched from the selected deployment and if the list is exactly 1 long, that backup policy is returned.
func MustSelectCACertificate ¶
func MustSelectCACertificate(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, cryptoc crypto.CryptoServiceClient, rmc rm.ResourceManagerServiceClient) *crypto.CACertificate
MustSelectCACertificate fetches the CA certificate with given ID, name, or URL and fails if no certificate is found. If no ID is specified, all CA certificate are fetched from the selected project and if the list is exactly 1 long, that CA certificate is returned.
func MustSelectDeployment ¶
func MustSelectDeployment(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, datac data.DataServiceClient, rmc rm.ResourceManagerServiceClient) *data.Deployment
MustSelectDeployment fetches the deployment given ID, name, or URL and fails if no deployment is found. If no ID is specified, all deployments are fetched from the selected project and if the list is exactly 1 long, that deployment is returned.
func MustSelectExampleDataset ¶ added in v0.13.0
func MustSelectExampleDataset(ctx context.Context, log zerolog.Logger, id string, examplec example.ExampleDatasetServiceClient) *example.ExampleDataset
MustSelectExampleDataset fetches an example dataset with given ID, name, or URL and fails if no such item is found.
func MustSelectExampleDatasetInstallation ¶ added in v0.13.0
func MustSelectExampleDatasetInstallation(ctx context.Context, log zerolog.Logger, id, deploymentID, projectID, organizationID string, datac data.DataServiceClient, examplec example.ExampleDatasetServiceClient, rmc rm.ResourceManagerServiceClient) *example.ExampleDatasetInstallation
MustSelectExampleDatasetInstallation fetches an example dataset installation with given ID, name, or URL and fails if no such item is found. If no ID is specified, all installations are fetched from the selected deployment and if the list is exactly 1 long, that backup is returned.
func MustSelectGroup ¶
func MustSelectGroup(ctx context.Context, log zerolog.Logger, id, orgID string, iamc iam.IAMServiceClient, rmc rm.ResourceManagerServiceClient) *iam.Group
MustSelectGroup fetches the group with given ID, name, or URL and fails if no group is found. If no ID is specified, all groups are fetched from the selected organization and if the list is exactly 1 long, that group is returned.
func MustSelectIPAllowlist ¶ added in v0.17.0
func MustSelectIPAllowlist(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, securityc security.SecurityServiceClient, rmc rm.ResourceManagerServiceClient) *security.IPAllowlist
MustSelectIPAllowlist fetches the IP allowlist with given ID, name, or URL and fails if no organization is found. If no ID is specified, all IP allowlists are fetched from the selected project and if the list is exactly 1 long, that IP allowlist is returned.
func MustSelectMember ¶
func MustSelectMember(ctx context.Context, log zerolog.Logger, id, orgID string, iamc iam.IAMServiceClient, rmc rm.ResourceManagerServiceClient) *iam.User
MustSelectMember fetches the member with given ID, name, or email and fails if no member is found. If no ID is specified, all members are fetched from the selected organization and if the list is exactly 1 long, that user is returned.
func MustSelectMetricsToken ¶ added in v1.4.0
func MustSelectMetricsToken(ctx context.Context, log zerolog.Logger, id, deploymentID, projectID, orgID string, metricsc metrics.MetricsServiceClient, datac data.DataServiceClient, rmc rm.ResourceManagerServiceClient) *metrics.Token
MustSelectMetricsToken fetches the metrics token given ID, name, or URL and fails if no token is found. If no ID is specified, all tokens are fetched from the selected deployment and if the list is exactly 1 long, that token is returned.
func MustSelectOrganization ¶
func MustSelectOrganization(ctx context.Context, log zerolog.Logger, id string, rmc rm.ResourceManagerServiceClient) *rm.Organization
MustSelectOrganization fetches the organization with given ID, name, or URL and fails if no organization is found. If no ID is specified, all organizations are fetched and if the user is member of exactly 1, that organization is returned.
func MustSelectOrganizationInvite ¶
func MustSelectOrganizationInvite(ctx context.Context, log zerolog.Logger, id, orgID string, rmc rm.ResourceManagerServiceClient) *rm.OrganizationInvite
MustSelectOrganizationInvite fetches the organization invite with given ID, email, or URL and fails if no invite is found. If no ID is specified, all invites are fetched from the selected organization and if the list is exactly 1 long, that invite is returned.
func MustSelectProject ¶
func MustSelectProject(ctx context.Context, log zerolog.Logger, id, orgID string, rmc rm.ResourceManagerServiceClient) *rm.Project
MustSelectProject fetches the project with given ID, name, or URL and fails if no project is found. If no ID is specified, all projects are fetched from the selected organization and if the list is exactly 1 long, that project is returned.
func MustSelectProvider ¶
func MustSelectProvider(ctx context.Context, log zerolog.Logger, id string, organizationID string, platformc platform.PlatformServiceClient) *platform.Provider
MustSelectProvider fetches the provider with given ID, or name and fails if no provider is found. If no ID is specified, all providers are fetched and if the user is member of exactly 1, that provider is returned.
func MustSelectRegion ¶
func MustSelectRegion(ctx context.Context, log zerolog.Logger, id, providerID string, organizationID string, platformc platform.PlatformServiceClient) *platform.Region
MustSelectRegion fetches the region with given ID or location and fails if no region is found. If no ID is specified, all regions are fetched from the selected provider and if the list is exactly 1 long, that region is returned.
func MustSelectRole ¶
func MustSelectRole(ctx context.Context, log zerolog.Logger, id, orgID string, iamc iam.IAMServiceClient, rmc rm.ResourceManagerServiceClient) *iam.Role
MustSelectRole fetches the role with given ID, name, or URL and fails if no role is found. If no ID is specified, all roles are fetched from the selected organization and if the list is exactly 1 long, that role is returned.
func MustSelectTermsAndConditions ¶ added in v0.17.0
func MustSelectTermsAndConditions(ctx context.Context, log zerolog.Logger, id, orgID string, rmc rm.ResourceManagerServiceClient) *rm.TermsAndConditions
MustSelectTermsAndConditions fetches the terms and conditions with given ID. If no ID is specified, the current terms and conditions is selected for a given ogranization.
func SelectAuditLog ¶ added in v0.20.2
func SelectAuditLog(ctx context.Context, log zerolog.Logger, id, orgID string, auditc audit.AuditServiceClient) (*audit.AuditLog, error)
SelectAuditLog fetches an auditlog with given ID, name, or URL or returns an error if not found.
func SelectAuditLogArchive ¶ added in v0.20.2
func SelectAuditLogArchive(ctx context.Context, log zerolog.Logger, id string, auditc audit.AuditServiceClient) (*audit.AuditLogArchive, error)
SelectAuditLogArchive fetches an auditlog archive with given ID, name, or URL or returns an error if not found.
func SelectBackup ¶
func SelectBackup(ctx context.Context, log zerolog.Logger, id string, backupc backup.BackupServiceClient) (*backup.Backup, error)
SelectBackup fetches a backup with given ID, name, or URL or returns an error if not found. If no ID is specified, all backups are fetched from the selected deployment and if the list is exactly 1 long, that backup is returned.
func SelectBackupPolicy ¶ added in v0.19.0
func SelectBackupPolicy(ctx context.Context, log zerolog.Logger, id string, backupc backup.BackupServiceClient) (*backup.BackupPolicy, error)
SelectBackup fetches a backup policy with given ID, name, or URL or returns an error if not found. If no ID is specified, all backup policies are fetched from the selected deployment and if the list is exactly 1 long, that backup policy is returned.
func SelectCACertificate ¶
func SelectCACertificate(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, cryptoc crypto.CryptoServiceClient, rmc rm.ResourceManagerServiceClient) (*crypto.CACertificate, error)
SelectCACertificate fetches the CA certificate with given ID, name, or URL and returns an error if not found.. If no ID is specified, all CA certificate are fetched from the selected project and if the list is exactly 1 long, that CA certificate is returned.
func SelectDeployment ¶
func SelectDeployment(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, datac data.DataServiceClient, rmc rm.ResourceManagerServiceClient) (*data.Deployment, error)
SelectDeployment fetches the deployment given ID, name, or URL or returns an error if not found. If no ID is specified, all deployments are fetched from the selected project and if the list is exactly 1 long, that deployment is returned.
func SelectExampleDataset ¶ added in v0.13.0
func SelectExampleDataset(ctx context.Context, log zerolog.Logger, id string, examplec example.ExampleDatasetServiceClient) (*example.ExampleDataset, error)
SelectExampleDataset fetches an example dataset with given ID, name, or URL or returns an error if not found.
func SelectExampleDatasetInstallation ¶ added in v0.13.0
func SelectExampleDatasetInstallation(ctx context.Context, log zerolog.Logger, id, deploymentID, projectID, organizationID string, datac data.DataServiceClient, examplec example.ExampleDatasetServiceClient, rmc rm.ResourceManagerServiceClient) (*example.ExampleDatasetInstallation, error)
SelectExampleDatasetInstallation fetches an example dataset with given ID, name, or URL or returns an error if not found.
func SelectGroup ¶
func SelectGroup(ctx context.Context, log zerolog.Logger, id, orgID string, iamc iam.IAMServiceClient, rmc rm.ResourceManagerServiceClient) (*iam.Group, error)
SelectGroup fetches the group with given ID, name, or URL or returns an error if not found. If no ID is specified, all groups are fetched from the selected organization and if the list is exactly 1 long, that group is returned.
func SelectIPAllowlist ¶ added in v0.17.0
func SelectIPAllowlist(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, securityc security.SecurityServiceClient, rmc rm.ResourceManagerServiceClient) (*security.IPAllowlist, error)
SelectIPAllowlist fetches the IP allowlist with given ID, name, or URL and fails if no allowlist is found. If no ID is specified, all IP allowlists are fetched from the selected project and if the list is exactly 1 long, that IP allowlist is returned.
func SelectMember ¶
func SelectMember(ctx context.Context, log zerolog.Logger, id, orgID string, iamc iam.IAMServiceClient, rmc rm.ResourceManagerServiceClient) (*iam.User, error)
SelectMember fetches the member with given ID, name, or email or returns an error if not found. If no ID is specified, all members are fetched from the selected organization and if the list is exactly 1 long, that user is returned.
func SelectMetricsToken ¶ added in v1.4.0
func SelectMetricsToken(ctx context.Context, log zerolog.Logger, id, deploymentID, projectID, orgID string, metricsc metrics.MetricsServiceClient, datac data.DataServiceClient, rmc rm.ResourceManagerServiceClient) (*metrics.Token, error)
SelectMetricsToken fetches the metrics token given ID, name, or URL or returns an error if not found. If no ID is specified, all tokens are fetched from the selected deployment and if the list is exactly 1 long, that token is returned.
func SelectOrganization ¶
func SelectOrganization(ctx context.Context, log zerolog.Logger, id string, rmc rm.ResourceManagerServiceClient) (*rm.Organization, error)
SelectOrganization fetches the organization with given ID, name, or URL or returns an error if not found. If no ID is specified, all organizations are fetched and if the user is member of exactly 1, that organization is returned.
func SelectOrganizationInvite ¶
func SelectOrganizationInvite(ctx context.Context, log zerolog.Logger, id, orgID string, rmc rm.ResourceManagerServiceClient) (*rm.OrganizationInvite, error)
SelectOrganizationInvite fetches the organization invite with given ID, email, or URL or returns an error if not found. If no ID is specified, all invites are fetched from the selected organization and if the list is exactly 1 long, that invite is returned.
func SelectProject ¶
func SelectProject(ctx context.Context, log zerolog.Logger, id, orgID string, rmc rm.ResourceManagerServiceClient) (*rm.Project, error)
MustSelectProject fetches the project with given ID, name, or URL or returns an error if not found. If no ID is specified, all projects are fetched from the selected organization and if the list is exactly 1 long, that project is returned.
func SelectProvider ¶
func SelectProvider(ctx context.Context, log zerolog.Logger, id string, organizationID string, platformc platform.PlatformServiceClient) (*platform.Provider, error)
SelectProvider fetches the provider with given ID, or name or returns an error if not found. If no ID is specified, all providers are fetched and if the user is member of exactly 1, that provider is returned.
func SelectRegion ¶
func SelectRegion(ctx context.Context, log zerolog.Logger, id, providerID string, organizationID string, platformc platform.PlatformServiceClient) (*platform.Region, error)
SelectRegion fetches the region with given ID or location or returns an error if not found. If no ID is specified, all regions are fetched from the selected provider and if the list is exactly 1 long, that region is returned.
func SelectRole ¶
func SelectRole(ctx context.Context, log zerolog.Logger, id, orgID string, iamc iam.IAMServiceClient, rmc rm.ResourceManagerServiceClient) (*iam.Role, error)
SelectRole fetches the role with given ID, name, or URL or returns an error if not found. If no ID is specified, all roles are fetched from the selected organization and if the list is exactly 1 long, that role is returned.
func SelectTermsAndConditions ¶ added in v0.17.0
func SelectTermsAndConditions(ctx context.Context, log zerolog.Logger, id, orgID string, rmc rm.ResourceManagerServiceClient) (*rm.TermsAndConditions, error)
SelectTermsAndConditions fetches the terms and conditions with given ID. If no ID is specified, the current terms and conditions is selected for a given ogranization.
Types ¶
This section is empty.