Documentation ¶
Overview ¶
Package indykite implements terraform data and resource provider.
Index ¶
- Variables
- func DisplayNameCredentialDiffSuppress(k, old, newVal string, d *schema.ResourceData) bool
- func DisplayNameDiffSuppress(k, old, newVal string, d *schema.ResourceData) bool
- func HasFailed(d *diag.Diagnostics, err error) bool
- func Provider() *schema.Provider
- func ReverseProtoEnumMap[Key, Value comparable](in map[Key]Value) map[Value]Key
- func SuppressDurationDiff(_, oldValue, newValue string, _ *schema.ResourceData) bool
- func SuppressYamlDiff(_, old, newVal string, _ *schema.ResourceData) bool
- func ValidateEmail(i any, path cty.Path) diag.Diagnostics
- func ValidateGID(i any, path cty.Path) diag.Diagnostics
- func ValidateName(i any, path cty.Path) diag.Diagnostics
- func ValidateYaml(i any, path cty.Path) diag.Diagnostics
- func WithClient(ctx context.Context, c *config.Client) context.Context
- type ClientContext
- type ProtoValidateError
Constants ¶
This section is empty.
Variables ¶
var AuthorizationPolicyStatusTypes = map[string]configpb.AuthorizationPolicyConfig_Status{ "active": configpb.AuthorizationPolicyConfig_STATUS_ACTIVE, "inactive": configpb.AuthorizationPolicyConfig_STATUS_INACTIVE, }
AuthorizationPolicyStatusTypes defines all supported StatusTypes and its mapping.
var OAuth2ClientSubjectTypes = map[string]configpb.ClientSubjectType{ "public": configpb.ClientSubjectType_CLIENT_SUBJECT_TYPE_PUBLIC, "pairwise": configpb.ClientSubjectType_CLIENT_SUBJECT_TYPE_PAIRWISE, }
OAuth2ClientSubjectTypes defines all supported Client Subjects and its mapping.
var OAuth2ClientSubjectTypesReverse = ReverseProtoEnumMap(OAuth2ClientSubjectTypes)
OAuth2ClientSubjectTypesReverse defines all supported Client Subjects and its reversed mapping.
var OAuth2GrantTypes = map[string]configpb.GrantType{ "authorization_code": configpb.GrantType_GRANT_TYPE_AUTHORIZATION_CODE, "implicit": configpb.GrantType_GRANT_TYPE_IMPLICIT, "password": configpb.GrantType_GRANT_TYPE_PASSWORD, "client_credentials": configpb.GrantType_GRANT_TYPE_CLIENT_CREDENTIALS, "refresh_token": configpb.GrantType_GRANT_TYPE_REFRESH_TOKEN, }
OAuth2GrantTypes defines all supported GrantTypes and its mapping.
var OAuth2ResponseTypes = map[string]configpb.ResponseType{ "token": configpb.ResponseType_RESPONSE_TYPE_TOKEN, "code": configpb.ResponseType_RESPONSE_TYPE_CODE, "id_token": configpb.ResponseType_RESPONSE_TYPE_ID_TOKEN, }
OAuth2ResponseTypes defines all supported ResponseTypes and its mapping.
var OAuth2TokenEndpointAuthMethods = map[string]configpb.TokenEndpointAuthMethod{ "client_secret_basic": configpb.TokenEndpointAuthMethod_TOKEN_ENDPOINT_AUTH_METHOD_CLIENT_SECRET_BASIC, "client_secret_post": configpb.TokenEndpointAuthMethod_TOKEN_ENDPOINT_AUTH_METHOD_CLIENT_SECRET_POST, "private_key_jwt": configpb.TokenEndpointAuthMethod_TOKEN_ENDPOINT_AUTH_METHOD_PRIVATE_KEY_JWT, "none": configpb.TokenEndpointAuthMethod_TOKEN_ENDPOINT_AUTH_METHOD_NONE, }
OAuth2TokenEndpointAuthMethods defines all supported Token Endpoint Auth Methods and its mapping.
var OAuth2TokenEndpointAuthMethodsReverse = ReverseProtoEnumMap(OAuth2TokenEndpointAuthMethods)
OAuth2TokenEndpointAuthMethodsReverse defines all supported Token Endpoint Auth Methods and its reversed mapping.
Functions ¶
func DisplayNameCredentialDiffSuppress ¶
func DisplayNameCredentialDiffSuppress(k, old, newVal string, d *schema.ResourceData) bool
DisplayNameCredentialDiffSuppress suppress Terraform changes when it contains KID returned from API.
func DisplayNameDiffSuppress ¶
func DisplayNameDiffSuppress(k, old, newVal string, d *schema.ResourceData) bool
DisplayNameDiffSuppress suppress Terraform changes when it contains name returned from API.
func HasFailed ¶ added in v0.4.1
func HasFailed(d *diag.Diagnostics, err error) bool
HasFailed checks if error is not nil and if it is, it will add it to diagnostics.
func ReverseProtoEnumMap ¶
func ReverseProtoEnumMap[Key, Value comparable](in map[Key]Value) map[Value]Key
ReverseProtoEnumMap create reverse map, where value is key and key is value of Proto Enum.
func SuppressDurationDiff ¶ added in v0.2.1
func SuppressDurationDiff(_, oldValue, newValue string, _ *schema.ResourceData) bool
SuppressDurationDiff compares duration written as string and compare if value is the same or not. So values like 1h or 60m is the same.
func SuppressYamlDiff ¶
func SuppressYamlDiff(_, old, newVal string, _ *schema.ResourceData) bool
SuppressYamlDiff verify that 2 YAML strings are the same in value and suppress Terraform changes.
func ValidateEmail ¶
func ValidateEmail(i any, path cty.Path) diag.Diagnostics
ValidateEmail is Terraform validation helper to verify value is valid email.
func ValidateGID ¶
func ValidateGID(i any, path cty.Path) diag.Diagnostics
ValidateGID is Terraform validation helper to verify value is valid gid.
func ValidateName ¶
func ValidateName(i any, path cty.Path) diag.Diagnostics
ValidateName is Terraform validation helper to verify value is valid name.
func ValidateYaml ¶
func ValidateYaml(i any, path cty.Path) diag.Diagnostics
ValidateYaml is Terraform validation helper to verify value is valid YAML.
Types ¶
type ClientContext ¶
type ClientContext struct {
// contains filtered or unexported fields
}
ClientContext defines structure returned by ConfigureContextFunc, which is passed into resources as meta arguemnt.
func (*ClientContext) AddBookmarks ¶ added in v0.2.0
func (x *ClientContext) AddBookmarks(bookmarks ...string)
AddBookmarks adds new bookmarks to round queue. Calling repeatedly will add more and more bookmarks while remove old ones. Size of queue should reflect Terraform parallelism and API restrictions.
func (*ClientContext) GetBookmarks ¶ added in v0.2.0
func (x *ClientContext) GetBookmarks() []string
GetBookmarks returns all stored bookmarks in the round queue. Size of queue, and thus amount of bookmarks returned, should reflect Terraform parallelism and API restrictions.
func (*ClientContext) GetClient ¶ added in v0.2.0
func (x *ClientContext) GetClient() *config.Client
GetClient returns Config client, which exposes the whole config API.
Source Files ¶
- common_schema.go
- config_nodes.go
- data_source_application.go
- data_source_application_agent.go
- data_source_application_space.go
- data_source_customer.go
- data_source_oauth2_application.go
- data_source_oauth2_provider.go
- data_source_tenant.go
- doc.go
- import_utils.go
- provider.go
- resource_application.go
- resource_application_agent.go
- resource_application_agent_credential.go
- resource_application_space.go
- resource_audit_sink.go
- resource_auth_flow.go
- resource_authorization_policy.go
- resource_container_configuration.go
- resource_email_notification.go
- resource_oauth2_application.go
- resource_oauth2_client.go
- resource_oauth2_provider.go
- resource_tenant.go
- utilities.go