gogoo

package module
v0.0.0-...-6152d30 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2016 License: MIT Imports: 10 Imported by: 0

README

gogoo

GoDoc Travis Build Status

gogoo encapsulates google cloud api for more specific operation logic. Below are the including components

Install

go get github.com/iKala/gogoo

Develop

  • Clone this project to your $GOPATH/src
cd $GOPATH/src
git clone git@github.com:iKala/gogoo.git github.com/iKala/gogoo
  • You should setup one google cloud project, and create a service account
  • Enable the relating API you want to test
  • Create a ./gogoo/config/config.json file to containes below information
{                                                                                                                         
  "service_account": "ooxx@developer.gserviceaccount.com",
  "project_id": "your_project_name"
}
  • Put the key of service account in ./gogoo/config/key.pem

Reference

License

gogoo is MIT License.

Documentation

Overview

Package gogoo encapsulates google cloud api for more specific operation logic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppContext

type AppContext struct {
	ServiceAccount      string
	KeyOfServiceAccount []byte
	ProjectID           string
}

AppContext as parameter object to initialize GoGoo

type GoGoo

type GoGoo struct {
	Gce                            *gce.Manager      `inject:""`
	Gds                            *gds.Manager      `inject:""`
	Monitor                        *gcm.Manager      `inject:""`
	CloudSQL                       *cloudsql.Manager `inject:""`
	*replicapoolupdater.RpuManager `inject:""`
	PubSub                         *pubsub.Manager  `inject:""`
	Storage                        *storage.Manager `inject:""`
}

GoGoo acts as the handler to access different subpackages

func New

func New(ctx AppContext) GoGoo

New creates a new GoGoo object.

func (GoGoo) SetLogger

func (g GoGoo) SetLogger(l seelog.LoggerInterface)

Directories

Path Synopsis
Package cloudsql provides the basic APIs to communicate with Google Cloud SQL
Package cloudsql provides the basic APIs to communicate with Google Cloud SQL
Package gce communicates with compute engine
Package gce communicates with compute engine
Package gcm provides the basic APIs to communicate with Google cloud monitoring
Package gcm provides the basic APIs to communicate with Google cloud monitoring
Package gds provides the basic APIs to communicate with Google datastore
Package gds provides the basic APIs to communicate with Google datastore
Package pubsub communicates with pub/sub.
Package pubsub communicates with pub/sub.
Package replicapoolupdater provides APIs to communicate with Google autoscaling service
Package replicapoolupdater provides APIs to communicate with Google autoscaling service
Package storage communicates with google storage
Package storage communicates with google storage

Jump to

Keyboard shortcuts

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