apprunner

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package apprunner provides a client to make API requests to AppRunner Service.

Package apprunner provides a client to make API requests to AppRunner Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineImageRepositoryType

func DetermineImageRepositoryType(imageIdentifier string) (string, error)

DetermineImageRepositoryType returns the App Runner ImageRepositoryType enum value for the provided image identifier, or returns an error if the imageIdentifier is not supported by App Runner or the ImageRepositoryType cannot be determined.

func ImageIsSupported

func ImageIsSupported(imageIdentifier string) bool

ImageIsSupported returns true if the image identifier is supported by App Runner.

func LogGroupName

func LogGroupName(svcARN string) (string, error)

LogGroupName returns the log group name given the app runner service's name. An application log group is formatted as "/aws/apprunner/<svcName>/<svcID>/application".

func ParseServiceID

func ParseServiceID(svcARN string) (string, error)

ParseServiceID returns the service id. For example: arn:aws:apprunner:us-west-2:1234567890:service/my-service/fc1098ac269245959ba78fd58bdd4bf will return fc1098ac269245959ba78fd58bdd4bf

func ParseServiceName

func ParseServiceName(svcARN string) (string, error)

ParseServiceName returns the service name. For example: arn:aws:apprunner:us-west-2:1234567890:service/my-service/fc1098ac269245959ba78fd58bdd4bf will return my-service

func SystemLogGroupName

func SystemLogGroupName(svcARN string) (string, error)

SystemLogGroupName returns the service log group name given the app runner service's name. A service log group is formatted as "/aws/apprunner/<svcName>/<svcID>/service".

Types

type AppRunner

type AppRunner struct {
	// contains filtered or unexported fields
}

AppRunner wraps an AWS AppRunner client.

func New

func New(s *session.Session) *AppRunner

New returns a Service configured against the input session.

func (*AppRunner) DescribeOperation

func (a *AppRunner) DescribeOperation(operationId, svcARN string) (*apprunner.OperationSummary, error)

DescribeOperation return OperationSummary for given OperationId and ServiceARN.

func (*AppRunner) DescribeService

func (a *AppRunner) DescribeService(svcARN string) (*Service, error)

DescribeService returns a description of an AppRunner service given its ARN.

func (*AppRunner) PauseService

func (a *AppRunner) PauseService(svcARN string) error

PauseService pause the running App Runner service.

func (*AppRunner) ResumeService

func (a *AppRunner) ResumeService(svcARN string) error

ResumeService resumes a paused App Runner service.

func (*AppRunner) ServiceARN

func (a *AppRunner) ServiceARN(svc string) (string, error)

ServiceARN returns the ARN of an AppRunner service given its service name.

type EnvironmentVariable

type EnvironmentVariable struct {
	Name  string
	Value string
}

type Service

type Service struct {
	ServiceARN           string
	Name                 string
	ID                   string
	Status               string
	ServiceURL           string
	DateCreated          time.Time
	DateUpdated          time.Time
	CPU                  string
	Memory               string
	ImageID              string
	Port                 string
	EnvironmentVariables []*EnvironmentVariable
}

Service wraps up AppRunner Service struct.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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