plugin

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	Region                 string
	Role                   string
	RoleDurationSeconds    int
	RoleSessionName        string
	InlineSessionPolicy    string
	ManagedSessionPolicies []string
}

AWS struct represents the config for the AWS role assumption.

type Config

type Config struct {
	Audience     string
	Verify       bool
	ScriptPath   string
	ScriptFormat string
	ScriptWrite  bool
	AWS          *AWS
	Vela         *Vela
}

Config struct represents fields user can present to plugin.

func (*Config) AssumeRole

func (c *Config) AssumeRole(token string) (*aws.Credentials, error)

func (*Config) Exec

func (c *Config) Exec() error

Exec generates a set of temporary AWS credentials for later usage.

func (*Config) GenerateVelaToken

func (c *Config) GenerateVelaToken() (string, error)

func (*Config) Validate

func (c *Config) Validate() error

Validate function to validate plugin configuration.

func (*Config) WriteCreds

func (c *Config) WriteCreds(creds *aws.Credentials) error

type Vela

type Vela struct {
	BuildNumber     int
	RepoName        string
	OrgName         string
	RequestToken    string
	RequestTokenURL string
}

Vela struct represents the config for the Vela API calls.

Jump to

Keyboard shortcuts

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