server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintConfig

func PrintConfig(conf config.GarbagedConfig) error

PrintConfig just prints config and was used to make sure that structs were properly implemented.

func Start

func Start(conf config.GarbagedConfig) error

Start will bring our server up and start listening. Hooray.

func VerifyPKCS7Doc

func VerifyPKCS7Doc(rawIID string, validator string) (parsedIID ec2metadata.EC2InstanceIdentityDocument, err error)

VerifyPKCS7Doc - Ugliness that will take an IID and validator certificate and return accordingly.

Types

type Garbage

type Garbage struct {
	gorm.Model
	Host    string `gorm:"UNIQUE"`
	Region  string
	Account string
	Role    string
	Type    string
}

Garbage definition for ORM

func (Garbage) TableName

func (Garbage) TableName() string

TableName definition

type RoleHoliday

type RoleHoliday struct {
	gorm.Model
	Role string `gorm:"UNIQUE"`
	Conf bool
}

RoleHoliday definition

type TypeHoliday

type TypeHoliday struct {
	gorm.Model
	Type string `gorm:"UNIQUE"`
	Conf bool
}

TypeHoliday definition

Jump to

Keyboard shortcuts

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