Skip to content

autom8ter/gcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcloud

-- import "github.com/autom8ter/gcloud"

Usage

type GCP

type GCP struct {
	Options []option.ClientOption `validate:"required"`
}

GCP is the configuration used to return gcp clients and services. Use Init() to validate GCP before using it.

func NewGCP

func NewGCP(options ...option.ClientOption) *GCP

func (*GCP) Blogger

func (g *GCP) Blogger(ctx context.Context) (*blogger.Service, error)

func (*GCP) Calendar

func (g *GCP) Calendar(ctx context.Context) (*healthcare.Service, error)

func (*GCP) ClassRoom

func (g *GCP) ClassRoom(ctx context.Context) (*class.Service, error)

func (*GCP) Container

func (g *GCP) Container(ctx context.Context) (*container.Service, error)

func (*GCP) Content

func (g *GCP) Content(ctx context.Context) (*content.APIService, error)

func (*GCP) CustomSearch

func (g *GCP) CustomSearch(ctx context.Context) (*customsearch.Service, error)

func (*GCP) DBAdmin

func (g *GCP) DBAdmin(ctx context.Context) (*database.DatabaseAdminClient, error)

func (*GCP) Docs

func (g *GCP) Docs(ctx context.Context) (*docs.Service, error)

func (*GCP) Domains

func (g *GCP) Domains(ctx context.Context) (*plusdomains.Service, error)

func (*GCP) Firestore

func (g *GCP) Firestore(ctx context.Context, project string) (*firestore.Client, error)

func (*GCP) HTTP

func (g *GCP) HTTP(ctx context.Context, scopes []string) (*http.Client, error)

func (*GCP) HealthCare

func (g *GCP) HealthCare(ctx context.Context) (*healthcare.Service, error)

func (*GCP) IAM

func (g *GCP) IAM(ctx context.Context) (*iam.Service, error)

func (*GCP) IOT

func (g *GCP) IOT(ctx context.Context) (*iot.DeviceManagerClient, error)

func (*GCP) ImageAnnotator

func (g *GCP) ImageAnnotator(ctx context.Context) (*vision.ImageAnnotatorClient, error)

func (*GCP) ImageProductSearch

func (g *GCP) ImageProductSearch(ctx context.Context) (*vision.ProductSearchClient, error)

func (*GCP) Init

func (g *GCP) Init() error

func (*GCP) Jobs

func (g *GCP) Jobs(ctx context.Context) (*jobs.Service, error)

func (*GCP) KMS

func (g *GCP) KMS(ctx context.Context) (*kms.KeyManagementClient, error)

func (*GCP) Kube

func (g *GCP) Kube(inCluster bool) (*kubernetes.Clientset, error)

func (*GCP) Language

func (g *GCP) Language(ctx context.Context) (*language.Client, error)

func (*GCP) OSLogin

func (g *GCP) OSLogin(ctx context.Context) (*oslogin.Service, error)

func (*GCP) People

func (g *GCP) People(ctx context.Context) (*people.Service, error)

func (*GCP) Photos

func (g *GCP) Photos(cli *http.Client) (*photos.Service, error)

func (*GCP) Prediction

func (g *GCP) Prediction(cli *http.Client) (*prediction.Service, error)

func (*GCP) PubSub

func (g *GCP) PubSub(ctx context.Context, project string) (*pubsub.Client, error)

func (*GCP) Redis

func (g *GCP) Redis(ctx context.Context) (*redis.Service, error)

func (*GCP) RuntimeGCP

func (g *GCP) RuntimeGCP(ctx context.Context) (*run.Service, error)

func (*GCP) Sheets

func (g *GCP) Sheets(ctx context.Context) (*sheets.Service, error)

func (*GCP) Slides

func (g *GCP) Slides(ctx context.Context) (*slides.Service, error)

func (*GCP) Spanner

func (g *GCP) Spanner(ctx context.Context, database string) (*spanner.Client, error)

func (*GCP) Speech

func (g *GCP) Speech(ctx context.Context) (*speech.Client, error)

func (*GCP) Storage

func (g *GCP) Storage(ctx context.Context) (*storage.Client, error)

func (*GCP) Tasks

func (g *GCP) Tasks(ctx context.Context) (*tasks.Service, error)

func (*GCP) Text2Speech

func (g *GCP) Text2Speech(ctx context.Context) (*texttospeech.Client, error)

func (*GCP) Translate

func (g *GCP) Translate(ctx context.Context) (*translate.Client, error)

func (*GCP) VideoIntelligence

func (g *GCP) VideoIntelligence(ctx context.Context) (*videointelligence.Client, error)

func (*GCP) YoutTube

func (g *GCP) YoutTube(ctx context.Context) (*youtube.Service, error)

Releases

No releases published

Packages

No packages published