platform

package
v1.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWSIAMRolesEndpoint = "access/api/v1/aws/iam_role"
	AWSIAMRoleEndpoint  = "access/api/v1/aws/iam_role/{username}"
)
View Source
const (
	SCIMGroupsEndpoint = "access/api/v1/scim/v2/Groups"
	SCIMGroupEndpoint  = "access/api/v1/scim/v2/Groups/{name}"
)
View Source
const (
	SCIMUsersEndpoint = "access/api/v1/scim/v2/Users"
	SCIMUserEndpoint  = "access/api/v1/scim/v2/Users/{id}"
)
View Source
const PermissionEndpoint = "/access/api/v2/permissions"
View Source
const WorkersServiceEndpoint = "worker/api/v1/workers"

Variables

View Source
var OIDCConfigurationNameValidators = []validator.String{
	stringvalidator.LengthBetween(1, 255),
	stringvalidator.RegexMatches(
		regexp.MustCompile(`^[a-z]{1}[a-z0-9\-]+$`),
		"must start with a lowercase letter and only contain lowercase letters, digits and `-` character.",
	),
}
View Source
var SCIMGroupMemberResourceModelAttributeType map[string]attr.Type = map[string]attr.Type{
	"value":   types.StringType,
	"display": types.StringType,
}
View Source
var SCIMUserEmailResourceModelAttributeType map[string]attr.Type = map[string]attr.Type{
	"value":   types.StringType,
	"primary": types.BoolType,
}
View Source
var SCIMUserGroupResourceModelAttributeType map[string]attr.Type = map[string]attr.Type{
	"value": types.StringType,
}
View Source
var Version = "1.0.0"

Functions

func IPCIDR added in v1.6.0

func IPCIDR() ipCIDRValidator

func NewAWSIAMRoleResource added in v1.12.0

func NewAWSIAMRoleResource() resource.Resource

func NewCrowdSettingsResource added in v1.19.0

func NewCrowdSettingsResource() resource.Resource

func NewGlobalRoleResource added in v1.4.0

func NewGlobalRoleResource() resource.Resource

func NewGroupResource added in v1.17.0

func NewGroupResource() resource.Resource

func NewLicenseResource added in v1.2.0

func NewLicenseResource() resource.Resource

func NewMyJFrogIPAllowListResource added in v1.6.0

func NewMyJFrogIPAllowListResource() resource.Resource

func NewOIDCConfigurationResource added in v1.5.0

func NewOIDCConfigurationResource() resource.Resource

func NewOIDCIdentityMappingResource added in v1.5.0

func NewOIDCIdentityMappingResource() resource.Resource

func NewPermissionResource added in v1.3.0

func NewPermissionResource() resource.Resource

func NewProvider

func NewProvider() func() provider.Provider

func NewReverseProxyResource added in v1.0.2

func NewReverseProxyResource() resource.Resource

func NewSAMLSettingsResource added in v1.11.0

func NewSAMLSettingsResource() resource.Resource

func NewSCIMGroupResource added in v1.11.0

func NewSCIMGroupResource() resource.Resource

func NewSCIMUserResource added in v1.11.0

func NewSCIMUserResource() resource.Resource

func NewWorkerServiceResource

func NewWorkerServiceResource() resource.Resource

Types

type AWSIAMRoleAPIModel added in v1.12.0

type AWSIAMRoleAPIModel struct {
	Username string `json:"username"`
	IAMRole  string `json:"iam_role"`
}

type AWSIAMRoleResource added in v1.12.0

type AWSIAMRoleResource struct {
	ProviderData PlatformProviderMetadata
	TypeName     string
}

func (*AWSIAMRoleResource) Configure added in v1.12.0

func (*AWSIAMRoleResource) Create added in v1.12.0

func (*AWSIAMRoleResource) Delete added in v1.12.0

func (*AWSIAMRoleResource) ImportState added in v1.12.0

