tars

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: GPL-3.0 Imports: 11 Imported by: 3

README

go-tars

T.A.R.S slack integration in golang !

Documentation

Overview

*

  • File : authentication.go
  • Author : Alexandre Saison <alexandre.saison@inarix.com>
  • Date : 21.03.2021
  • Last Modified Date: 24.03.2021
  • Last Modified By : Alexandre Saison <alexandre.saison@inarix.com>

*

  • File : functions.go
  • Author : Alexandre Saison <alexandre.saison@inarix.com>
  • Date : 24.03.2021
  • Last Modified Date: 30.03.2021
  • Last Modified By : Alexandre Saison <alexandre.saison@inarix.com>

* * File : main.go * Author : Alexandre Saison <alexandre.saison@inarix.com> * Date : 21.03.2021 * Last Modified Date: 03.04.2021 * Last Modified By : Alexandre Saison <alexandre.saison@inarix.com>

*

  • File : structs.go
  • Author : Alexandre Saison <alexandre.saison@inarix.com>
  • Date : 21.03.2021
  • Last Modified Date: 01.04.2021
  • Last Modified By : Alexandre Saison <alexandre.saison@inarix.com>

*

  • File : views.go
  • Author : Alexandre Saison <alexandre.saison@inarix.com>
  • Date : 01.04.2021
  • Last Modified Date: 05.04.2021
  • Last Modified By : Alexandre Saison <alexandre.saison@inarix.com>

Index

Constants

View Source
const (
	APP_HOME_CALLBACK        = "hometab_callback"
	APP_HOME_EXTERNAL_PREFIX = "hometab_opened_"
)
View Source
const (
	APP_MENTION_EVENT  = "APP_MENTION_EVENT"
	APP_DEFAULT_EVENT  = "APP_DEFAULT_EVENT"
	APP_HOME_EVENT     = "APP_HOME_EVENT"
	APP_DIRECT_MESSAGE = "APP_DIRECT_MESSAGE"
)
View Source
const (
	ACTION_HELP                = "ask_help"
	ACTION_CREATE_MIGRATION    = "create_migration"
	ACTION_CREATE_SEED         = "create_seed"
	ACTION_DEPLOY_MODEL        = "deploy_model"
	ACTION_ACCESS_KUBEFLOW_2   = "access_kubeflow_v2"
	ACTION_ACCESS_FOREST_ADMIN = "access_forest_admin"
	ACTION_ACCESS_ASANA        = "access_asana"
)

Variables

This section is empty.

Functions

func AddHomeView added in v0.1.12

func AddHomeView(userId string) slack.HomeTabViewRequest

func AppHomeEntered added in v0.1.5

func AppHomeEntered() []slack.Block

func AppHomeHeader added in v0.1.8

func AppHomeHeader() slack.HeaderBlock

func AppHomeModelActions added in v0.1.8

func AppHomeModelActions() slack.ActionBlock

func DevOpsActions added in v1.0.1

func DevOpsActions() slack.ActionBlock

func FromEnv

func FromEnv(key string) string

func NewAppHomeModelBlock added in v0.1.8

func NewAppHomeModelBlock(modelName string) slack.SectionBlock

Types

type Config

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

func NewConfig

func NewConfig() *Config

type Server

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

func NewWithConfig

func NewWithConfig(config *Config, ctxt context.Context) *Server

func (*Server) Expose added in v0.1.2

func (server *Server) Expose() http.HandlerFunc

func (*Server) PublishHome added in v1.0.0

func (server *Server) PublishHome(userId string) error

type SlackEvent

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

func NewSlackEvent

func NewSlackEvent(eventName string, channelName string, payload string, threadTS string, user string, emitedAt json.Number) *SlackEvent

Jump to

Keyboard shortcuts

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