awscrondoc

package module
v0.0.0-...-d81740a Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 7 Imported by: 0

README

awscrondoc

Go Reference

A tool to list up cron expressions registered in Amazon EventBridge for the company's internal wiki.

Installation

Library
go get github.com/shmokmt/awscrondoc@latest
CLI
go install github.com/shmokmt/awscrondoc/cmd/awscrondoc@latest

Permissions

It Requires the following minimum set of permissions:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["events:ListRules"],
      "Resource": "*"
    }
  ]
}

Usage

Library
package main

import (
	"fmt"
	"log"

	"github.com/shmokmt/awscrondoc"
)

func main() {
	d, err := awscrondoc.New()
	if err != nil {
		log.Fatal(err)
	}
	md, err := d.MarkdownString()
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(md)
}
CLI
awscrondoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsCronDoc

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

func New

func New() (*AwsCronDoc, error)

func (*AwsCronDoc) MarkdownString

func (a *AwsCronDoc) MarkdownString() (string, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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