types

package
v1.0.151 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 3 Imported by: 0

README

github.com/jylitalo/rotakey/types

Overview

Package types has all type definitions for functions and their mocks

Imports: 3

Index

Examples

This section is empty.

Constants

This section is empty.

Variables

This section is empty.

Types

type AwsConfig
type AwsConfig interface {
    func AccessKeyID(ctx context.Context) (string, error)
    func LoadDefaultConfig(ctx context.Context) error
    func NewIam() AwsIam
}
type AwsIam
type AwsIam interface {
    func CreateAccessKey(ctx context.Context) (*iamtypes.AccessKey, error)
    func DeleteAccessKey(ctx context.Context, accessKeyId string) error
}
type DotAws
type DotAws interface {
    func Load() error
    func GetProfile(accessKeyId string) (*ini.Section, error)
    func Save(profile *ini.Section, accessKey types.AccessKey) error
}
type Rotate
type Rotate interface {
    func Execute(awsCfg AwsConfig, fileCfg DotAws) error
}

--

Generated by github.com/jylitalo/go2md v0.4.1

Documentation

Overview

Package types has all type definitions for functions and their mocks

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsConfig

type AwsConfig interface {
	AccessKeyID(ctx context.Context) (string, error)
	LoadDefaultConfig(ctx context.Context) error
	NewIam() AwsIam
}

type AwsIam

type AwsIam interface {
	CreateAccessKey(ctx context.Context) (*iamtypes.AccessKey, error)
	DeleteAccessKey(ctx context.Context, accessKeyId string) error
}

type DotAws

type DotAws interface {
	Load() error
	GetProfile(accessKeyId string) (*ini.Section, error)
	Save(profile *ini.Section, accessKey types.AccessKey) error
}

type Rotate

type Rotate interface {
	Execute(awsCfg AwsConfig, fileCfg DotAws) error
}

Jump to

Keyboard shortcuts

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