platform

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

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 Version = "1.0.0"

Functions

func IPCIDR added in v1.6.0

func IPCIDR() ipCIDRValidator

func NewGlobalRoleResource added in v1.4.0

func NewGlobalRoleResource() 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 NewWorkerServiceResource

func NewWorkerServiceResource() resource.Resource

Types

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 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