Documentation ¶
Index ¶
- Variables
- type AbacActionNames
- type AbacAllActionsValidatedEntityAction
- type AbacAllActionsValidationResult
- type AbacAttribute
- type AbacAttributeInput
- type AbacAttributeNames
- type AbacEntityValues
- type AbacRulesFilterArgs
- type AbacValidateAllActionsInput
- type AbacValidateInput
- type AbacValidationResult
- type CreateAbacRuleInput
- type EntityAbacRules
- type Mutation
- type Query
- type UpdateAbacRuleInput
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAbacActionNames = []AbacActionNames{ AbacActionNamesDeleteResource, AbacActionNamesExecToPod, AbacActionNamesRefresh, AbacActionNamesSync, AbacActionNamesTerminateSync, AbacActionNamesView, AbacActionNamesViewPodLogs, AbacActionNamesAppRollback, AbacActionNamesRolloutPause, AbacActionNamesRolloutResume, AbacActionNamesRolloutPromoteFull, AbacActionNamesRolloutSkipCurrentStep, AbacActionNamesRolloutAbort, AbacActionNamesRolloutRetry, AbacActionNamesAccessArtifacts, AbacActionNamesAccessLogs, AbacActionNamesCreate, AbacActionNamesRestart, AbacActionNamesResubmit, AbacActionNamesStop, AbacActionNamesTerminate, AbacActionNamesTriggerPromotion, AbacActionNamesRetryRelease, AbacActionNamesPromoteTo, }
View Source
var AllAbacAttributeNames = []AbacAttributeNames{ AbacAttributeNamesCluster, AbacAttributeNamesGitSource, AbacAttributeNamesLabel, AbacAttributeNamesNamespace, AbacAttributeNamesRuntime, AbacAttributeNamesProductName, AbacAttributeNamesEnvironmentName, AbacAttributeNamesEnvironmentKind, }
View Source
var AllAbacEntityValues = []AbacEntityValues{ AbacEntityValuesClusters, AbacEntityValuesExecutionContext, AbacEntityValuesGitContexts, AbacEntityValuesGitopsApplications, AbacEntityValuesPromotionFlows, AbacEntityValuesProducts, AbacEntityValuesEnvironments, AbacEntityValuesHelmCharts, AbacEntityValuesPipelines, AbacEntityValuesProjects, AbacEntityValuesSharedConfiguration, AbacEntityValuesWorkflows, AbacEntityValuesWorkflowTemplates, }
Functions ¶
This section is empty.
Types ¶
type AbacActionNames ¶
type AbacActionNames string
AbacActionNames
const ( AbacActionNamesDeleteResource AbacActionNames = "DELETE_RESOURCE" AbacActionNamesExecToPod AbacActionNames = "EXEC_TO_POD" AbacActionNamesRefresh AbacActionNames = "REFRESH" AbacActionNamesSync AbacActionNames = "SYNC" AbacActionNamesTerminateSync AbacActionNames = "TERMINATE_SYNC" AbacActionNamesView AbacActionNames = "VIEW" AbacActionNamesViewPodLogs AbacActionNames = "VIEW_POD_LOGS" AbacActionNamesAppRollback AbacActionNames = "APP_ROLLBACK" AbacActionNamesRolloutPause AbacActionNames = "ROLLOUT_PAUSE" AbacActionNamesRolloutResume AbacActionNames = "ROLLOUT_RESUME" AbacActionNamesRolloutPromoteFull AbacActionNames = "ROLLOUT_PROMOTE_FULL" AbacActionNamesRolloutSkipCurrentStep AbacActionNames = "ROLLOUT_SKIP_CURRENT_STEP" AbacActionNamesRolloutAbort AbacActionNames = "ROLLOUT_ABORT" AbacActionNamesRolloutRetry AbacActionNames = "ROLLOUT_RETRY" AbacActionNamesAccessArtifacts AbacActionNames = "ACCESS_ARTIFACTS" AbacActionNamesAccessLogs AbacActionNames = "ACCESS_LOGS" AbacActionNamesCreate AbacActionNames = "CREATE" AbacActionNamesRestart AbacActionNames = "RESTART" AbacActionNamesResubmit AbacActionNames = "RESUBMIT" AbacActionNamesStop AbacActionNames = "STOP" AbacActionNamesTerminate AbacActionNames = "TERMINATE" AbacActionNamesTriggerPromotion AbacActionNames = "TRIGGER_PROMOTION" AbacActionNamesRetryRelease AbacActionNames = "RETRY_RELEASE" AbacActionNamesPromoteTo AbacActionNames = "PROMOTE_TO" )
func (AbacActionNames) IsValid ¶
func (e AbacActionNames) IsValid() bool
func (AbacActionNames) MarshalGQL ¶
func (e AbacActionNames) MarshalGQL(w io.Writer)
func (AbacActionNames) String ¶
func (e AbacActionNames) String() string
func (*AbacActionNames) UnmarshalGQL ¶
func (e *AbacActionNames) UnmarshalGQL(v interface{}) error
type AbacAllActionsValidatedEntityAction ¶
type AbacAllActionsValidatedEntityAction struct { Action AbacActionNames `json:"action"` Enabled bool `json:"enabled"` }
AbacAllActionsValidatedEntity
type AbacAllActionsValidationResult ¶
type AbacAllActionsValidationResult struct { Entity string `json:"entity"` ValidationResult []*AbacAllActionsValidatedEntityAction `json:"validationResult"` }
AbacAllActionsValidationResult
type AbacAttribute ¶
type AbacAttribute struct { // Name Name AbacAttributeNames `json:"name"` // Key Key *string `json:"key,omitempty"` // Value Value string `json:"value"` }
AbacAttribute
type AbacAttributeInput ¶
type AbacAttributeInput struct { // Name Name string `json:"name"` // Key Key *string `json:"key,omitempty"` // Value Value string `json:"value"` }
AbacAttributeInput
type AbacAttributeNames ¶
type AbacAttributeNames string
AbacAttributeNames
const ( AbacAttributeNamesCluster AbacAttributeNames = "CLUSTER" AbacAttributeNamesGitSource AbacAttributeNames = "GIT_SOURCE" AbacAttributeNamesLabel AbacAttributeNames = "LABEL" AbacAttributeNamesNamespace AbacAttributeNames = "NAMESPACE" AbacAttributeNamesRuntime AbacAttributeNames = "RUNTIME" AbacAttributeNamesProductName AbacAttributeNames = "PRODUCT_NAME" AbacAttributeNamesEnvironmentName AbacAttributeNames = "ENVIRONMENT_NAME" AbacAttributeNamesEnvironmentKind AbacAttributeNames = "ENVIRONMENT_KIND" )
func (AbacAttributeNames) IsValid ¶
func (e AbacAttributeNames) IsValid() bool
func (AbacAttributeNames) MarshalGQL ¶
func (e AbacAttributeNames) MarshalGQL(w io.Writer)
func (AbacAttributeNames) String ¶
func (e AbacAttributeNames) String() string
func (*AbacAttributeNames) UnmarshalGQL ¶
func (e *AbacAttributeNames) UnmarshalGQL(v interface{}) error
type AbacEntityValues ¶
type AbacEntityValues string
Values from AbacEntityValues enum
const ( AbacEntityValuesClusters AbacEntityValues = "clusters" AbacEntityValuesExecutionContext AbacEntityValues = "executionContext" AbacEntityValuesGitContexts AbacEntityValues = "gitContexts" AbacEntityValuesGitopsApplications AbacEntityValues = "gitopsApplications" AbacEntityValuesPromotionFlows AbacEntityValues = "promotionFlows" AbacEntityValuesProducts AbacEntityValues = "products" AbacEntityValuesEnvironments AbacEntityValues = "environments" AbacEntityValuesHelmCharts AbacEntityValues = "helmCharts" AbacEntityValuesPipelines AbacEntityValues = "pipelines" AbacEntityValuesProjects AbacEntityValues = "projects" AbacEntityValuesWorkflows AbacEntityValues = "workflows" AbacEntityValuesWorkflowTemplates AbacEntityValues = "workflowTemplates" )
func (AbacEntityValues) IsValid ¶
func (e AbacEntityValues) IsValid() bool
func (AbacEntityValues) MarshalGQL ¶
func (e AbacEntityValues) MarshalGQL(w io.Writer)
func (AbacEntityValues) String ¶
func (e AbacEntityValues) String() string
func (*AbacEntityValues) UnmarshalGQL ¶
func (e *AbacEntityValues) UnmarshalGQL(v interface{}) error
type AbacRulesFilterArgs ¶
type AbacRulesFilterArgs struct { // Filter by entity types Type *AbacEntityValues `json:"type,omitempty"` }
AbacRulesFilterArgs
type AbacValidateAllActionsInput ¶ added in v1.4.2
type AbacValidateAllActionsInput struct { // AccountId AccountID string `json:"accountId"` // Teams Teams []*string `json:"teams"` // EntityType EntityType AbacEntityValues `json:"entityType"` // Entity Entities []*string `json:"entities"` }
AbacValidateAllActionsInput
type AbacValidateInput ¶ added in v1.4.2
type AbacValidateInput struct { // AccountId AccountID string `json:"accountId"` // Teams Teams []*string `json:"teams"` // Action Action string `json:"action"` // EntityType EntityType AbacEntityValues `json:"entityType"` // Entity Entity *string `json:"entity,omitempty"` }
AbacValidateInput
type AbacValidationResult ¶
type AbacValidationResult struct { IsValid bool `json:"isValid"` Message *string `json:"message,omitempty"` }
AbacValidationResult
type CreateAbacRuleInput ¶
type CreateAbacRuleInput struct { // EntityType EntityType AbacEntityValues `json:"entityType"` // Teams Teams []string `json:"teams"` // Actions Actions []string `json:"actions"` // Tags Tags []*string `json:"tags,omitempty"` // Attributes Attributes []*AbacAttributeInput `json:"attributes,omitempty"` }
CreateRuleInput
type EntityAbacRules ¶
type EntityAbacRules struct { // Id ID *string `json:"id,omitempty"` // AccountId AccountID string `json:"accountId"` // EntityType EntityType AbacEntityValues `json:"entityType"` // Teams Teams []string `json:"teams"` // Tags Tags []*string `json:"tags,omitempty"` // Actions Actions []AbacActionNames `json:"actions"` // Attributes Attributes []*AbacAttribute `json:"attributes"` }
EntityAbacRules
type UpdateAbacRuleInput ¶
type UpdateAbacRuleInput struct { // _id ID string `json:"id"` // AccountId AccountID string `json:"accountId"` // EntityType EntityType AbacEntityValues `json:"entityType"` // Teams Teams []string `json:"teams"` // Actions Actions []string `json:"actions"` // Tags Tags []*string `json:"tags,omitempty"` // Attributes Attributes []*AbacAttributeInput `json:"attributes,omitempty"` }
UpdateRuleInput
Click to show internal directories.
Click to hide internal directories.