Documentation ¶
Index ¶
- Constants
- Variables
- type BoxType
- type ByTime
- type ByType
- type ByVersion
- type Client
- func (c *Client) All(ids []string, types NiFiType, recursive bool) ([]*Component, error)
- func (c *Client) AllWith(ids []string, types NiFiType, recursive bool, filter ComponentFilter) ([]*Component, error)
- func (c *Client) Call(method Method, url *url.URL, data []byte) (string, error)
- func (c *Client) CallAPI(method Method, path string, data []byte, query ...string) (string, error)
- func (c *Client) Cluster() (string, error)
- func (c *Client) Delete(path string, query ...string) (string, error)
- func (c *Client) Get(path string, query ...string) (string, error)
- func (c *Client) GetInfo(id string) (interface{}, error)
- func (c *Client) GetVersionControlInfo(id string) (*VersionControlInfo, *Revision, error)
- func (c *Client) GetVersions(registry string, bucket string, flow string) ([]ProcessGroupVersion, error)
- func (c *Client) Post(path string, data []byte, query ...string) (string, error)
- func (c *Client) Put(path string, data []byte, query ...string) (string, error)
- func (c *Client) Root() (*Component, error)
- func (c *Client) SetState(id string, state string) (string, error)
- func (c *Client) SetVersion(versionInfo *VersionControlInfo, revision *Revision, version int) (interface{}, error)
- func (c *Client) Tree(ids []string, types NiFiType) (Tree, error)
- type Component
- type ComponentFilter
- type FlowFile
- type HttpClient
- type ListingRequest
- type Method
- type NiFiType
- type ProcessGroupVersion
- type Revision
- type RunningStatus
- type Status
- type Tree
- type UpdateRequest
- type Version
- type VersionControlInfo
- type VersionInfo
Constants ¶
View Source
const ( ProcessGroupName = "processgroup" RemoteProcessGroupName = "remoteprocessgroup" ProcessorName = "processor" ConnectionName = "connection" InputPortName = "inputport" OutputPortName = "outputport" )
View Source
const ( ProcessGroupTitle = "Process Group" RemoteProcessGroupTitle = "Remote Process Group" ProcessorTitle = "Processor" ConnectionTitle = "Connection" InputPortTitle = "Input Port" OutputPortTitle = "Output Port" )
View Source
const ( RUNNING = "RUNNING" UNKNOWN = "UNKNOWN" STOPPED = "STOPPED" )
Variables ¶
View Source
var (
ErrInvalidFormat = fmt.Errorf("invalid response fornat")
)
Functions ¶
This section is empty.
Types ¶
type ByVersion ¶
type ByVersion []ProcessGroupVersion
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetVersionControlInfo ¶
func (c *Client) GetVersionControlInfo(id string) (*VersionControlInfo, *Revision, error)
func (*Client) GetVersions ¶
func (*Client) SetVersion ¶
func (c *Client) SetVersion(versionInfo *VersionControlInfo, revision *Revision, version int) (interface{}, error)
type Component ¶
type ComponentFilter ¶
type FlowFile ¶
type FlowFile struct { Uuid string `json:"uuid"` Filename string `json:"filename"` Size int `json:"size"` LineageDuration float64 `json:"lineageDuration"` QueuedDuration float64 `json:"queuedDuration"` LinageStart time.Time `json:"linageStart"` QueuedStart time.Time `json:"queuedStart"` Penalized bool `json:"penalized"` Node string `json:"node"` }
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func NewHttpCertClient ¶ added in v0.0.2
func NewHttpClient ¶
func NewHttpClient(ca string, insecureSkipVerify bool) (*HttpClient, error)
func (*HttpClient) LoadPemCertificate ¶ added in v0.2.1
func (c *HttpClient) LoadPemCertificate(path string) ([]*x509.Certificate, error)
func (*HttpClient) ReadPKCS12 ¶
func (c *HttpClient) ReadPKCS12(file string, password string) (*tls.Certificate, *x509.CertPool, error)
type ListingRequest ¶
type ListingRequest struct {
// contains filtered or unexported fields
}
func NewListingRequest ¶
func NewListingRequest(client Client, connection string) (*ListingRequest, error)
func (*ListingRequest) Close ¶
func (r *ListingRequest) Close() error
func (*ListingRequest) List ¶
func (r *ListingRequest) List() ([]FlowFile, error)
type NiFiType ¶
type NiFiType byte
const ( ProcessGroup NiFiType = 1 << iota RemoteProcessGroup NiFiType = 1 << iota Processor NiFiType = 1 << iota Connection NiFiType = 1 << iota InputPort NiFiType = 1 << iota OutputPort NiFiType = 1 << iota UnknownType NiFiType = 1 << iota AllTypes NiFiType = 0xff AllExceptConnections NiFiType = 0xf7 )
type ProcessGroupVersion ¶
type Revision ¶
func NewRevision ¶
type RunningStatus ¶
type Status ¶
type Status struct { User string Token string Cookies map[string]string Expire time.Time Aud string Insecure bool Server string CA string }
func (*Status) GetCookies ¶
func (*Status) NewRequest ¶
type UpdateRequest ¶
type UpdateRequest struct {
// contains filtered or unexported fields
}
func NewUpdateRequest ¶
func NewUpdateRequest(client *Client, url *url.URL) *UpdateRequest
func (*UpdateRequest) Close ¶
func (u *UpdateRequest) Close() error
func (*UpdateRequest) Wait ¶
func (u *UpdateRequest) Wait() (map[string]interface{}, error)
type Version ¶
type Version struct { Version string `json:"version"` GitCommit string `json:"commit"` BuildTime string `json:"buildTime"` TreeState string `json:"treeState"` OS string `json:"os"` Arch string `json:"arch"` GoVersion string `json:"goVersion"` }
var ClientVersion *Version
type VersionControlInfo ¶
type VersionControlInfo struct { GroupId string `json:"groupId" yaml:"groupId"` Registry string `json:"registryId"` Bucket string `json:"bucketId"` Flow string `json:"flowId"` Version int `json:"version"` State string `json:"state"` }
func NewVersionControlInfo ¶
func NewVersionControlInfo(data interface{}) (*VersionControlInfo, error)
type VersionInfo ¶
type VersionInfo struct { Revision *Revision `json:"processGroupRevision"` Version *VersionControlInfo `json:"versionControlInformation"` DisconnectedNodeAcknowledged bool `json:"disconnectedNodeAcknowledged"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.