Documentation ¶
Overview ¶
Copyright 2018 Drone.IO Inc
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Taken from github.com/drone/drone-template-lib
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultTemplate []byte
DefaultTemplate is the default template.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error string
Error is a plugin error.
type Plugin ¶
type Plugin struct { URL string Token string Team string Channel string Template string Replace string // contains filtered or unexported fields }
Plugin implements drone.Plugin to provide the plugin implementation.
func (*Plugin) BuildReplacer ¶
BuildReplacer builds a replacer.
func (*Plugin) CreatePost ¶
CreatePost creates the post.