distribution

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReleaseBundlesV1Endpoint = "distribution/api/v1/release_bundle"
	ReleaseBundleV1Endpoint  = "distribution/api/v1/release_bundle/{name}/{version}"
)
View Source
const (
	SigningKeysEndpoint = "distribution/api/v1/keys/{protocol}"
	SigningKeyEndpoint  = "distribution/api/v1/keys/{protocol}/{alias}"
)

Variables

View Source
var Version = "1.0.0"

Functions

func NewProvider

func NewProvider() func() provider.Provider

func NewReleaseBundleV1Resource added in v1.1.0

func NewReleaseBundleV1Resource() resource.Resource

func NewSigningKeyResource

func NewSigningKeyResource() resource.Resource

func NewVaultSigningKeyResource

func NewVaultSigningKeyResource() resource.Resource

Types

type DistributionProvider

type DistributionProvider struct {
	Meta util.ProviderMetadata
}

func (*DistributionProvider) Configure

func (*DistributionProvider) DataSources

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

func (*DistributionProvider) Metadata

func (*DistributionProvider) Resources

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

func (*DistributionProvider) Schema

type ReleaseBundleV1APIModel added in v1.1.0

type ReleaseBundleV1APIModel struct {
	Name              string                              `json:"name"`
	Version           string                              `json:"version"`
	DryRun            bool                                `json:"dry_run"`
	SignImmediately   bool                                `json:"sign_immediately"`
	StoringRepository string                              `json:"storing_repository,omitempty"`
	Description       string                              `json:"description"`
	ReleaseNotes      ReleaseBundleV1ReleaseNotesAPIModel `json:"release_notes"`
	Spec              ReleaseBundleV1SpecAPIModel         `json:"spec"`
}

type ReleaseBundleV1ArtifactAPIModel added in v1.1.0

type ReleaseBundleV1ArtifactAPIModel struct {
	Checksum       string                        `json:"checksum"`
	SourceRepoPath string                        `json:"sourceRepoPath"`
	TargetRepoPath string                        `json:"targetRepoPath"`
	Props          []ReleaseBundleV1PropAPIModel `json:"props"`
}

type ReleaseBundleV1GetAPIModel added in v1.1.0

type ReleaseBundleV1GetAPIModel struct {
	Name              string                              `json:"name"`
	Version           string                              `json:"version"`
	StoringRepository string                              `json:"storing_repository,omitempty"`
	State             string                              `json:"state"`
	Description       string                              `json:"description"`
	ReleaseNotes      ReleaseBundleV1ReleaseNotesAPIModel `json:"release_notes"`
	Created           string                              `json:"created"`
	CreatedBy         string                              `json:"created_by"`
	DistributedBy     *string                             `json:"distributed_by,omitempty"`
	Artifacts         []ReleaseBundleV1ArtifactAPIModel   `json:"artifacts"`
	ArtifactsSize     int64                               `json:"artifacts_size"`
	Archived          bool                                `json:"archived"`
	Spec              ReleaseBundleV1SpecAPIModel         `json:"spec"`
}

type ReleaseBundleV1PostResponseAPIModel added in v1.1.0

type ReleaseBundleV1PostResponseAPIModel struct {
	StoringRepository string                            `json:"storing_repository"`
	State             string                            `json:"state"`
	Created           string                            `json:"created"`
	CreatedBy         string                            `json:"created_by"`
	DistributedBy     *string                           `json:"distributed_by,omitempty"`
	Artifacts         []ReleaseBundleV1ArtifactAPIModel `json:"artifacts"`
	ArtifactsSize     int64                             `json:"artifacts_size"`
	Archived          bool                              `json:"archived"`
}

type ReleaseBundleV1PropAPIModel added in v1.1.0

type ReleaseBundleV1PropAPIModel struct {
	Key    string   `json:"key"`
	Values []string `json:"values"`
}

type ReleaseBundleV1ReleaseNotesAPIModel added in v1.1.0

type ReleaseBundleV1ReleaseNotesAPIModel struct {
	Syntax  string `json:"syntax"`
	Content string `json:"content"`
}

type ReleaseBundleV1Resource added in v1.1.0

