server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package server provides a dummy metadata server providing tokens to access Google Cloud Platform

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host                         string
	Port                         int
	Scopes                       []string
	Project                      string
	CloudSDKConfig               string `mapstructure:"cloudsdk-config"`
	GoogleApplicationCredentials string `mapstructure:"google-application-credentials"`
}

Config is a configuration to the server to launch

type Server

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

Server is an instance of gtokenserver

func NewServer

func NewServer(config *Config) *Server

NewServer creates a Server

func (*Server) Serve

func (s *Server) Serve() error

Serve launches an instance of gtokenserver

Jump to

Keyboard shortcuts

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