model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilValue       = errors.New("nil value")
	ErrInvalidValue   = errors.New("invalid value")
	ErrDuplicateValue = errors.New("duplicate value")

	ErrNotFound     = errors.New("not found")
	ErrCreateFailed = errors.New("failed to create")
)

Functions

func AWSOptionsWithMFATokenProvider

func AWSOptionsWithMFATokenProvider(provider MFATokenProvider) func(o *AWSOptions)

func AWSOptionsWithProfile

func AWSOptionsWithProfile(profile string) func(o *AWSOptions)

func AWSOptionsWithRegion

func AWSOptionsWithRegion(region string) func(o *AWSOptions)

Types

type AWSOptions

type AWSOptions struct {
	Region           string
	Profile          string
	MFATokenProvider MFATokenProvider
}

func NewAWSOptions

func NewAWSOptions(optFns ...func(o *AWSOptions)) *AWSOptions

type CachingConfig

type CachingConfig struct {
	Ttl         int64    `json:"ttl"`
	CachingKeys []string `json:"cachingKeys,omitempty"`
}

type ConflictDetectionType

type ConflictDetectionType string

type ConflictHandlerType

type ConflictHandlerType string

type Function

type Function struct {
	FunctionId              *string     `json:"-"`
	FunctionArn             *string     `json:"-"`
	Name                    *string     `json:"name,omitempty"`
	Description             *string     `json:"description,omitempty"`
	DataSourceName          *string     `json:"dataSourceName,omitempty"`
	RequestMappingTemplate  *string     `json:"-"`
	ResponseMappingTemplate *string     `json:"-"`
	FunctionVersion         *string     `json:"functionVersion,omitempty"`
	SyncConfig              *SyncConfig `json:"syncConfig,omitempty"`
	MaxBatchSize            int32       `json:"maxBatchSize"`
	Runtime                 *Runtime    `json:"runtime,omitempty"`
	Code                    *string     `json:"-"`
}

type LambdaConflictHandlerConfig

type LambdaConflictHandlerConfig struct {
	LambdaConflictHandlerArn *string `json:"lambdaConflictHandlerArn,omitempty"`
}

type LibError

type LibError struct {
	Err error
}

func (*LibError) Error

func (e *LibError) Error() string

func (*LibError) Unwrap

func (e *LibError) Unwrap() error

type MFATokenProvider

type MFATokenProvider func() (string, error)

type PipelineConfig

type PipelineConfig struct {
	Functions     []string `json:"-"`
	FunctionNames []string `json:"functionNames"`
}

type Resolver

type Resolver struct {
	TypeName                *string         `json:"typeName,omitempty"`
	FieldName               *string         `json:"fieldName,omitempty"`
	DataSourceName          *string         `json:"dataSourceName,omitempty"`
	ResolverArn             *string         `json:"-"`
	RequestMappingTemplate  *string         `json:"-"`
	ResponseMappingTemplate *string         `json:"-"`
	Kind                    ResolverKind    `json:"kind,omitempty"`
	PipelineConfig          *PipelineConfig `json:"pipelineConfig,omitempty"`
	SyncConfig              *SyncConfig     `json:"syncConfig,omitempty"`
	CachingConfig           *CachingConfig  `json:"cachingConfig,omitempty"`
	MaxBatchSize            int32           `json:"maxBatchSize"`
	Runtime                 *Runtime        `json:"runtime,omitempty"`
	Code                    *string         `json:"-"`
}

type ResolverKind

type ResolverKind string

type Runtime

type Runtime struct {
	Name           RuntimeName `json:"name,omitempty"`
	RuntimeVersion *string     `json:"runtimeVersion,omitempty"`
}

type RuntimeName

type RuntimeName string
const (
	RuntimeNameAppsyncJs RuntimeName = "APPSYNC_JS"
)

type Schema

type Schema string

type SyncConfig

type SyncConfig struct {
	ConflictHandler             ConflictHandlerType          `json:"conflictHandler,omitempty"`
	ConflictDetection           ConflictDetectionType        `json:"conflictDetection,omitempty"`
	LambdaConflictHandlerConfig *LambdaConflictHandlerConfig `json:"lambdaConflictHandlerConfig,omitempty"`
}

type TrackerStatus

type TrackerStatus string
const (
	TrackerStatusInProgress TrackerStatus = "in progress"
	TrackerStatusFailed     TrackerStatus = "failed"
	TrackerStatusSuccess    TrackerStatus = "success"
)

type Version

type Version struct {
	Version   string
	GitCommit string
	GoVersion string
	OS        string
	Arch      string
	BuildTime string
}

Jump to

Keyboard shortcuts

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