type ReleaseBundleV1Resource struct {
	ProviderData util.ProviderMetadata
	TypeName     string
}

func (*ReleaseBundleV1Resource) Configure added in v1.1.0

func (*ReleaseBundleV1Resource) Create added in v1.1.0

func (*ReleaseBundleV1Resource) Delete added in v1.1.0

func (*ReleaseBundleV1Resource) ImportState added in v1.1.0

ImportState imports the resource into the Terraform state.

func (*ReleaseBundleV1Resource) Metadata added in v1.1.0

func (*ReleaseBundleV1Resource) Read added in v1.1.0

func (*ReleaseBundleV1Resource) Schema added in v1.1.0

func (*ReleaseBundleV1Resource) Update added in v1.1.0

type ReleaseBundleV1ResourceModel added in v1.1.0

type ReleaseBundleV1ResourceModel struct {
	Name              types.String `tfsdk:"name"`
	Version           types.String `tfsdk:"version"`
	GPGPassphase      types.String `tfsdk:"gpg_passphase"`
	DryRun            types.Bool   `tfsdk:"dry_run"`
	SignImmediately   types.Bool   `tfsdk:"sign_immediately"`
	StoringRepository types.String `tfsdk:"storing_repository"`
	Description       types.String `tfsdk:"description"`
	ReleaseNotes      types.Object `tfsdk:"release_notes"`
	Spec              types.Object `tfsdk:"spec"`
	State             types.String `tfsdk:"state"`
	Created           types.String `tfsdk:"created"`
	CreatedBy         types.String `tfsdk:"created_by"`
	DistributedBy     types.String `tfsdk:"distributed_by"`
	Artifacts         types.Set    `tfsdk:"artifacts"`
	ArtifactsSize     types.Int64  `tfsdk:"artifacts_size"`
	Archived          types.Bool   `tfsdk:"archived"`
}

type ReleaseBundleV1SpecAPIModel added in v1.1.0

type ReleaseBundleV1SpecAPIModel struct {
	Queries []ReleaseBundleV1SpecQueryAPIModel `json:"queries"`
}

type ReleaseBundleV1SpecQueryAPIModel added in v1.1.0

type ReleaseBundleV1SpecQueryAPIModel struct {
	AQL                   string                                    `json:"aql"`
	QueryName             string                                    `json:"query_name"`
	Mappings              []ReleaseBundleV1SpecQueryMappingAPIModel `json:"mappings"`
	AddedProps            []ReleaseBundleV1PropAPIModel             `json:"added_props"`
	ExcludedPropsPatterns []string                                  `json:"exclude_props_patterns"`
}

type ReleaseBundleV1SpecQueryMappingAPIModel added in v1.1.0

type ReleaseBundleV1SpecQueryMappingAPIModel struct {
	Input  string `json:"input"`
	Output string `json:"output"`
}

type SigningKeyCommmonResourceModel

type SigningKeyCommmonResourceModel struct {
	Protocol                 types.String `tfsdk:"protocol"`
	Alias                    types.String `tfsdk:"alias"`
	PropagateToEdgeNode      types.Bool   `tfsdk:"propagate_to_edge_nodes"`
	FailOnPropagationFailure types.Bool   `tfsdk:"fail_on_propagation_failure"`
	SetAsDefault             types.Bool   `tfsdk:"set_as_default"`
}

type SigningKeyCommonPostRequestAPIModel

type SigningKeyCommonPostRequestAPIModel struct {
	PropagateToEdgeNode      bool `json:"propagate_to_edge_nodes"`
	FailOnPropagationFailure bool `json:"fail_on_propagation_failure"`
	SetAsDefault             bool `json:"set_as_default"`
}

type SigningKeyGetAPIModel

type SigningKeyGetAPIModel struct {
	Alias     string `json:"alias"`
	PublicKey string `json:"public_key"`
}

type SigningKeyKeyPostRequestAPIModel

type SigningKeyKeyPostRequestAPIModel struct {
	Alias      string `json:"alias"`
	PublicKey  string `json:"public_key"`
	PrivateKey string `json:"private_key"`
	Passphrase string `json:"passphrase"`
}

