Documentation
¶
Index ¶
- Constants
- type EntryConfig
- func (e *EntryConfig) GetName() string
- func (e *EntryConfig) LogicalResponseData(includeToken bool) (data map[string]any)
- func (e *EntryConfig) Merge(data *framework.FieldData) (warnings []string, changes map[string]string, err error)
- func (e *EntryConfig) UpdateFromFieldData(data *framework.FieldData) (warnings []string, err error)
Constants ¶
View Source
const ( DefaultAutoRotateBeforeMinTTL = 24 * time.Hour DefaultAutoRotateBeforeMaxTTL = 730 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntryConfig ¶
type EntryConfig struct {
TokenId int64 `json:"token_id" yaml:"token_id" mapstructure:"token_id"`
BaseURL string `json:"base_url" structs:"base_url" mapstructure:"base_url"`
Token string `json:"token" structs:"token" mapstructure:"token"`
AutoRotateToken bool `json:"auto_rotate_token" structs:"auto_rotate_token" mapstructure:"auto_rotate_token"`
AutoRotateBefore time.Duration `json:"auto_rotate_before" structs:"auto_rotate_before" mapstructure:"auto_rotate_before"`
TokenCreatedAt time.Time `json:"token_created_at" structs:"token_created_at" mapstructure:"token_created_at"`
TokenExpiresAt time.Time `json:"token_expires_at" structs:"token_expires_at" mapstructure:"token_expires_at"`
Scopes []string `json:"scopes" structs:"scopes" mapstructure:"scopes"`
Type gitlab.Type `json:"type" structs:"type" mapstructure:"type"`
Name string `json:"name" structs:"name" mapstructure:"name"`
GitlabVersion string `json:"gitlab_version" structs:"gitlab_version" mapstructure:"gitlab_version"`
GitlabRevision string `json:"gitlab_revision" structs:"gitlab_revision" mapstructure:"gitlab_revision"`
GitlabIsEnterprise bool `json:"gitlab_is_enterprise" structs:"gitlab_is_enterprise" mapstructure:"gitlab_is_enterprise"`
}
func (*EntryConfig) GetName ¶
func (e *EntryConfig) GetName() string
func (*EntryConfig) LogicalResponseData ¶
func (e *EntryConfig) LogicalResponseData(includeToken bool) (data map[string]any)
func (*EntryConfig) UpdateFromFieldData ¶
func (e *EntryConfig) UpdateFromFieldData(data *framework.FieldData) (warnings []string, err error)
Click to show internal directories.
Click to hide internal directories.