Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
69ef50f69c | |||
71dcdd0d66 | |||
229b652c69 |
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2016 Push.Rocks
|
Copyright (c) 2016 Lossless GmbH
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
18
README.md
18
README.md
@ -1,10 +1,11 @@
|
|||||||
# cflare
|
# cflare
|
||||||
allows you to manage cloudflare from CoreOS
|
allows you to manage multiple cloudflare accounts.
|
||||||
|
|
||||||
> Note: this package is still in alpha, so some things do not yet work.
|
> Note: this package is still in alpha, so some things do not yet work.
|
||||||
I (Phil from Lossless) expect this package to be ready 1. of June 2016.
|
I (Phil from Lossless) expect this package to be ready 1. of June 2016.
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
[](https://travis-ci.org/pushrocks/cflare)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@ -17,9 +18,14 @@ cflareInstance.auth({
|
|||||||
key:""
|
key:""
|
||||||
});
|
});
|
||||||
|
|
||||||
cflareInstance.createRecord();
|
cflareInstance.createRecord(); // returns promise with resolve function getting the response;
|
||||||
cflareInstance.removeRecord();
|
cflareInstance.removeRecord(); // returns promise with resolve function getting the response;
|
||||||
cflareInstance.copyRecord();
|
cflareInstance.copyRecord(); // returns promise with resolve function getting the response;
|
||||||
cflareInstance.listRecords();
|
cflareInstance.listRecords(); // returns promise with resolve function getting the response;
|
||||||
cflareInstance.listDomains();
|
cflareInstance.listDomains(); // returns promise with resolve function getting the response;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### About the authors:
|
||||||
|
[](https://lossless.com/)
|
||||||
|
|
||||||
|
[](https://paypal.me/lossless)
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cflare",
|
"name": "cflare",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"description": "cloudflare management for CoreOS",
|
"description": "cloudflare management for CoreOS",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -22,6 +22,7 @@
|
|||||||
"homepage": "https://github.com/pushrocks/cflare#readme",
|
"homepage": "https://github.com/pushrocks/cflare#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"beautylog": "^4.1.2",
|
"beautylog": "^4.1.2",
|
||||||
|
"q": "^1.4.1",
|
||||||
"request": "^2.72.0"
|
"request": "^2.72.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -5,8 +5,34 @@ import helpers = require("./cflare.classes.helpers");
|
|||||||
class cflare {
|
class cflare {
|
||||||
private authEmail:string;
|
private authEmail:string;
|
||||||
private authKey:string;
|
private authKey:string;
|
||||||
|
private authCheck(){
|
||||||
|
return (this.authEmail && this.authKey); //check if auth is available
|
||||||
|
}
|
||||||
constructor(){
|
constructor(){
|
||||||
|
|
||||||
};
|
};
|
||||||
|
auth(optionsArg:{email:string,key:string}){
|
||||||
|
this.authEmail = optionsArg.email;
|
||||||
|
this.authKey = optionsArg.key;
|
||||||
|
}
|
||||||
|
createRecord(){
|
||||||
|
let done = plugins.q.defer();
|
||||||
|
return done.promise;
|
||||||
|
};
|
||||||
|
removeRecord(){
|
||||||
|
let done = plugins.q.defer();
|
||||||
|
return done.promise;
|
||||||
|
};
|
||||||
|
listRecords(){
|
||||||
|
let done = plugins.q.defer();
|
||||||
|
return done.promise;
|
||||||
|
}
|
||||||
|
listDomains(){
|
||||||
|
let done = plugins.q.defer();
|
||||||
|
return done.promise;
|
||||||
|
};
|
||||||
|
request(){
|
||||||
|
let done = plugins.q.defer();
|
||||||
|
return done.promise;
|
||||||
|
}
|
||||||
};
|
};
|
@ -1,3 +1,4 @@
|
|||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/main.d.ts" />
|
||||||
export let beautylog = require("beautylog");
|
export let beautylog = require("beautylog");
|
||||||
|
export let q = require("q");
|
||||||
export let request = require("request");
|
export let request = require("request");
|
Reference in New Issue
Block a user