func (*AWSIAMRoleResource) Metadata added in v1.12.0

func (*AWSIAMRoleResource) Read added in v1.12.0

func (*AWSIAMRoleResource) Schema added in v1.12.0

func (*AWSIAMRoleResource) Update added in v1.12.0

type AWSIAMRoleResourceModel added in v1.12.0

type AWSIAMRoleResourceModel struct {
	Username types.String `tfsdk:"username"`
	IAMRole  types.String `tfsdk:"iam_role"`
}

type CrowdSettingsAPIModel added in v1.19.0

type CrowdSettingsAPIModel struct {
	Enable                     bool   `json:"enable_integration"`
	ServerURL                  string `json:"server_url"`
	ApplicationName            string `json:"application_name"`
	Password                   string `json:"password"`
	SessionValidationInterval  int64  `json:"session_validation_interval"`
	UseDefaultProxy            *bool  `json:"use_default_proxy"`
	AutoUserCreation           *bool  `json:"auto_user_creation"`
	AllowUserToAccessProfile   *bool  `json:"allow_user_to_access_profile"`
	DirectAuthentication       *bool  `json:"direct_authentication"`
	OverrideAllGroupsUponLogin *bool  `json:"override_all_groups_upon_login"`
}

type CrowdSettingsResource added in v1.19.0

type CrowdSettingsResource struct {
	util.JFrogResource
}

func (*CrowdSettingsResource) Configure added in v1.19.0

func (*CrowdSettingsResource) Create added in v1.19.0

func (*CrowdSettingsResource) Delete added in v1.19.0

func (*CrowdSettingsResource) ImportState added in v1.19.0

func (*CrowdSettingsResource) Read added in v1.19.0

func (*CrowdSettingsResource) Schema added in v1.19.0

func (*CrowdSettingsResource) Update added in v1.19.0

type CrowdSettingsResourceModel added in v1.19.0

type CrowdSettingsResourceModel struct {
	Enable                     types.Bool   `tfsdk:"enable"`
	ServerURL                  types.String `tfsdk:"server_url"`
	ApplicationName            types.String `tfsdk:"application_name"`
	Password                   types.String `tfsdk:"password"`
	SessionValidationInterval  types.Int64  `tfsdk:"session_validation_interval"`
	UseDefaultProxy            types.Bool   `tfsdk:"use_default_proxy"`
	AutoUserCreation           types.Bool   `tfsdk:"auto_user_creation"`
	AllowUserToAccessProfile   types.Bool   `tfsdk:"allow_user_to_access_profile"`
	DirectAuthentication       types.Bool   `tfsdk:"direct_authentication"`
	OverrideAllGroupsUponLogin types.Bool   `tfsdk:"override_all_groups_upon_login"`
}

type MyJFrogAllowlistConflictErrorResponse added in v1.6.0

type MyJFrogAllowlistConflictErrorResponse struct {
	Status string   `json:"status"`
	Errors []string `json:"errors"`
}

func (MyJFrogAllowlistConflictErrorResponse) Error added in v1.6.0

type MyJFrogAllowlistError added in v1.6.0

type MyJFrogAllowlistError struct {
	Message string   `json:"message"`
	Details []string `json:"details"`
}

type MyJFrogAllowlistErrorResponse added in v1.6.0

type MyJFrogAllowlistErrorResponse struct {
	Status  string                  `json:"status"`
	Message string                  `json:"message"`
	Errors  []MyJFrogAllowlistError `json:"errors"`
}

func (MyJFrogAllowlistErrorResponse) Error added in v1.6.0

type PermissionAPIModel added in v1.3.0

type PermissionAPIModel struct {
	Name      string                                       `json:"name"`
	Resources map[string]*permissionActionsTargetsAPIModel `json:"resources"`
}

type PlatformProvider

type PlatformProvider struct {
	Meta PlatformProviderMetadata
}

func (*PlatformProvider) Configure

