git

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IpPermissions []utils.IpPermission `yaml:"ipPermissions"`
}

Config stores IpPermissions read from config file.

type Git

type Git struct {
	AccessToken string
	URL         string
	Config      string
	// contains filtered or unexported fields
}

Git Ip provider class implementing the IpProvider interface

func (*Git) Equal

func (git1 *Git) Equal(git2 *Git) bool

Equal Compares Git objects

func (*Git) GetIPPermissions

func (g *Git) GetIPPermissions() ([]utils.IpPermission, error)

GetIPPermissions - Get List of IP addresses to whitelist

func (*Git) GetName

func (g *Git) GetName() string

GetName returns the name of IP Provider

func (*Git) Init

func (g *Git) Init(params map[interface{}]interface{}) error

Init initializes the Git Configuration

Jump to

Keyboard shortcuts

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