formatters

package
v0.5.0-rc24 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Quote

func Quote(str string) string

Types

type DetailsFormat

type DetailsFormat string
const (
	TimeFormat       = time.RFC3339
	LeftQuoteSymbol  = "“"
	RightQuoteSymbol = "“"

	UserCreatedDetailsFormat            DetailsFormat = "“%s“ created user “%s“"
	UserUpdatedDetailsFormat            DetailsFormat = "“%s“ updated the user"
	UserRoleAddedDetailsFormat          DetailsFormat = "“%s“ assigned the role “%s“ for scope “%s“ to user “%s“"
	UserDeletedDetailsFormat            DetailsFormat = "“%s“ deleted user “%s“"
	UserRoleBindingDeletedDetailsFormat DetailsFormat = "“%s“ removed the role “%s“ for scope “%s“ from user “%s“"

	TenantCreatedDetailsFormat               DetailsFormat = "“%s“ created tenant “%s“ with prefix “%s“"
	TenantUpdatedDetailsFormat               DetailsFormat = "“%s“ updated the tenant"
	TenantClusterBindingCreatedDetailsFormat DetailsFormat = "“%s“ granted tenant “%s“ access to cluster “%s”"
	TenantDeletedDetailsFormat               DetailsFormat = "“%s“ deleted tenant “%s“"
	TenantClusterBindingDeletedDetailsFormat DetailsFormat = "“%s“ revoked access to cluster “%s“ for tenant “%s“"

	ClusterCreatedDetailsFormat   DetailsFormat = "“%s“ created cluster “%s“"
	ClusterCreatedV2DetailsFormat DetailsFormat = ClusterCreatedDetailsFormat
	ClusterUpdatedDetailsFormat   DetailsFormat = "“%s“ updated the cluster"
	ClusterDeletedDetailsFormat   DetailsFormat = "“%s“ deleted cluster “%s“"

	UserCreatedOverviewDetailsFormat            DetailsFormat = "“%s“ was created by “%s“ at “%s“"
	UserDeletedOverviewDetailsFormat            DetailsFormat = " and was deleted by “%s“ at “%s“"
	UserRoleBindingOverviewDetailsFormat        DetailsFormat = "- %s %s\n"
	TenantUserRoleBindingOverviewDetailsFormat  DetailsFormat = "- %s (%s)\n"
	ClusterUserRoleBindingOverviewDetailsFormat DetailsFormat = TenantUserRoleBindingOverviewDetailsFormat
)

func (DetailsFormat) Sprint

func (f DetailsFormat) Sprint(args ...interface{}) string

Sprint returns the resulting string after formatting.

Jump to

Keyboard shortcuts

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