func (*PlatformProvider) DataSources

func (p *PlatformProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*PlatformProvider) Metadata

func (*PlatformProvider) Resources

func (p *PlatformProvider) Resources(ctx context.Context) []func() resource.Resource

func (*PlatformProvider) Schema

type PlatformProviderMetadata added in v1.6.0

type PlatformProviderMetadata struct {
	util.ProviderMetadata
	MyJFrogClient *resty.Client
}

type SAMLSettingsAPIModel added in v1.11.0

type SAMLSettingsAPIModel struct {
	Name                      string   `json:"name"`
	Enable                    bool     `json:"enable_integration"`
	VerifyAudienceRestriction bool     `json:"verify_audience_restriction"`
	LoginURL                  string   `json:"login_url"`
	LogoutURL                 string   `json:"logout_url"`
	ServiceProviderName       string   `json:"service_provider_name"`
	AutoUserCreation          bool     `json:"auto_user_creation"`
	AllowUserToAccessProfile  bool     `json:"allow_user_to_access_profile"`
	UseEncryptedAssertion     bool     `json:"use_encrypted_assertion"`
	AutoRedirect              bool     `json:"auto_redirect"`
	SyncGroups                bool     `json:"sync_groups"`
	Certificate               string   `json:"certificate"`
	GroupAttribute            string   `json:"group_attribute"`
	EmailAttribute            string   `json:"email_attribute"`
	NameIDAttribute           string   `json:"name_id_attribute"`
	LDAPGroupSettings         []string `json:"ldap_group_settings"`
}

type SAMLSettingsResource added in v1.11.0

type SAMLSettingsResource struct {
	util.JFrogResource
}

func (*SAMLSettingsResource) Configure added in v1.11.0

func (*SAMLSettingsResource) Create added in v1.11.0

func (*SAMLSettingsResource) Delete added in v1.11.0

func (*SAMLSettingsResource) ImportState added in v1.11.0

func (*SAMLSettingsResource) Read added in v1.11.0

func (*SAMLSettingsResource) Schema added in v1.11.0

func (*SAMLSettingsResource) Update added in v1.11.0

func (*SAMLSettingsResource) UpgradeState added in v1.13.0

type SAMLSettingsResourceModelV0 added in v1.13.0

type SAMLSettingsResourceModelV0 struct {
	Name                      types.String `tfsdk:"name"`
	Enable                    types.Bool   `tfsdk:"enable"`
	Certificate               types.String `tfsdk:"certificate"`
	EmailAttribute            types.String `tfsdk:"email_attribute"`
	GroupAttribute            types.String `tfsdk:"group_attribute"`
	NameIDAttribute           types.String `tfsdk:"name_id_attribute"`
	LoginURL                  types.String `tfsdk:"login_url"`
	LogoutURL                 types.String `tfsdk:"logout_url"`
	NoAutoUserCreation        types.Bool   `tfsdk:"no_auto_user_creation"`
	ServiceProviderName       types.String `tfsdk:"service_provider_name"`
	AllowUserToAccessProfile  types.Bool   `tfsdk:"allow_user_to_access_profile"`
	AutoRedirect              types.Bool   `tfsdk:"auto_redirect"`
	SyncGroups                types.Bool   `tfsdk:"sync_groups"`
	VerifyAudienceRestriction types.Bool   `tfsdk:"verify_audience_restriction"`
	UseEncryptedAssertion     types.Bool   `tfsdk:"use_encrypted_assertion"`
}

type SAMLSettingsResourceModelV1 added in v1.13.0

type SAMLSettingsResourceModelV1 struct {
	SAMLSettingsResourceModelV0
	AutoUserCreation  types.Bool `tfsdk:"auto_user_creation"`
	LDAPGroupSettings types.Set  `tfsdk:"ldap_group_settings"`
}

type SCIMErrorAPIModel added in v1.11.0

