Documentation ¶
Index ¶
- Constants
- Variables
- func AddFilterDeletedIAMMembersParam(cmd *cobra.Command, value *bool)
- func AddIAMFormatParam(cmd *cobra.Command, value *string)
- func AddOAuth2TokenParam(cmd *cobra.Command, value *string)
- func AddOutputParam(cmd *cobra.Command, value *string)
- func AddResourceFormatParam(cmd *cobra.Command, value *string)
- func IAMFormatParamToStreamIAMFormat(iamFormatParam string) (stream.IAMFormat, error)
- func ValidateIAMFormat(value string) error
- func ValidateResourceFormat(resourceFormat, iamFormat string) error
- type IAMFormatOption
- type ResourceFormatOption
Constants ¶
View Source
const ( IAMFormatParamName = "iam-format" FilterDeletedIAMMembersParamName = "filter-deleted-iam-members" OAuth2TokenParamName = "oauth2-token" OutputParamName = "output" ResourceFormatParamName = "resource-format" PartialPolicyFormatOption = "partialpolicy" PolicyIAMFormatOption = "policy" PolicyMemberIAMFormatOption = "policymember" NoneIAMFormatOption = "none" KRMResourceFormatOption = outputsink.KRMResourceFormat HCLResourceFormatOption = outputsink.HCLResourceFormat IAMFormatDefault = PolicyIAMFormatOption FilterDeletedIAMMembersDefault = false OAuth2TokenDefault = "" OutputDefault = "" ResourceFormatDefault = KRMResourceFormatOption OAuth2TokenUsage = "" /* 152-byte string literal not displayed */ OutputUsage = "" /* 206-byte string literal not displayed */ )
Variables ¶
View Source
var ( IAMFormatUsage = fmt.Sprintf("specify the IAM resource format or disable IAM output, options are '%v', '%v', '%v', or '%v'", PartialPolicyFormatOption, PolicyIAMFormatOption, PolicyMemberIAMFormatOption, NoneIAMFormatOption) FilterDeletedIAMMembersUsage = fmt.Sprintf("specify whether to filter out deleted IAM members, options are '%v' or '%v', (default: '%v')", true, false, FilterDeletedIAMMembersDefault) ResourceFormatUsage = fmt.Sprintf("specify the format of the outputted resources, options are '%v' or '%v' (default: '%v')", KRMResourceFormatOption, HCLResourceFormatOption, ResourceFormatDefault) )
Functions ¶
func AddIAMFormatParam ¶
func AddOAuth2TokenParam ¶
func AddOutputParam ¶
func AddResourceFormatParam ¶
func IAMFormatParamToStreamIAMFormat ¶
Convert from the an IAMPolicyParam supplied on the command line to the stream type
func ValidateIAMFormat ¶
func ValidateResourceFormat ¶
Types ¶
type IAMFormatOption ¶
type IAMFormatOption string
type ResourceFormatOption ¶
type ResourceFormatOption string
Click to show internal directories.
Click to hide internal directories.