services

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCPService

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

GCPService GCP Service struct

func NewGCPService

func NewGCPService() (*GCPService, error)

NewGCPService inits gcp service

func (*GCPService) CreateBucket

func (svc *GCPService) CreateBucket(ctx context.Context, name string) error

CreateBucket creates a gcp bucket

func (*GCPService) DeleteGCPBucket

func (svc *GCPService) DeleteGCPBucket(ctx context.Context, name string) error

DeleteGCPBucket deletes a gcp bucket

type GCPSvc

type GCPSvc interface {
	CreateBucket(ctx context.Context, name string) error
	DeleteGCPBucket(ctx context.Context, name string) error
}

GCPSvc GCP Service interface

Jump to

Keyboard shortcuts

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