provider

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Publisher     string                               `json:"publisher" dynamodbav:"publisher"`
	Name          string                               `json:"name" dynamodbav:"name"`       // name should be the id, limited characters, no space
	IsDev         bool                                 `json:"isDev" dynamodbav:"isDev"`     // isDev flag is used to differentiate and filter dev providers
	Version       string                               `json:"version" dynamodbav:"version"` // specified by the users (semver)
	Meta          providerregistrysdk.ProviderMetaInfo `json:"meta" dynamodbav:"meta"`
	Latest        bool                                 `json:"latest" dynamodbav:"latest"`
	Schema        providerregistrysdk.Schema           `json:"schema" dynamodbav:"schema"`
	CreatedBy     string                               `json:"createdBy" dynamodbav:"createdBy"`
	LastUpdatedBy string                               `json:"lastUpdatedBy" dynamodbav:"lastUpdatedBy"`
	CreatedAt     time.Time                            `json:"createdAt" dynamodbav:"createdAt"`
	UpdatedAt     time.Time                            `json:"updatedAt" dynamodbav:"updatedAt"`
}

func (Provider) S3Paths

func (p Provider) S3Paths() S3Paths

func (Provider) ToAPI

func (p Provider) ToAPI(assetsBucketName string) providerregistrysdk.ProviderDetail

type Publishing

type Publishing struct {
	Publisher string                               `json:"publisher" dynamodbav:"publisher"`
	Name      string                               `json:"name" dynamodbav:"name"`       // name should be the id, limited characters, no space
	Version   string                               `json:"version" dynamodbav:"version"` // specified by the users (semver)
	IsDev     bool                                 `json:"isDev" dynamodbav:"isDev"`     // isDev flag is used to differentiate and filter dev providers
	Schema    providerregistrysdk.Schema           `json:"schema" dynamodbav:"schema"`
	Meta      providerregistrysdk.ProviderMetaInfo `json:"meta" dynamodbav:"meta"`
	// The file paths that were requested for upload
	RoleFiles []string `json:"roleFiles" dynamodbav:"roleFiles"`
}

The publishing type represents a provider which is in the process of being published when publishing is complete, and validated, a Provider type will be created from the outcome of publishing.

func (Publishing) S3Paths

func (p Publishing) S3Paths() S3Paths

type S3Paths

type S3Paths struct {
	Publisher string
	Name      string
	Version   string
}

func (S3Paths) CloudformationTemplate

func (p S3Paths) CloudformationTemplate() string

func (S3Paths) Handler

func (p S3Paths) Handler() string

func (S3Paths) Readme

func (p S3Paths) Readme() string

func (S3Paths) RoleCloudformationTemplate

func (p S3Paths) RoleCloudformationTemplate(name string) string

Jump to

Keyboard shortcuts

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