run

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

Google Cloud Run Service

This service is google.golang.org/api/run/v1/APIService proxy

To check all supported method run

     endly -s='gcp/run'

To check method contract run endly -s='gcp/run' -a=methodName

    endly -s='gcp/run:deploy' 

References:

Usage:
Deploying GCR image
endy -r=deploy

@deploy.yaml

pipeline:
    deploy:
      action: gcp/run:deploy
      credentials: gcp-e2e
      image: gcr.io/cloudrun/hello
      memoryMb: 256M
      replace: true   #if service already exist, redeploy
      public: true
    info:
      action: print
      message: $deploy.Endpoint

TODO add more examples

Deploying GCR image on GKE
Build and deploying GCR image

Documentation

Index

Constants

View Source
const (
	//ServiceID Google run Service ID.
	ServiceID = "gcp/run"
)

Variables

This section is empty.

Functions

func InitRequest

func InitRequest(context *endly.Context, rawRequest map[string]interface{}) error

func New

func New() endly.Service

New creates a new run service

Types

type CtxClient

type CtxClient struct {
	*gcp.AbstractClient
	// contains filtered or unexported fields
}

CtxClient represents context client

func GetClient

func GetClient(context *endly.Context) (*CtxClient, error)

func (*CtxClient) Service

func (s *CtxClient) Service() interface{}

func (*CtxClient) SetService

func (s *CtxClient) SetService(service interface{}) error

type DeployRequest

type DeployRequest struct {
	Name           string
	Namespace      string
	Public         bool `description:"allows unauthenticated access"`
	Concurrency    int
	TimeoutSeconds int
	Connectivity   string `description:"valid values external or internal"`
	Container      *run.Container
	Env            map[string]string
	Image          string
	MemoryMb       int
	CPU            int
	Port           int
	Region         string
	MaxAutoScale   int
	ServiceAccount string
	Replace        bool
	Members        []string `description:"members with roles/run.invoker role"`
	// contains filtered or unexported fields
}

DeployRequest represents deploy request

func (*DeployRequest) Init

func (r *DeployRequest) Init() error

Init initializes request

func (*DeployRequest) Service

func (r *DeployRequest) Service(context *endly.Context) (*run.Service, error)

func (*DeployRequest) Validate added in v0.51.0

func (r *DeployRequest) Validate() error

Init initializes request

type DeployResponse

type DeployResponse struct {
	Endpoint string
	*run.Configuration
}

type GetConfigurationRequest

type GetConfigurationRequest struct {
	Name string
	// contains filtered or unexported fields
}

GetServiceRequest represents getService service request

func (*GetConfigurationRequest) Init

func (r *GetConfigurationRequest) Init() error

type GetConfigurationResponse

type GetConfigurationResponse struct {
	*run.Configuration
}

GetServiceResponse represents getService response

type GetServiceRequest

type GetServiceRequest struct {
	Name string
	// contains filtered or unexported fields
}

GetServiceRequest represents getService service request

func (*GetServiceRequest) Init

func (r *GetServiceRequest) Init() error

type GetServiceResponse

type GetServiceResponse struct {
	*run.Service
}

GetServiceResponse represents getService response

Jump to

Keyboard shortcuts

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