Documentation ¶
Index ¶
- Variables
- func New(version string) func() provider.Provider
- func NewActiveDirectoryResource() resource.Resource
- func NewDeviceGroupResource() resource.Resource
- func NewUserGroupResource() resource.Resource
- type ActiveDirectoryResource
- func (r *ActiveDirectoryResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ActiveDirectoryResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ActiveDirectoryResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ActiveDirectoryResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (r *ActiveDirectoryResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ActiveDirectoryResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ActiveDirectoryResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ActiveDirectoryResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ActiveDirectoryResourceModel
- type DeviceGroupResource
- func (r *DeviceGroupResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DeviceGroupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DeviceGroupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DeviceGroupResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (r *DeviceGroupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DeviceGroupResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DeviceGroupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DeviceGroupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DeviceGroupResourceModel
- type JumpCloudApi
- type JumpCloudProvider
- func (p *JumpCloudProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *JumpCloudProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *JumpCloudProvider) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (p *JumpCloudProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *JumpCloudProvider) Resources(ctx context.Context) []func() resource.Resource
- type JumpCloudProviderModel
- type KVItemModel
- type LdapGroupModel
- type LdapInfo
- type MemberQueryModel
- type PosixGroupModel
- type SambaConfig
- type SudoConfigModel
- type UserGroupResource
- func (r *UserGroupResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *UserGroupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *UserGroupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *UserGroupResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (r *UserGroupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *UserGroupResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *UserGroupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *UserGroupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type UserGroupResourceModel
Constants ¶
This section is empty.
Variables ¶
View Source
var UserGroupSchema = tfsdk.Schema{ MarkdownDescription: "JumpCloud User Group", Description: "JumpCloud User Group", Version: 0, Attributes: map[string]tfsdk.Attribute{ "id": { Computed: true, MarkdownDescription: "Resource ID (Computed / Read-Only)", PlanModifiers: tfsdk.AttributePlanModifiers{ resource.UseStateForUnknown(), }, Type: types.StringType, }, "name": { MarkdownDescription: "Name for the User Group", Type: types.StringType, Required: true, }, "sudo": { MarkdownDescription: "Sudo configuration for the user-group", Attributes: tfsdk.SingleNestedAttributes(map[string]tfsdk.Attribute{ "enabled": { MarkdownDescription: "Whether this user-group will allowed to use sudo", Type: types.BoolType, Required: true, }, "passwordless": { MarkdownDescription: "Whether members of this user-group will be able to use sudo without entering a password", Type: types.BoolType, Required: true, }, }), Optional: true, }, "ldap": { MarkdownDescription: "List of LDAP Groups the user-group is mapped to", Attributes: tfsdk.SingleNestedAttributes(map[string]tfsdk.Attribute{ "groups": { Attributes: tfsdk.ListNestedAttributes(map[string]tfsdk.Attribute{ "name": { MarkdownDescription: "The LDAP Group Name", Type: types.StringType, Required: true, }, }), Optional: true, Computed: true, }, }), Optional: true, Computed: true, }, "posix": { MarkdownDescription: "List of POSIX Groups the user-group is mapped to", Attributes: tfsdk.ListNestedAttributes(map[string]tfsdk.Attribute{ "id": { MarkdownDescription: "The posix group id", Type: types.Int64Type, Required: true, }, "name": { MarkdownDescription: "The posix group name", Type: types.StringType, Required: true, }, }), Optional: true, }, "radius": { MarkdownDescription: "List of RADIUS Replies to associate with the user-group", Attributes: tfsdk.ListNestedAttributes(map[string]tfsdk.Attribute{ "name": { MarkdownDescription: "The reply name", Type: types.StringType, Required: true, }, "value": { MarkdownDescription: "The reply value", Type: types.StringType, Required: true, }, }), Optional: true, }, "samba": { MarkdownDescription: "Whether samba propogation is enabled for this user-group", Type: types.BoolType, Optional: true, }, "properties": { MarkdownDescription: "List of attribute properties to set on the user-group", Attributes: tfsdk.ListNestedAttributes(map[string]tfsdk.Attribute{ "name": { MarkdownDescription: "The property name", Type: types.StringType, Required: true, }, "value": { MarkdownDescription: "The property value", Type: types.StringType, Required: true, }, }), Optional: true, }, "description": { MarkdownDescription: "Description for the User Group", Type: types.StringType, Optional: true, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ planmodifiers.StringDefaultModifier{ Default: "", }, }, }, "email": { MarkdownDescription: "E-Mail Address for the User Group (Mailing List Group)", Type: types.StringType, Optional: true, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ planmodifiers.StringDefaultModifier{ Default: "", }, }, }, "member_queries": { MarkdownDescription: "Query using a sequence of field filters.", Attributes: tfsdk.ListNestedAttributes(map[string]tfsdk.Attribute{ "query": { Required: true, Attributes: tfsdk.MapNestedAttributes(map[string]tfsdk.Attribute{ "field": { MarkdownDescription: "The name of the field to query", Type: types.StringType, Required: true, }, "operator": { MarkdownDescription: "The operator to use for the query", Type: types.StringType, Required: true, Validators: []tfsdk.AttributeValidator{ stringvalidator.OneOf([]string{"eq", "ne", "gt", "lt", "ge", "le", "between", "search", "in"}...), }, }, "value": { MarkdownDescription: "The value for the filter expression", Type: types.StringType, Required: true, }, }), }, }), Optional: true, }, "notify": { MarkdownDescription: "Whether to send notifications for new member suggestions that match member-query-filters", Type: types.BoolType, Optional: true, Computed: true, }, "auto": { MarkdownDescription: "Whether users matching member-query-filters should be automatically added to the user-group", Type: types.BoolType, Optional: true, Computed: true, }, }, }
Functions ¶
func NewDeviceGroupResource ¶
func NewUserGroupResource ¶
Types ¶
type ActiveDirectoryResource ¶
type ActiveDirectoryResource struct {
// contains filtered or unexported fields
}
func (*ActiveDirectoryResource) Configure ¶
func (r *ActiveDirectoryResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ActiveDirectoryResource) Create ¶
func (r *ActiveDirectoryResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ActiveDirectoryResource) Delete ¶
func (r *ActiveDirectoryResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ActiveDirectoryResource) GetSchema ¶
func (r *ActiveDirectoryResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*ActiveDirectoryResource) ImportState ¶
func (r *ActiveDirectoryResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ActiveDirectoryResource) Metadata ¶
func (r *ActiveDirectoryResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ActiveDirectoryResource) Read ¶
func (r *ActiveDirectoryResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ActiveDirectoryResource) Update ¶
func (r *ActiveDirectoryResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DeviceGroupResource ¶
type DeviceGroupResource struct {
// contains filtered or unexported fields
}
func (*DeviceGroupResource) Configure ¶
func (r *DeviceGroupResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DeviceGroupResource) Create ¶
func (r *DeviceGroupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DeviceGroupResource) Delete ¶
func (r *DeviceGroupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DeviceGroupResource) GetSchema ¶
func (r *DeviceGroupResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*DeviceGroupResource) ImportState ¶
func (r *DeviceGroupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DeviceGroupResource) Metadata ¶
func (r *DeviceGroupResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DeviceGroupResource) Read ¶
func (r *DeviceGroupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DeviceGroupResource) Update ¶
func (r *DeviceGroupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type JumpCloudApi ¶
type JumpCloudApi struct { V1 api.JumpCloudClientApiV1 V2 api.JumpCloudClientApiV2 Internal apiclient.Client }
type JumpCloudProvider ¶
type JumpCloudProvider struct {
// contains filtered or unexported fields
}
func (*JumpCloudProvider) Configure ¶
func (p *JumpCloudProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*JumpCloudProvider) DataSources ¶
func (p *JumpCloudProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*JumpCloudProvider) GetSchema ¶
func (p *JumpCloudProvider) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*JumpCloudProvider) Metadata ¶
func (p *JumpCloudProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
type JumpCloudProviderModel ¶
type KVItemModel ¶
type LdapGroupModel ¶
type LdapInfo ¶
type LdapInfo struct {
LdapGroups []LdapGroupModel `tfsdk:"groups"`
}
type MemberQueryModel ¶
type PosixGroupModel ¶
type SambaConfig ¶
type SudoConfigModel ¶
type UserGroupResource ¶
type UserGroupResource struct {
// contains filtered or unexported fields
}
func (*UserGroupResource) Configure ¶
func (r *UserGroupResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*UserGroupResource) Create ¶
func (r *UserGroupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*UserGroupResource) Delete ¶
func (r *UserGroupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*UserGroupResource) GetSchema ¶
func (r *UserGroupResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)
func (*UserGroupResource) ImportState ¶
func (r *UserGroupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*UserGroupResource) Metadata ¶
func (r *UserGroupResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*UserGroupResource) Read ¶
func (r *UserGroupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*UserGroupResource) Update ¶
func (r *UserGroupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type UserGroupResourceModel ¶
type UserGroupResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Sudo *SudoConfigModel `tfsdk:"sudo"` Ldap types.Object `tfsdk:"ldap"` PosixGroups []PosixGroupModel `tfsdk:"posix"` RadiusReplies []KVItemModel `tfsdk:"radius"` Samba *SambaConfig `tfsdk:"samba"` Properties []KVItemModel `tfsdk:"properties"` Description types.String `tfsdk:"description"` Email types.String `tfsdk:"email"` MemberQuery []MemberQueryModel `tfsdk:"member_queries"` MemberSuggestionsNotify types.Bool `tfsdk:"notify"` MembershipAutomated types.Bool `tfsdk:"auto"` }
Click to show internal directories.
Click to hide internal directories.