type SCIMErrorAPIModel struct {
	Status  int      `json:"status"`
	Detail  string   `json:"detail"`
	Schemas []string `json:"schemas"`
}

type SCIMGroupAPIModel added in v1.11.0

type SCIMGroupAPIModel struct {
	Schemas     []string                  `json:"schemas"`
	ID          string                    `json:"id"`
	DisplayName string                    `json:"displayName"`
	Members     []SCIMGroupMemberAPIModel `json:"members"`
	Meta        map[string]string         `json:"meta,omitempty"`
}

type SCIMGroupMemberAPIModel added in v1.11.0

type SCIMGroupMemberAPIModel struct {
	Value   string `json:"value"`
	Display string `json:"display"`
}

type SCIMGroupResource added in v1.11.0

type SCIMGroupResource struct {
	ProviderData PlatformProviderMetadata
	TypeName     string
}

func (*SCIMGroupResource) Configure added in v1.11.0

func (*SCIMGroupResource) Create added in v1.11.0

func (*SCIMGroupResource) Delete added in v1.11.0

func (*SCIMGroupResource) ImportState added in v1.11.0

func (*SCIMGroupResource) Metadata added in v1.11.0

func (*SCIMGroupResource) Read added in v1.11.0

func (*SCIMGroupResource) Schema added in v1.11.0

func (*SCIMGroupResource) Update added in v1.11.0

type SCIMGroupResourceModel added in v1.11.0

type SCIMGroupResourceModel struct {
	ID          types.String `tfsdk:"id"`
	DisplayName types.String `tfsdk:"display_name"`
	Members     types.Set    `tfsdk:"members"`
	Meta        types.Map    `tfsdk:"meta"`
}

type SCIMUserAPIModel added in v1.11.0

type SCIMUserAPIModel struct {
	Schemas  []string                `json:"schemas"`
	Username string                  `json:"userName"`
	Active   bool                    `json:"active"`
	Emails   []SCIMUserEmailAPIModel `json:"emails"`
	Groups   []SCIMUserGroupAPIModel `json:"groups,omitempty"`
	Meta     map[string]string       `json:"meta,omitempty"`
}

type SCIMUserEmailAPIModel added in v1.11.0

type SCIMUserEmailAPIModel struct {
	Value   string `json:"value"`
	Primary bool   `json:"primary"`
}

type SCIMUserGroupAPIModel added in v1.11.0

type SCIMUserGroupAPIModel struct {
	Value string `json:"value"`
}

type SCIMUserResource added in v1.11.0

type SCIMUserResource struct {
	ProviderData PlatformProviderMetadata
	TypeName     string
}

func (*SCIMUserResource) Configure added in v1.11.0

func (*SCIMUserResource) Create added in v1.11.0

func (*SCIMUserResource) Delete added in v1.11.0

func (*SCIMUserResource) ImportState added in v1.11.0

func (*SCIMUserResource) Metadata added in v1.11.0

func (*SCIMUserResource) Read added in v1.11.0

func (*SCIMUserResource) Schema added in v1.11.0

func (*SCIMUserResource) Update added in v1.11.0

type SCIMUserResourceModel added in v1.11.0

type SCIMUserResourceModel struct {
	Username types.String `tfsdk:"username"`
	Active   types.Bool   `tfsdk:"active"`
	Emails   types.Set    `tfsdk:"emails"`
	Groups   types.Set    `tfsdk:"groups"`
	Meta     types.Map    `tfsdk:"meta"`
}

type WorkersServiceAPIModel

type WorkersServiceAPIModel struct {
	Key            string                 `json:"key"`
	Description    string                 `json:"description"`
	SourceCode     string                 `json:"sourceCode"`
	Action         string                 `json:"action"`
	FilterCriteria filterCriteriaAPIModel `json:"filterCriteria"`
	Enabled        bool                   `json:"enabled"`
	Secrets        []secretAPIModel       `json:"secrets"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL