Documentation ¶
Index ¶
- func MustSelectBackup(ctx context.Context, log zerolog.Logger, id string, ...) *backup.Backup
- 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 MustSelectGroup(ctx context.Context, log zerolog.Logger, id, orgID string, ...) *iam.Group
- func MustSelectIPWhitelist(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, ...) *security.IPWhitelist
- func MustSelectMember(ctx context.Context, log zerolog.Logger, id, orgID string, ...) *iam.User
- 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 SelectBackup(ctx context.Context, log zerolog.Logger, id string, ...) (*backup.Backup, 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 SelectGroup(ctx context.Context, log zerolog.Logger, id, orgID string, ...) (*iam.Group, error)
- func SelectIPWhitelist(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, ...) (*security.IPWhitelist, error)
- func SelectMember(ctx context.Context, log zerolog.Logger, id, orgID string, ...) (*iam.User, 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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 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 MustSelectIPWhitelist ¶
func MustSelectIPWhitelist(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, securityc security.SecurityServiceClient, rmc rm.ResourceManagerServiceClient) *security.IPWhitelist
MustSelectIPWhitelist fetches the IP whitelist with given ID, name, or URL and fails if no organization is found. If no ID is specified, all IP whitelists are fetched from the selected project and if the list is exactly 1 long, that IP whitelist 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 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 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 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 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 SelectIPWhitelist ¶
func SelectIPWhitelist(ctx context.Context, log zerolog.Logger, id, projectID, orgID string, securityc security.SecurityServiceClient, rmc rm.ResourceManagerServiceClient) (*security.IPWhitelist, error)
SelectIPWhitelist fetches the IP whitelist with given ID, name, or URL and fails if no whitelist is found. If no ID is specified, all IP whitelists are fetched from the selected project and if the list is exactly 1 long, that IP whitelist 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 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.
Types ¶
This section is empty.