type SigningKeyPostErrorAPIModel

type SigningKeyPostErrorAPIModel struct {
	StatusCode int    `json:"status_code"`
	Message    string `json:"message"`
	Detail     string `json:"detail"`
}

func (SigningKeyPostErrorAPIModel) String

type SigningKeyPostRequestAPIModel

type SigningKeyPostRequestAPIModel struct {
	SigningKeyCommonPostRequestAPIModel
	Key SigningKeyKeyPostRequestAPIModel `json:"key"`
}

type SigningKeyPostResponseAPIModel

type SigningKeyPostResponseAPIModel struct {
	Report SigningKeyReportPostResponseAPIModel `json:"report"`
}

type SigningKeyPutRequestAPIModel

type SigningKeyPutRequestAPIModel struct {
	NewAlias string `json:"new_alias"`
}

type SigningKeyReportDetailPostResponseAPIModel

type SigningKeyReportDetailPostResponseAPIModel struct {
	JPDID    string `json:"jpd_id"`
	Name     string `json:"name"`
	KeyAlias string `json:"key_alias"`
	Status   string `json:"status"`
}

type SigningKeyReportPostResponseAPIModel

type SigningKeyReportPostResponseAPIModel struct {
	Message string                                       `json:"message"`
	Status  string                                       `json:"status"`
	Details []SigningKeyReportDetailPostResponseAPIModel `json:"details"`
}

func (SigningKeyReportPostResponseAPIModel) String

type SigningKeyResource

type SigningKeyResource struct {
	ProviderData util.ProviderMetadata
	TypeName     string
}

func (*SigningKeyResource) Configure

func (*SigningKeyResource) Create

func (*SigningKeyResource) Delete

func (*SigningKeyResource) Metadata

func (*SigningKeyResource) Read

func (*SigningKeyResource) Schema

func (*SigningKeyResource) Update

type SigningKeyResourceModel

type SigningKeyResourceModel struct {
	SigningKeyCommmonResourceModel
	PublicKey  types.String `tfsdk:"public_key"`
	PrivateKey types.String `tfsdk:"private_key"`
	Passphrase types.String `tfsdk:"passphrase"`
}

type VaultSigningKeyKeyPostRequestAPIModel

type VaultSigningKeyKeyPostRequestAPIModel struct {
	VaultData VaultSigningKeyKeyVaultDataPostRequestAPIModel `json:"vault_data"`
}

type VaultSigningKeyKeyVaultDataPostRequestAPIModel

type VaultSigningKeyKeyVaultDataPostRequestAPIModel struct {
	ID         string                                         `json:"vault_id"`
	PublicKey  VaultSigningKeyVaultDataPathKeyRequestAPIModel `json:"public_key"`
	PrivateKey VaultSigningKeyVaultDataPathKeyRequestAPIModel `json:"private_key"`
}

type VaultSigningKeyPostRequestAPIModel

type VaultSigningKeyPostRequestAPIModel struct {
	SigningKeyCommonPostRequestAPIModel
	Key VaultSigningKeyKeyPostRequestAPIModel `json:"key"`
}

type VaultSigningKeyResource

type VaultSigningKeyResource struct {
	ProviderData util.ProviderMetadata
	TypeName     string
}

func (*VaultSigningKeyResource) Configure

func (*VaultSigningKeyResource) Create

func (*VaultSigningKeyResource) Delete

func (*VaultSigningKeyResource) Metadata

func (*VaultSigningKeyResource) Read

func (*VaultSigningKeyResource) Schema

func (*VaultSigningKeyResource) Update

type VaultSigningKeyResourceModel

type VaultSigningKeyResourceModel struct {
	SigningKeyCommmonResourceModel
	VaultID    types.String `tfsdk:"vault_id"`
	PublicKey  types.Object `tfsdk:"public_key"`
	PrivateKey types.Object `tfsdk:"private_key"`
}

type VaultSigningKeyVaultDataPathKeyRequestAPIModel

type VaultSigningKeyVaultDataPathKeyRequestAPIModel struct {
	Path string `json:"path"`
	Key  string `json:"key"`
}

Jump to

Keyboard shortcuts

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